if possible, batch new transaction with existing rbf transaction
This commit is contained in:
@@ -763,6 +763,17 @@ class Transaction:
|
||||
txin['witness'] = None # force re-serialization
|
||||
self.raw = None
|
||||
|
||||
def add_inputs_info(self, wallet):
|
||||
if self.is_complete():
|
||||
return
|
||||
for txin in self.inputs():
|
||||
wallet.add_input_info(txin)
|
||||
|
||||
def remove_signatures(self):
|
||||
for txin in self.inputs():
|
||||
txin['signatures'] = [None] * len(txin['signatures'])
|
||||
assert not self.is_complete()
|
||||
|
||||
def deserialize(self, force_full_parse=False):
|
||||
if self.raw is None:
|
||||
return
|
||||
@@ -1199,8 +1210,6 @@ class Transaction:
|
||||
return s, r
|
||||
|
||||
def is_complete(self):
|
||||
if not self.is_partial_originally:
|
||||
return True
|
||||
s, r = self.signature_count()
|
||||
return r == s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user