Skip to content

Commit 8bf1d06

Browse files
glozowPastaPastaPasta
authored andcommitted
Merge bitcoin#29308: doc: update BroadcastTransaction comment
31cce4a doc: update `BroadcastTransaction` comment (ismaelsadeeq) Pull request description: `BroadcastTransaction` is also called by `submitpackage` RPC. All transactions that are accepted into the mempool post package processing are broadcasted to peers individually here https://github.com/bitcoin/bitcoin/blob/ea4ddd8652d9dd1e7698e2a6f84c606cf24a2e3e/src/rpc/mempool.cpp#L926 It's not maintainable to list all the callers of a function. ACKs for top commit: stickies-v: ACK 31cce4a kristapsk: ACK 31cce4a naumenkogs: ACK 31cce4a Tree-SHA512: 8aea92c53c1911a0ac36fe9e3a24d37d83e7d9b40a16f0832bfa7a719328697621e3f94a5dc80d1840e7ae705e0c3aab7a3df7064986e1e53a4a4114adf078a8
1 parent 2a77808 commit 8bf1d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/transaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static TransactionError HandleATMPError(const TxValidationState& state, std::str
3131

3232
TransactionError BroadcastTransaction(NodeContext& node, const CTransactionRef tx, bilingual_str& err_string, const CAmount& max_tx_fee, bool relay, bool wait_callback, bool bypass_limits)
3333
{
34-
// BroadcastTransaction can be called by either sendrawtransaction RPC or the wallet.
34+
// BroadcastTransaction can be called by RPC or by the wallet.
3535
// chainman, mempool and peerman are initialized before the RPC server and wallet are started
3636
// and reset after the RPC sever and wallet are stopped.
3737
assert(node.chainman);

0 commit comments

Comments
 (0)