1
0

lnwatcher: more detailed logging, support notifying test suite of txs

This commit is contained in:
Janus
2018-11-01 18:49:39 +01:00
committed by ThomasV
parent 795ba1f99d
commit c8dcf0b471
2 changed files with 38 additions and 8 deletions

View File

@@ -617,6 +617,9 @@ class EncumberedTransaction(NamedTuple("EncumberedTransaction", [('name', str),
d2['tx'] = Transaction(d['tx'])
return EncumberedTransaction(**d2)
def __str__(self):
return super().__str__()[:-1] + ", txid: " + self.tx.txid() + ")"
NUM_MAX_HOPS_IN_PAYMENT_PATH = 20
NUM_MAX_EDGES_IN_PAYMENT_PATH = NUM_MAX_HOPS_IN_PAYMENT_PATH + 1