wallet: remove txns from store if they're in the chain, or have a negative output

This commit is contained in:
Olaoluwa Osuntokun 2018-08-22 20:20:49 -07:00
parent caab9f91f0
commit 7d0d499cd0
No known key found for this signature in database
GPG key ID: 964EA263DD637C21

View file

@ -2698,6 +2698,8 @@ func (w *Wallet) resendUnminedTxs() {
case strings.Contains(err.Error(), "spent"): case strings.Contains(err.Error(), "spent"):
case strings.Contains(err.Error(), "orphan"): case strings.Contains(err.Error(), "orphan"):
case strings.Contains(err.Error(), "conflict"): case strings.Contains(err.Error(), "conflict"):
case strings.Contains(err.Error(), "already exists"):
case strings.Contains(err.Error(), "negative"):
// The following errors are returned from bitcoind's // The following errors are returned from bitcoind's
// mempool. // mempool.