Function FlashNode.onPaymentComplete

Called by a channel once a payment has been completed.

void onPaymentComplete (
  PublicKey reg_pk,
  geod24.bitblob.BitBlob!(64L) chan_id,
  geod24.bitblob.BitBlob!(64L) payment_hash,
  ErrorCode error = ErrorCode.None
) @safe;

If the there are any known secrets, we can propose an update to the channel state by revealing the secrets to the counter-parties.

Parameters

NameDescription
chan_id the channel ID for which the payment was completed
payment_hash the payment hash which was used