This commit is contained in:
pengyonghui 2021-10-18 15:11:12 +08:00 committed by John C. Vernaleo
parent a148fa797a
commit d590f3f77d

View file

@ -1032,8 +1032,8 @@ func (mp *TxPool) maybeAcceptTransaction(tx *btcutil.Tx, isNew, rateLimit, rejec
return nil, nil, err return nil, nil, err
} }
// Don't allow the transaction if it exists in the main chain and is not // Don't allow the transaction if it exists in the main chain and is
// not already fully spent. // already fully spent.
prevOut := wire.OutPoint{Hash: *txHash} prevOut := wire.OutPoint{Hash: *txHash}
for txOutIdx := range tx.MsgTx().TxOut { for txOutIdx := range tx.MsgTx().TxOut {
prevOut.Index = uint32(txOutIdx) prevOut.Index = uint32(txOutIdx)