|
16 | 16 |
|
17 | 17 | use chain::keysinterface::SpendableOutputDescriptor;
|
18 | 18 | use ln::channelmanager::PaymentId;
|
19 |
| -use ln::channel::FUNDING_CONF_DEADLINE_BLOCKS; |
| 19 | +use ln::channel::{FUNDING_CONF_DEADLINE_BLOCKS, HTLCDestination}; |
20 | 20 | use ln::features::ChannelTypeFeatures;
|
21 | 21 | use ln::msgs;
|
22 | 22 | use ln::msgs::DecodeError;
|
@@ -451,9 +451,9 @@ pub enum Event {
|
451 | 451 | /// Indicates that a payment has failed to be forwarded through us
|
452 | 452 | PaymentForwardedFailed {
|
453 | 453 | /// The channel_id of the sender
|
454 |
| - source_channel_id: u64, |
455 |
| - /// The node_id of the receiver where forwarding has failed |
456 |
| - sink_node_id: PublicKey |
| 454 | + source_channel_id: [u8; 32], |
| 455 | + /// Destination of payment: |
| 456 | + destination: HTLCDestination |
457 | 457 | },
|
458 | 458 | }
|
459 | 459 |
|
@@ -573,11 +573,11 @@ impl Writeable for Event {
|
573 | 573 | // We never write the OpenChannelRequest events as, upon disconnection, peers
|
574 | 574 | // drop any channels which have not yet exchanged funding_signed.
|
575 | 575 | },
|
576 |
| - &Event::PaymentForwardedFailed { ref source_channel_id, ref sink_node_id } => { |
| 576 | + &Event::PaymentForwardedFailed { ref source_channel_id, ref destination } => { |
577 | 577 | 18u8.write(writer)?;
|
578 | 578 | write_tlv_fields!(writer, {
|
579 | 579 | (0, source_channel_id, required),
|
580 |
| - (2, sink_node_id, required), |
| 580 | + (2, destination, required), |
581 | 581 | })
|
582 | 582 | }
|
583 | 583 | // Note that, going forward, all new events must only write data inside of
|
|
0 commit comments