mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-29 18:05:58 +02:00
refactor: unify container presence checks - find
The changes made here were: | From | To | |------------------------|------------------| | `m.find(k) == m.end()` | `!m.contains(k)` | | `m.find(k) != m.end()` | `m.contains(k)` |
This commit is contained in:
@@ -240,7 +240,7 @@ void MiniMiner::SanityCheck() const
|
||||
entry->second.GetModFeesWithAncestors() >= entry->second.GetModifiedFee();}));
|
||||
// None of the entries should be to-be-replaced transactions
|
||||
Assume(std::all_of(m_to_be_replaced.begin(), m_to_be_replaced.end(),
|
||||
[&](const auto& txid){return m_entries_by_txid.find(txid) == m_entries_by_txid.end();}));
|
||||
[&](const auto& txid){ return !m_entries_by_txid.contains(txid); }));
|
||||
}
|
||||
|
||||
void MiniMiner::BuildMockTemplate(std::optional<CFeeRate> target_feerate)
|
||||
|
||||
Reference in New Issue
Block a user