mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
Merge pull request #771 from cfromknecht/report-double-spend-for-brar
lnwallet/btcwallet/btcwallet: adds extra double spend case
This commit is contained in:
commit
1c3dbb2543
@ -427,6 +427,10 @@ func (b *BtcWallet) PublishTransaction(tx *wire.MsgTx) error {
|
||||
// Output was already spent.
|
||||
return lnwallet.ErrDoubleSpend
|
||||
}
|
||||
if strings.Contains(err.Error(), "already been spent") {
|
||||
// Output was already spent.
|
||||
return lnwallet.ErrDoubleSpend
|
||||
}
|
||||
if strings.Contains(err.Error(), "orphan transaction") {
|
||||
// Transaction is spending either output that
|
||||
// is missing or already spent.
|
||||
|
Loading…
Reference in New Issue
Block a user