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
Parameterize ChannelManager::new with a block hash
When ChannelMonitors are persisted, they need to store the most recent
block hash seen. However, for newly created channels the default block
hash is used. If persisted before a block is connected, the funding
output may be missed when syncing after a restart. Instead, initialize
ChannelManager with a "birthday" hash so it can be used later when
creating channels.
Copy file name to clipboardExpand all lines: lightning/src/ln/functional_test_utils.rs
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
use chain::Watch;
14
14
use chain::channelmonitor::ChannelMonitor;
15
15
use chain::transaction::OutPoint;
16
-
use ln::channelmanager::{ChannelManager,ChannelManagerReadArgs,RAACommitmentOrder,PaymentPreimage,PaymentHash,PaymentSecret,PaymentSendFailure};
16
+
use ln::channelmanager::{ChainParameters,ChannelManager,ChannelManagerReadArgs,RAACommitmentOrder,PaymentPreimage,PaymentHash,PaymentSecret,PaymentSendFailure};
17
17
use routing::router::{Route, get_route};
18
18
use routing::network_graph::{NetGraphMsgHandler,NetworkGraph};
19
19
use ln::features::InitFeatures;
@@ -28,6 +28,7 @@ use util::config::UserConfig;
28
28
use util::ser::{ReadableArgs,Writeable,Readable};
29
29
30
30
use bitcoin::blockdata::block::{Block,BlockHeader};
31
+
use bitcoin::blockdata::constants::genesis_block;
31
32
use bitcoin::blockdata::transaction::{Transaction,TxOut};
default_config.own_channel_config.our_htlc_minimum_msat = 1000;// sanitization being done by the sender, to exerce receiver logic we need to lift of limit
0 commit comments