Skip to content

Commit 3e12b57

Browse files
committed
f var name
1 parent f899254 commit 3e12b57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/msgs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ mod tests {
20592059
do_encoding_channel_update(true, true, true, true);
20602060
}
20612061

2062-
fn do_encoding_open_channel(random_bit: bool, shutdown: bool, chan_type: bool) {
2062+
fn do_encoding_open_channel(random_bit: bool, shutdown: bool, incl_chan_type: bool) {
20632063
let secp_ctx = Secp256k1::new();
20642064
let (_, pubkey_1) = get_keys_from!("0101010101010101010101010101010101010101010101010101010101010101", secp_ctx);
20652065
let (_, pubkey_2) = get_keys_from!("0202020202020202020202020202020202020202020202020202020202020202", secp_ctx);
@@ -2087,7 +2087,7 @@ mod tests {
20872087
first_per_commitment_point: pubkey_6,
20882088
channel_flags: if random_bit { 1 << 5 } else { 0 },
20892089
shutdown_scriptpubkey: if shutdown { OptionalField::Present(Address::p2pkh(&::bitcoin::PublicKey{compressed: true, key: pubkey_1}, Network::Testnet).script_pubkey()) } else { OptionalField::Absent },
2090-
channel_type: if chan_type { Some(ChannelTypeFeatures::empty()) } else { None },
2090+
channel_type: if incl_chan_type { Some(ChannelTypeFeatures::empty()) } else { None },
20912091
};
20922092
let encoded_value = open_channel.encode();
20932093
let mut target_value = Vec::new();
@@ -2101,7 +2101,7 @@ mod tests {
21012101
if shutdown {
21022102
target_value.append(&mut hex::decode("001976a91479b000887626b294a914501a4cd226b58b23598388ac").unwrap());
21032103
}
2104-
if chan_type {
2104+
if incl_chan_type {
21052105
target_value.append(&mut hex::decode("0100").unwrap());
21062106
}
21072107
assert_eq!(encoded_value, target_value);

0 commit comments

Comments
 (0)