You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix tests for LSPS4 and Logger generic additions (#19)
LiquidityManager gained an 8th generic parameter (Logger) and
KVStore targets now require KVStoreSync. Several test files and
doctests were not updated after these changes landed.
background-processor: The NO_LIQUIDITY_MANAGER const uses a dyn
trait object for KVStore, but trait objects can only name one
trait. Add a KVStoreFull supertrait combining KVStore and
KVStoreSync so the dyn bound remains expressible. Add the Logger
generic and KVStoreSync impl to the process_events_async
doctest's stub Store type.
lightning-liquidity tests: Add missing lsps4_service_config and
lsps4_client_config fields (None) to config initializers in
lsps0, lsps2, and lsps5 integration tests. Pass logger to
LiquidityManagerSync::new calls and add TestLogger to type
annotations.
channel.rs tests: Remove duplicate import block left over from
a bad merge in 736d3a8. Fix field accesses that moved from
ChannelContext to FundingScope (channel_value_satoshis,
holder_selected_channel_reserve_satoshis). Update
TestFeeEstimator construction to use the new constructor API.
let expected_outbound_selected_chan_reserve = cmp::max(outbound_node_config.channel_handshake_config.min_their_channel_reserve_satoshis, (chan.context.channel_value_satoshis as f64 * outbound_selected_channel_reserve_perc) as u64);
let expected_outbound_selected_chan_reserve = cmp::max(outbound_node_config.channel_handshake_config.min_their_channel_reserve_satoshis, (chan.funding.get_value_satoshis() as f64 * outbound_selected_channel_reserve_perc) as u64);
let expected_inbound_selected_chan_reserve = cmp::max(inbound_node_config.channel_handshake_config.min_their_channel_reserve_satoshis, (chan.context.channel_value_satoshis as f64 * inbound_selected_channel_reserve_perc) as u64);
16282
+
let expected_inbound_selected_chan_reserve = cmp::max(inbound_node_config.channel_handshake_config.min_their_channel_reserve_satoshis, (chan.funding.get_value_satoshis() as f64 * inbound_selected_channel_reserve_perc) as u64);
0 commit comments