Skip to content

Commit

Permalink
fix(networking): reset raw spend get to be Majority
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Aug 9, 2024
1 parent 82c25e5 commit bc0afa2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sn_networking/src/transfers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ impl Network {
/// If we get a quorum error, we enable re-try
pub async fn get_raw_spends(&self, address: SpendAddress) -> Result<Vec<SignedSpend>> {
let key = NetworkAddress::from_spend_address(address).to_record_key();
// use Quorum::One not All here, as we want to collect and return all the spends we can find
// Quorum all may be prohibitive to this end
let get_cfg = GetRecordCfg {
get_quorum: Quorum::One,
get_quorum: Quorum::Majority,
retry_strategy: None,
// This should not be set here. This function is used as a quick check to find the spends around the key during
// validation. The returned records might possibly be double spend attempt and the record will not match
Expand Down

0 comments on commit bc0afa2

Please sign in to comment.