Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Unblock Testnet. Create a new status cache every second worth of ticks. #2774

Closed

Conversation

aeyakovenko
Copy link
Member

Problem

Status cache is designed for only 1 second worth of signatures. Right now the bank just keeps a single one for the lifetime. This should be fixed by proper forking, but in the meantime this allows the bank to move forward.

Summary of Changes

Create a new status cache every second. It becomes a "root" cache, which means it maintains the history of the previous caches internally.

Fixes #

@aeyakovenko aeyakovenko requested a review from pgarg66 February 15, 2019 23:33
@@ -51,6 +51,6 @@ fn bench_process_transaction(bencher: &mut Bencher) {
// Since benchmarker runs this multiple times, we need to clear the signatures.
bank.clear_signatures();
let results = bank.process_transactions(&transactions);
assert!(results.iter().all(Result::is_ok));
results.iter().for_each(|r| assert_eq!(*r, Ok(())));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is way easier to debug

@codecov
Copy link

codecov bot commented Feb 16, 2019

Codecov Report

Merging #2774 into master will increase coverage by <.1%.
The diff coverage is 97.2%.

@@           Coverage Diff            @@
##           master   #2774     +/-   ##
========================================
+ Coverage    78.6%   78.7%   +<.1%     
========================================
  Files         115     115             
  Lines       19408   19434     +26     
========================================
+ Hits        15270   15305     +35     
+ Misses       4138    4129      -9

1 similar comment
@codecov
Copy link

codecov bot commented Feb 16, 2019

Codecov Report

Merging #2774 into master will increase coverage by <.1%.
The diff coverage is 97.2%.

@@           Coverage Diff            @@
##           master   #2774     +/-   ##
========================================
+ Coverage    78.6%   78.7%   +<.1%     
========================================
  Files         115     115             
  Lines       19408   19434     +26     
========================================
+ Hits        15270   15305     +35     
+ Misses       4138    4129      -9

@aeyakovenko aeyakovenko changed the title unblock testnet, new status cache is created every second Unblock Testnet. Create a new status cache every second worth of ticks. Feb 16, 2019
@aeyakovenko aeyakovenko marked this pull request as ready for review February 16, 2019 02:34
behzadnouri pushed a commit to behzadnouri/solana that referenced this pull request Sep 5, 2024
…2774)

* assert refcount = 0 for zero lamport 1 refcount deletes

* add test to covert zero accounts shrink unrefassert0

* fix a test

* comments

* add info to assert

* pr changes

* log instead of assert

* update assert message

* Update accounts-db/src/accounts_index.rs

Co-authored-by: Brooks <brooks@prumo.org>

---------

Co-authored-by: HaoranYi <haoran.yi@anza.xyz>
Co-authored-by: HaoranYi <219428+HaoranYi@users.noreply.github.com>
Co-authored-by: Brooks <brooks@prumo.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant