commitment_revocation

commitment_revocation -- Hook fired when a commitment transaction is revoked

DESCRIPTION

The commitment_revocation hook is called whenever a channel state is updated, and the old state was revoked. State updates in Lightning consist of the following steps:

  1. Proposal of a new state commitment in the form of a commitment transaction
  2. Exchange of signatures for the agreed upon commitment transaction
  3. Verification that the signatures match the commitment transaction
  4. Exchange of revocation secrets that could be used to penalize an eventual misbehaving party

The commitment_revocation hook is used to inform the plugin about the state transition being completed, and deliver the penalty transaction.
The penalty transaction could then be sent to a watchtower that automatically reacts in case one party attempts to settle using a revoked commitment.

This is a chained hook: multiple plugins may be registered.

HOOK PAYLOAD

  • commitment_txid (txid): The txid of the revoked commitment transaction.
  • penalty_tx (hex): The penalty transaction that can spend the revoked commitment.
    Can be sent to a watchtower for enforcement.
  • channel_id (hash): The channel_id for which the revocation occurred. (added v0.10.2)
  • commitnum (u64): The commitment number identifying the revoked state. (added v0.10.2)

HOOK RETURN

  • result (string) (always "continue"): Plugins should always return "continue", otherwise subsequent hook subscribers would not get called.

Core Lightning is Blockstream's open-source implementation of the Lightning Network optimised for performance. It is highly customizable through modular expandability.

© 2026 Core Lightning, a Blockstream project.
All rights reserved.

X Twitter Logo Streamline Icon: https://streamlinehq.com

X

The official Core Lightning X(Twitter) handle to follow project updates and announcements.

Github Logo 2 Streamline Icon: https://streamlinehq.com

Github

Github repository for source code, issues, and contributions. Visit our project here to explore or contibute.

Telegram

Community-driven telegram group where most of the node operators hang out. Go to https://t.me/lightningd to join.

Discord

Community-driven discord server where the devs flock together. Go to https://discord.gg/V6ay9yNhBQ to join.