-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2990 +/- ##
========================================
- Coverage 76.6% 76.6% -0.1%
========================================
Files 128 128
Lines 19624 19613 -11
========================================
- Hits 15049 15033 -16
- Misses 4575 4580 +5 |
@@ -649,6 +646,16 @@ impl AccountsDB { | |||
parents | |||
} | |||
|
|||
fn is_squashed(&self, fork: Fork) -> bool { | |||
self.fork_info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kind of more expensive than the old way, but maybe it doesn't matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the old way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checking the parent pointer on the bank.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the duplication of state/logic was bugging me ;)
…bs#2990) Bloom filter of pruned origins can return false positive for a node's own pubkey but a node should always be able to push its own values to other nodes in the cluster.
…kport of solana-labs#2990) (solana-labs#3015) excludes node's pubkey from bloom filter of pruned origins (solana-labs#2990) Bloom filter of pruned origins can return false positive for a node's own pubkey but a node should always be able to push its own values to other nodes in the cluster. (cherry picked from commit bce28c0) Co-authored-by: behzad nouri <behzadnouri@gmail.com>
Problem
Bank and Accounts were both keeping track of is_squashed()
Summary of Changes
remove Bank's tracking of Accounts.is_squashed()