-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- For the MVP, it suffices to use the queue as the entire storage (without a separate tx store), because all txs that are accepted in the mempool are indexed (no future nonces allowed). - Remove `Mempool` from type names, it follows from module location. - Switch from heap to balanced search tree, since we are not supporting future nonce for the MVP, we can just return the last `n` txs on get_txs(n), which fits a search tree better.
- Loading branch information
Gilad Chase
committed
Apr 11, 2024
1 parent
1ed3d42
commit 7d8faf1
Showing
6 changed files
with
63 additions
and
87 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
// TODO: change to pub(crate) once this is used by the (not yet implemented) mempool struct. | ||
pub mod priority_queue; |
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