forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve pending blocks retrieval mechanism (hyperledger#4227)
* Add more log to retrieve parent method * Request the lowest pending ancestor when saving a block * Replace recursive implementation with iterative when getting pending ancestors of Block * Decrease scope of synchronized block to reflect only the event of adding pending block to the list * Add fork to the chain so test is more representative Signed-off-by: Gabriel Trintinalia <[email protected]> Signed-off-by: Gabriel Trintinalia <[email protected]> Co-authored-by: Gabriel Trintinalia <[email protected]>
- Loading branch information
Showing
5 changed files
with
185 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters