mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
pytest: test new commitment_revocation hook values
This commit is contained in:
committed by
Rusty Russell
parent
37a7dab549
commit
f6709a7a90
@@ -6,9 +6,9 @@ plugin = Plugin()
|
||||
|
||||
|
||||
@plugin.hook('commitment_revocation')
|
||||
def on_commitment_revocation(commitment_txid, penalty_tx, plugin, **kwargs):
|
||||
def on_commitment_revocation(commitment_txid, penalty_tx, channel_id, commitnum, plugin, **kwargs):
|
||||
with open('watchtower.csv', 'a') as f:
|
||||
f.write("{}, {}\n".format(commitment_txid, penalty_tx))
|
||||
f.write("{}, {}, {}, {}\n".format(commitment_txid, penalty_tx, channel_id, commitnum))
|
||||
|
||||
|
||||
plugin.run()
|
||||
|
||||
Reference in New Issue
Block a user