fix conflicting local txns, e.g. when using RBF
This commit is contained in:
@@ -607,7 +607,7 @@ class Abstract_Wallet(PrintError):
|
|||||||
x += v
|
x += v
|
||||||
elif tx_height > 0:
|
elif tx_height > 0:
|
||||||
c += v
|
c += v
|
||||||
else:
|
elif tx_height != -2: # local tx
|
||||||
u += v
|
u += v
|
||||||
if txo in sent:
|
if txo in sent:
|
||||||
if sent[txo] > 0:
|
if sent[txo] > 0:
|
||||||
@@ -824,7 +824,7 @@ class Abstract_Wallet(PrintError):
|
|||||||
h2.append((tx_hash, height, conf, timestamp, delta, balance))
|
h2.append((tx_hash, height, conf, timestamp, delta, balance))
|
||||||
if balance is None or delta is None:
|
if balance is None or delta is None:
|
||||||
balance = None
|
balance = None
|
||||||
else:
|
elif height != -2: # local tx
|
||||||
balance -= delta
|
balance -= delta
|
||||||
h2.reverse()
|
h2.reverse()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user