Skip to content

Commit

Permalink
bus: use V2UnconfirmedParents
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Aug 12, 2024
1 parent 3530957 commit 1c552cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bus/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type (
RecommendedFee() types.Currency
TipState() consensus.State
UnconfirmedParents(txn types.Transaction) []types.Transaction
V2UnconfirmedParents(txn types.V2Transaction) []types.V2Transaction
}

// A TransactionPool can validate and relay unconfirmed transactions.
Expand Down Expand Up @@ -789,7 +790,7 @@ func (b *bus) walletSendSiacoinsHandler(jc jape.Context) {
return
}
b.w.SignV2Inputs(state, &txn, toSign)
txnset := []types.V2Transaction{txn}
txnset := append(b.cm.V2UnconfirmedParents(txn), txn)
// verify the transaction and add it to the transaction pool
if _, err := b.cm.AddV2PoolTransactions(state.Index, txnset); jc.Check("failed to add v2 transaction set", err) != nil {
b.w.ReleaseInputs(nil, []types.V2Transaction{txn})
Expand Down

0 comments on commit 1c552cf

Please sign in to comment.