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.
|
// Output was already spent.
|
||||||
return lnwallet.ErrDoubleSpend
|
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") {
|
if strings.Contains(err.Error(), "orphan transaction") {
|
||||||
// Transaction is spending either output that
|
// Transaction is spending either output that
|
||||||
// is missing or already spent.
|
// is missing or already spent.
|
||||||
|
Loading…
Reference in New Issue
Block a user