rebuilding the block database

0 votes

hi,

i've upgraded to alpha 8.  i stopped the chain running on our server, then followed the install instructions on the site.  

i get the following when trying to restart:

multichaind chain1 -daemon
MultiChain Core Daemon build 1.0 alpha 8 protocol 10002
Multichain server starting
New users can connect to this blockchain using
multichaind chain1@172.31.35.176:2745
: Error initializing block database.
Do you want to rebuild the block database now?

responding with 'y' fails with 'y: command not found' and 'yes' seems to go into and endless loop.

i get the same behaviour using the -reindex parameter.

what's the correct startup procedure after upgrade?

thanks

asked Oct 14, 2015 by santosh
I've asked the team about this and will get back to you asap.
great, thanks...looking forward to it.
in the mean time, i deleted the chain and started over with no problems.  it's a dev environment and we're free to hack about at the moment :)

1 Answer

0 votes

For now, here's the way to rebuild a blockchain (assuming that at least one other node is still running):

  • Stop multichaind if it is running by issuing a stop command.
  • Delete everything in the ~/.multichain/[chain-name]/ blockchain directory except multichain.conf and wallet.dat
  • Start multichaind using the node address of another node (accessed using the getinfo command). For example: multichaind chain1@12.34.56.78:8571 -daemon
  • Repeat the previous step again (the first run just downloaded the blockchain parameters).
  • If you still cannot connect, use the handshakelocal runtime parameter to specify which wallet address should be used for reconnection. You can use the listpermissions command on another node to see which addresses have connect permissions. Of course, you have to use an address which belonged to the node you're connecting from.
answered Oct 15, 2015 by MultiChain
edited Oct 15, 2015 by MultiChain
...