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

remove purge parameter to accounts #2990

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

rob-solana
Copy link
Contributor

Problem

Bank and Accounts were both keeping track of is_squashed()

Summary of Changes

remove Bank's tracking of Accounts.is_squashed()

@codecov
Copy link

codecov bot commented Feb 27, 2019

Codecov Report

Merging #2990 into master will decrease coverage by <.1%.
The diff coverage is 100%.

@@           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

@rob-solana rob-solana merged commit 163874d into solana-labs:master Feb 28, 2019
@rob-solana rob-solana deleted the accounts-tweaks branch February 28, 2019 00:06
@@ -649,6 +646,16 @@ impl AccountsDB {
parents
}

fn is_squashed(&self, fork: Fork) -> bool {
self.fork_info
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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 ;)

behzadnouri added a commit to behzadnouri/solana that referenced this pull request Sep 27, 2024
…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.
yihau pushed a commit to yihau/solana that referenced this pull request Oct 2, 2024
…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>
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.

2 participants