Function
on_commitment_revocation
(commitment_txid, penalty_tx, channel_id, commitnum, plugin, **kwargs)
Source from the content-addressed store, hash-verified
| 7 | |
| 8 | @plugin.hook('commitment_revocation') |
| 9 | def 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 | |
| 14 | plugin.run() |
Callers
nothing calls this directly
Tested by
no test coverage detected