Function FlashAPI.confirmChannelUpdate

Called by the peer when it has finished collecting the settlement & update transactions. It signals to the called node that the peer is ready for any new payments / updates.

abstract Result!(bool) confirmChannelUpdate (
  PublicKey sender_pk,
  PublicKey recv_pk,
  geod24.bitblob.BitBlob!(64L) chan_id,
  uint seq_id
) @safe;

Parameters

NameDescription
sender_pk the sender public key as managed by the counter-party. (note: will be used for signature authentication later)
recv_pk the receiving public key. If the receiving flash node does not manage this key it will return an error.
chan_id A previously seen pending channel ID provided by the funder node through the call to openChannel()
seq_id the sequence ID just used for signing

Returns

An error if the counter-party cannot accept this confirmation. This may happen in case of synchronization issues.