pub fn find_large_bids(
    builder: &mut LmdbWasmTestBuilder,
    new_snapshot: &SeigniorageRecipientsSnapshot,
) -> BTreeSet<PublicKey> {
    let min_bid = new_snapshot
        .values()
        .next()
        .unwrap()
        .values()
        .map(SeigniorageRecipient::stake)
        .min()
        .unwrap();
    builder
        .get_bids()
        .into_iter()
        .filter(|(_pkey, bid)| bid.staked_amount() >= min_bid)
        .map(|(pkey, _bid)| pkey)
        .collect()
}
/// Returns the set of public keys that have bids larger than the smallest bid among the new
/// validators.
Returns the set of public keys that have bids larger than the smallest bid among the new
validators.
Returns the set of public keys that have bids larger than the smallest bid among the new validators .
pub fn find_large_bids(
    builder: &mut LmdbWasmTestBuilder,
    new_snapshot: &SeigniorageRecipientsSnapshot,
) -> BTreeSet<PublicKey> {
    let min_bid = new_snapshot
        .values()
        .next()
        .unwrap()
        .values()
        .map(SeigniorageRecipient::stake)
        .min()
        .unwrap();
    builder
        .get_bids()
        .into_iter()
        .filter(|(_pkey, bid)| bid.staked_amount() >= min_bid)
        .map(|(pkey, _bid)| pkey)
        .collect()
}
pub fn find_large_bids ( builder : & mut LmdbWasmTestBuilder , new_snapshot : & SeigniorageRecipientsSnapshot , ) -> BTreeSet < PublicKey > { let min_bid = new_snapshot . values ( ) . next ( ) . unwrap ( ) . values ( ) . map ( SeigniorageRecipient :: stake ) . min ( ) . unwrap ( ) ; builder . get_bids ( ) . into_iter ( ) . filter ( | ( _pkey , bid ) | bid . staked_amount ( ) >= min_bid ) . map ( | ( pkey , _bid ) | pkey ) . collect ( ) }
Returns the set of public keys that have bids larger than the smallest bid among the new
validators.
Returns the set of public keys that have bids larger than the smallest bid among the new validators .
builder
&mut LmdbWasmTestBuilder
new_snapshot
&SeigniorageRecipientsSnapshot
builder
&mut LmdbWasmTestBuilder
new_snapshot
&SeigniorageRecipientsSnapshot