Add wtxid to mempool unbroadcast tracking

This commit is contained in:
Amiti Uttarwar
2020-04-30 18:20:01 -07:00
committed by Suhas Daftuar
parent 2b4b90aa8f
commit c7eb6b4f1f
4 changed files with 24 additions and 18 deletions

View File

@@ -80,7 +80,7 @@ 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);
node.mempool->AddUnbroadcastTx(hashTx, tx->GetWitnessHash());
RelayTransaction(hashTx, *node.connman);
}