Skip to content

Commit 1efc9a3

Browse files
committed
f Wording nits
1 parent bfad3dc commit 1efc9a3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/lib.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,14 @@ impl Builder {
316316
channel_manager
317317
} else {
318318
// We're starting a fresh node.
319-
let dummy_block_hash = bitcoin::blockdata::constants::genesis_block(config.network)
320-
.header
321-
.block_hash();
319+
let genesis_block_hash =
320+
bitcoin::blockdata::constants::genesis_block(config.network)
321+
.header
322+
.block_hash();
322323

323324
let chain_params = ChainParameters {
324325
network: config.network,
325-
best_block: BestBlock::new(dummy_block_hash, 0),
326+
best_block: BestBlock::new(genesis_block_hash, 0),
326327
};
327328
channelmanager::ChannelManager::new(
328329
Arc::clone(&wallet),
@@ -940,7 +941,7 @@ impl Node {
940941
if amount_msat < invoice_amount_msat {
941942
log_error!(
942943
self.logger,
943-
"Failed to pay as the given amount needs to be larger or equal to the invoice amount: required {}msat, gave {}msat.", invoice_amount_msat, amount_msat);
944+
"Failed to pay as the given amount needs to be at least the invoice amount: required {}msat, gave {}msat.", invoice_amount_msat, amount_msat);
944945
return Err(Error::InvalidAmount);
945946
}
946947
}

0 commit comments

Comments
 (0)