Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject old transactions so that we can boot old signatures #108

Merged
merged 2 commits into from
Apr 5, 2018

Conversation

garious
Copy link
Contributor

@garious garious commented Apr 5, 2018

Reject old transactions so that we can calculate an upper bound for memory usage, and therefore ensure the server won't slow down over time to crash due to memory exhaustion.

This is also a handy feature for the clients. A client can't tell if their transaction was dropped or if it were bumped into a mempool for later execution. The feature lets the client know for sure that if their transaction doesn't show up on the ledger after a known number of entries, those funds can safely be spent elsewhere.

garious added 2 commits April 5, 2018 09:54
Before this patch, a client could put any value into `last_id` and
was primarily there to ensure the transaction had a globally unique
signature. With this patch, the server can use `last_id` as an
indicator of how long its been since the transaction was created.
The server may choose to reject sufficiently old transactions so
that it can forget about old signatures.
Reject old transactions so that we can calculate an upper bound
for memory usage, and therefore ensure the server won't slow
down over time to crash due to memory exhaustion.
@codecov-io
Copy link

Codecov Report

Merging #108 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
+ Coverage   96.05%   96.09%   +0.04%     
==========================================
  Files          16       16              
  Lines        1344     1358      +14     
==========================================
+ Hits         1291     1305      +14     
  Misses         53       53
Impacted Files Coverage Δ
src/accountant_skel.rs 92.45% <100%> (+0.07%) ⬆️
src/accountant.rs 95.14% <100%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc69d31...0132693. Read the comment docs.

@garious garious requested review from aeyakovenko and sakridge April 5, 2018 16:45
@garious garious merged commit bc6d6b2 into solana-labs:master Apr 5, 2018
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.128.0 to 0.129.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AshwinSekar pushed a commit to AshwinSekar/solana that referenced this pull request Mar 6, 2024
…-labs#108)

CI: Checkout v1.17 branch from SPL for downstream job
willhickey pushed a commit that referenced this pull request Mar 9, 2024
CI: Checkout v1.17 branch from SPL for downstream job
segfaultdoc pushed a commit to jito-labs/solana that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants