MCPcopy Create free account
hub / github.com/ElementsProject/lightning / on_commitment_revocation

Function on_commitment_revocation

tests/plugins/watchtower.py:9–11  ·  view source on GitHub ↗
(commitment_txid, penalty_tx, channel_id, commitnum, plugin, **kwargs)

Source from the content-addressed store, hash-verified

7
8@plugin.hook('commitment_revocation')
9def on_commitment_revocation(commitment_txid, penalty_tx, channel_id, commitnum, plugin, **kwargs):
10 with open('watchtower.csv', 'a') as f:
11 f.write("{}, {}, {}, {}\n".format(commitment_txid, penalty_tx, channel_id, commitnum))
12
13
14plugin.run()

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected