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
commit 1c3dbb2543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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