Merge 0ef0d33f75 into merged_master (Bitcoin PR #18038)

This commit is contained in:
Andrew Poelstra 2020-11-26 01:08:33 +00:00
commit e5f1b2cdaa
14 changed files with 248 additions and 31 deletions

View file

@ -78,6 +78,10 @@ TransactionError BroadcastTransaction(NodeContext& node, const CTransactionRef t
}
if (relay) {
// the mempool tracks locally submitted transactions to make a
// best-effort of initial broadcast
node.mempool->AddUnbroadcastTx(hashTx);
RelayTransaction(hashTx, *node.connman);
}