aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/testcode/delayer.c
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-01-11 18:19:01 -0800
committerwarptangent <warptangent@inbox.com>2015-01-11 21:23:02 -0800
commit909ea810671e8da74b0c0d92641eee8dd798e0b3 (patch)
tree1a59c8d254969098b050ea28e5b5cc7eea62cba3 /external/unbound/testcode/delayer.c
parentComplete implementation of transaction removal (diff)
downloadmonero-909ea810671e8da74b0c0d92641eee8dd798e0b3.tar.xz
Remove a have_block() check so alternate block can be processed
Remove have_block() check from Blockchain::handle_block_to_main_chain(). Add logging to have_block(). This allows blockchain reorganization to proceed further. have_block() check here causes an error after a blockchain reorganize begins with error: "Attempting to add block to main chain, but it's already either there or in an alternate chain." While reorganizing to become the main chain, a block in the alternative chain would be refused due to have_block() rightfully finding it in the alternative chain. The reorganization would end in rollback, restoring to previous blockchain. Original implementation didn't call it here, and it doesn't appear necessary to be called from here in this implementation either. When needed, it appears it's called prior to handle_block_to_main_chain().
Diffstat (limited to 'external/unbound/testcode/delayer.c')
0 files changed, 0 insertions, 0 deletions