bcoin-org / bcoin

Javascript bitcoin library for node.js and browsers
https://bcoin.io
Other
2.98k stars 811 forks source link

Error while running testnet node #1165

Closed andrijac closed 11 months ago

andrijac commented 11 months ago

After rebooting VM, I tried to run my testnet node again: bcoin --network=testnet --index-address=true --index-tx=true

I'm getting this:

[info] (blockstore) Opening FileBlockStore...
[info] (chain) Chain is loading.
[info] (chain) Checkpoints are enabled.
[info] (chaindb) Opening ChainDB...
[info] (chaindb) ChainDB successfully loaded.
[info] (chaindb) Chain State: hash=000000000000001360a475bd873acc404aa40961d89da8293dd265afdc2f5c02 tx=65969529 coin=29005455 value=20992047.74962723.
[info] (chain) Chain Height: 2440676
[debug] (chain) Memory: rss=57mb, js-heap=15/30mb native-heap=27mb
[warning] (chain) P2SH has been activated.
[warning] (chain) BIP34 has been activated.
[warning] (chain) BIP66 has been activated.
[warning] (chain) BIP65 has been activated.
[warning] (chain) CSV has been activated.
[warning] (chain) Segwit has been activated.
[debug] (chain) Memory: rss=57mb, js-heap=15/30mb native-heap=27mb
[info] (mempool) Mempool loaded (maxsize=97656.25kb).
[info] (miner) Miner loaded (flags=mined by bcoin).
[warning] (miner) No reward address is set for miner!
[info] (net) Pool loaded (maxpeers=8).
[info] (txindexer) Indexer is loading.
[info] (addrindexer) Indexer is loading.
[info] (wallet) Opening WalletDB...
Error: Corruption: no meta-nextfile entry in descriptor

At the same time, mainnet node works fine.

I have no idea what to do :) Please help

pinheadmz commented 11 months ago

Try adding --no-wallet to your bcoin command. If runs normally it most likely means your wallet DB is corrupted and needs to be deleted and restored from seed phrase.

andrijac commented 11 months ago

Awesome, thanks, that worked