Post
Topic
Board Announcements (Altcoins)
Re: [ANN] [Phantomx] coin -> online currency [PNX] | Pow/PoS X11 Masternode
by
kidshell
on 07/09/2018, 14:54:33 UTC
##### HOW TO UPDATE THE LINUX WALLET #####

If you are getting issues to update the PhantomX wallet via linux, just follow these steps.
** I'm considering your wallet is compiled
**

1 - stopping your wallet
Code:
/wallets/phantomx/phantomxd -datadir=/wallets/phantomx/wallet stop

2 - check if has something still running
Code:
ps -ef | grep phantom

3 - access your wallet folder
Code:
cd /wallets/phantomx/wallet

4 - run these commands above to create a new correct files
Code:
mv phantomx.conf phantomx.conf.bkp
 cp wallet.dat wallet.dat.bkp
 rm -Rf database blk0001.dat db.log smsgDB txleveldb smsg.ini peers.dat mncache.dat debug.log

5 - creating a new config file
Code:
vi phantomx.conf

a - after opened a terminal, press the letter "i" to enter on VI EDIT MODE (look the status bar, will show "insert")
b - copy this code above (not the hifens) and paste on the file created
-----------------------------------------
rpcallowip=127.0.0.1
rpcuser=ChangeUser
rpcpassword=CHangePWD
staking=1
server=1
listen=1
maxconnections=20
port=9440
rpcport=9441

addnode=96.75.9.58:9340
addnode=46.140.84.34:8888
addnode=5.139.218.8:31978
addnode=185.121.224.45:9340
addnode=79.98.29.222:9340
addnode=45.32.223.68:9998
------------------------------------------


6 - download the latest blockchain database
Code:
wget http://www.phantomx.co/download/latest-blockchain.zip

7 - install the unzip program
  :: for Ubuntu
Code:
sudo apt-get -y install unzip

  :: for Centos
Code:
sudo yum install unzip


8 - unzip the blockchain downloaded
Code:
unzip latest-blockchain.zip

9 - delete the zip file
Code:
rm -Rf /wallets/phantomx/wallet/latest-blockchain.zip

10 - start your wallet
Code:
/wallets/phantomx/phantomxd -datadir=/wallets/phantomx/wallet -daemon -server

11 - check if the wallet is being updated
 :: compare with the latest block in http://explorer.phantomx.co
Code:
/wallets/phantomx/phantomxd -datadir=/wallets/phantomx/wallet getinfo