-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
possible reason: when one block with extrRwd transaction inserted, the same block could be inserted again because the synchronize-mechanism. In theory this should not happen, but it happens. Then the rewardBalance could be wrongly calculated because lack of history-data in OutsideOfStorage reward, and 'bad block' comes. fix: add 5('OBR_SIZE' in code) history data cache for OutsideOfStorage reward, and this can support 4(OBR_SIZE-1) blocks rollback; basically this should reduce the 'bad block' much Test cases & expected results: 1, synchronize pchain from block 0 till the latest with no error 2, after new block with new extrRwd transaction inserted/reinserted, the 'bad block' should not appear, at least the frequency should be very very low
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.