mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 23:15:36 +02: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:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user