ui: Show ITX and PTX status for adaptor sig type swaps.

This commit is contained in:
tecnovert
2023-07-28 17:08:04 +02:00
parent 67624a252b
commit c3b33c502e
5 changed files with 99 additions and 16 deletions

View File

@@ -217,6 +217,8 @@ class SwapTx(Base):
states = sa.Column(sa.LargeBinary) # Packed states and times
def setState(self, new_state):
if self.state == new_state:
return
self.state = new_state
self.states = (self.states if self.states is not None else bytes()) + struct.pack('<iq', new_state, int(time.time()))