-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2788: Inject transactions from past eras when forging a block r=mrBliss a=mrBliss When the mempool verifies transactions, it injects transactions from past eras into the current era. However, block production was not doing this. Debugging this was made more difficult because the trace message that we were outputting after creating a block (`TraceAdoptedBlock`) recorded the transactions from the mempool, not the transactions that were actually included in the block. This means that injection now happens 3 times: once when we add transactions into the mempool, once when we revalidate the mempool when we produce a block, and then a third time when we actually construct the block. Streamlining this however we can do at a later stage. Co-authored-by: Thomas Winant <thomas@well-typed.com>
- Loading branch information
Showing
5 changed files
with
131 additions
and
28 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