![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
Actual implementation for TxReconciliationTracker's data structure. More...
Public Member Functions | |
| Impl (uint32_t recon_version) | |
| uint64_t | PreRegisterPeer (NodeId peer_id) EXCLUSIVE_LOCKS_REQUIRED(!m_txreconciliation_mutex) |
| ReconciliationRegisterResult | RegisterPeer (NodeId peer_id, bool is_peer_inbound, uint32_t peer_recon_version, uint64_t remote_salt) EXCLUSIVE_LOCKS_REQUIRED(!m_txreconciliation_mutex) |
| void | ForgetPeer (NodeId peer_id) EXCLUSIVE_LOCKS_REQUIRED(!m_txreconciliation_mutex) |
| bool | IsPeerRegistered (NodeId peer_id) const EXCLUSIVE_LOCKS_REQUIRED(!m_txreconciliation_mutex) |
Private Member Functions | |
| std::unordered_map< NodeId, std::variant< uint64_t, TxReconciliationState > > m_states | GUARDED_BY (m_txreconciliation_mutex) |
| Keeps track of txreconciliation states of eligible peers. | |
Private Attributes | |
| Mutex | m_txreconciliation_mutex |
| uint32_t | m_recon_version |
Actual implementation for TxReconciliationTracker's data structure.
Definition at line 63 of file txreconciliation.cpp.
|
inlineexplicit |
Definition at line 80 of file txreconciliation.cpp.
|
inline |
Definition at line 128 of file txreconciliation.cpp.
|
private |
Keeps track of txreconciliation states of eligible peers.
For pre-registered peers, the locally generated salt is stored. For registered peers, the locally generated salt is forgotten, and the state (including "full" salt) is stored instead.
|
inline |
Definition at line 137 of file txreconciliation.cpp.
|
inline |
|
inline |
|
private |
Definition at line 69 of file txreconciliation.cpp.
|
mutableprivate |
Definition at line 66 of file txreconciliation.cpp.