Open roylee17 opened 2 years ago
For example,
100 -> 101 -> 102 -> 103 (main chain) \ 101a (side chain)
$ getbestblock { hash: HASH_OF_103 height: 103 } $ invalidateblock HASH_OF_103 $ invalidateblock HASH_OF_102 $ getbestblock { hash: HASH_OF_101 height: 101 }
However, even if we invalidate block 101, the main chain doesn't reorg properly to block 101a
$ invalidateblock HASH_OF_101 $ getbestblock { hash: HASH_OF_101a height: 101a } $ getblock HASH_OF_101a block HASH_OF_101a is not in the main chain
invalidate more than one block at a time cause lbcd goes rogue. Starting to exhaust CPU and memory.
$ getbestblock { hash: HASH_OF_103 height: 103 }
$ invalidateblock HASH_OF_101 (lbcd goes rogue...)
https://github.com/lbryio/lbry-sdk/issues/3520
Just want to comment that this was recently fixed in btcd: https://github.com/btcsuite/btcd/pull/2196 , so the fix could be replicated here.
For example,
However, even if we invalidate block 101, the main chain doesn't reorg properly to block 101a
invalidate more than one block at a time cause lbcd goes rogue. Starting to exhaust CPU and memory.
$ invalidateblock HASH_OF_101 (lbcd goes rogue...)