Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251std::optional<TxAndSendStatusForNode> GetSendStatusByNode(const NodeId& nodeid)252EXCLUSIVE_LOCKS_REQUIRED(m_mutex);253struct TxSendStatus {254NodeClock::time_point time_added{NodeClock::now()};255std::vector<SendStatus> send_statuses;256/// Total number of sends granted, including initial count.257size_t planned_sends{INITIAL_CONNECTION_COUNT};258/// Whether the transaction no longer needs to be retried.259bool resolved{false};260};261bool IsPending(const TxSendStatus& status) const;262/// Cap on the number of simultaneously tracked transactions (see Add()).263const size_t m_max_transactions;264/// Cap on the number of send attempts per transaction (see PickTxForSend()).265const size_t m_max_send_attempts;266mutable Mutex m_mutex;267std::unordered_map<CTransactionRef, TxSendStatus, CTransactionRefHash, CTransactionRefComp>268m_transactions GUARDED_BY(m_mutex);269};271#endif // BITCOIN_PRIVATE_BROADCAST_H
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.