Function Channel.onUpdateTxExternalized

Called when the trigger / update transaction of this channel has been either detected in one of the nodes' transaction pools, or if it was externalized in the blockchain.

void onUpdateTxExternalized (
  in ref const(Transaction) tx,
  in const(uint) utxo_idx,
  in const(bool) is_last
);

This signals that the channel attemted to be unilaterally closed by some counter-party.

The state of this channel will change to PendingClose, which will make it reject any new balance update requests.

If the tx is not the latest update transaction the Channel will try to publish the latest update transaction. The Channel will then publish the latest matching settlement transaction.

Parameters

NameDescription
tx the trigger / update transaction.