Merge pull request #771 from cfromknecht/report-double-spend-for-brar

lnwallet/btcwallet/btcwallet: adds extra double spend case
This commit is contained in:
Olaoluwa Osuntokun
2018-02-20 22:06:19 -08:00
committed by GitHub

View File

@@ -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.