Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite mempool API in light of Tx/TxInBlock.
Previously, we used the Tx/TxInBlock distinction to also embody the fact that a Tx had been validated, and hence future applications of that Tx could skip a certain number of checks, an important performance concern. Now we lack this distinction (which in any case was somewhat a conflation of concerns), so we introduce the `Validated` newtype to reflect this, and rewrite the Mempool API to reflect this.
- Loading branch information
Showing
2 changed files
with
25 additions
and
57 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