You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If running a pruned node, and the last block stored on disk is lower than the setting btc.startheight, the index behaves strangely, as you would expect, but does not give the operator much indication as to what went wrong.
One solution could be to:
Do an RPC call getblockchaininfo
Get the value from the property pruneheight
Compare with btc.startheight
Display a better log, such as `Your nodes oldest block is higher than the target. Please change target to 621006
I'll try make a PR for this soon. Just a reminder to myself. :)
asyncTask<SlimChainedBlock>SeemsStuck(CancellationTokencancellationToken){if(State is not (BitcoinDWaiterState.NBXplorerSynching or BitcoinDWaiterState.Ready)||
lastIndexedBlock is not {} lastBlock ||
GetConnectedClient()is not RPCClient rpc){returnnull;}varblockchainInfo=await rpc.GetBlockchainInfoAsyncEx(cancellationToken);return blockchainInfo.BestBlockHash != lastBlock.Hash ?lastBlock:null;}
If running a pruned node, and the last block stored on disk is lower than the setting
btc.startheight
, the index behaves strangely, as you would expect, but does not give the operator much indication as to what went wrong.One solution could be to:
getblockchaininfo
pruneheight
btc.startheight
I'll try make a PR for this soon. Just a reminder to myself. :)
Example json return object from
getblockchaininfo
The text was updated successfully, but these errors were encountered: