Function FlashListenerAPI.onChannelNotify

Called when the state of a channel changes, for example when the channel is accepted / rejected by the counter-party.

abstract void onChannelNotify (
  PublicKey pk,
  geod24.bitblob.BitBlob!(64L) chan_id,
  ChannelState state,
  ErrorCode error,
  Height height = Height(0LU)
) @safe;

Parameters

NameDescription
chan_id channel ID
state the current state of the channel
error if state is rejected, it will contain any error stating the reason why a channel was rejected
height situational block height of the event