Skip to content

Commit ea2cd3e

Browse files
committed
fix: compile errors
1 parent 8e76601 commit ea2cd3e

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

bindings/ldk_node.udl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ interface Bolt12Payment {
245245
interface SpontaneousPayment {
246246
// Alby: custom TLV & preimage (TODO: update to use send_with_preimage_and_custom_tlvs)
247247
[Throws=NodeError]
248-
PaymentId send_with_tlvs_and_preimage(u64 amount_msat, PublicKey node_id, SendingParameters? sending_parameters, sequence<TlvEntry> custom_tlvs, PaymentPreimage? preimage);
248+
PaymentId send_with_tlvs_and_preimage(u64 amount_msat, PublicKey node_id, RouteParametersConfig? route_parameters, sequence<TlvEntry> custom_tlvs, PaymentPreimage? preimage);
249249
//PaymentId send(u64 amount_msat, PublicKey node_id, RouteParametersConfig? route_parameters);
250250
//[Throws=NodeError]
251251
//PaymentId send_with_custom_tlvs(u64 amount_msat, PublicKey node_id, RouteParametersConfig? route_parameters, sequence<CustomTlvRecord> custom_tlvs);

src/lib.rs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,14 @@ use chain::ChainSource;
127127
use config::{
128128
//default_user_config, may_announce_channel, ChannelConfig, Config,
129129
//BACKGROUND_TASK_SHUTDOWN_TIMEOUT_SECS, LDK_EVENT_HANDLER_SHUTDOWN_TIMEOUT_SECS,
130-
default_user_config, may_announce_channel, AsyncPaymentsRole, ChannelConfig, Config,
131-
NODE_ANN_BCAST_INTERVAL, PEER_RECONNECTION_INTERVAL, RGS_SYNC_INTERVAL,
130+
default_user_config,
131+
may_announce_channel,
132+
AsyncPaymentsRole,
133+
ChannelConfig,
134+
Config,
135+
NODE_ANN_BCAST_INTERVAL,
136+
PEER_RECONNECTION_INTERVAL,
137+
RGS_SYNC_INTERVAL,
132138
};
133139
use connection::ConnectionManager;
134140
pub use error::Error as NodeError;
@@ -342,7 +348,7 @@ impl Node {
342348
}
343349
}
344350
}
345-
}, runtime_handle);
351+
});
346352
}
347353

348354
if let Some(pathfinding_scores_sync_url) = self.pathfinding_scores_sync_url.as_ref() {
@@ -507,7 +513,7 @@ impl Node {
507513
}
508514
}
509515
}
510-
}, runtime_handle);
516+
});
511517

512518
// Regularly broadcast node announcements.
513519
let bcast_cm = Arc::clone(&self.channel_manager);
@@ -590,7 +596,7 @@ impl Node {
590596
}
591597
}
592598
}
593-
}, runtime_handle);
599+
});
594600
}
595601

596602
let stop_tx_bcast = self.stop_sender.subscribe();
@@ -709,9 +715,7 @@ impl Node {
709715
}
710716
}
711717
}
712-
},
713-
runtime_handle,
714-
);
718+
});
715719
}
716720

717721
log_info!(self.logger, "Startup complete.");
@@ -1538,6 +1542,7 @@ impl Node {
15381542
},
15391543
)
15401544
});
1545+
}
15411546

15421547
/// Manually sync the LDK and BDK wallets with the current chain state and update the fee rate
15431548
/// cache.

0 commit comments

Comments
 (0)