Function Channel.onProposedPayment
Called by a counter-party node when it wants to propose a new payment.
Result!(agora.flash.Types.PublicNonce) onProposedPayment
(
in const(uint) seq_id,
in ref const(geod24 .bitblob .BitBlob!(64L)) payment_hash,
in const(Amount) amount,
in const(Height) lock_height,
in ref const(OnionPacket) packet,
in ref const(Payload) payload,
in ref const(PublicNonce) peer_nonce,
in const(Height) height,
in ref const(agora .crypto .ECC .Point) shared_secret
) @trusted;
Schedules the payment to be handled later.
Parameters
Name | Description |
---|---|
seq_id | the new sequence ID |
payment_hash | the invoice payment hash |
amount | the amount the counter-party wants to forward |
lock_height | the lock height for the outgoing HTLC |
payload | the decrypted payload |
peer_nonce | the public nonce the counter-party will use for signing |
height | the current known block height |
shared_secret | secret used to decrypt the payload |
Returns
the public nonce this node will use, or an error