Skip to content

Commit 33e4b6d

Browse files
committed
f names
1 parent 893b838 commit 33e4b6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ pub enum ConnectStyle {
8383
BestBlockFirst,
8484
/// The same as BestBlockFirst, however when we have multiple blocks to connect, we only
8585
/// make a single update_best_block call.
86-
BlockSkippingBestBlockFirst,
86+
BestBlockFirstSkippingBlocks,
8787
/// Calls transactions_confirmed first, detecting transactions in the block before updating the
8888
/// header and height information.
8989
TransactionsFirst,
9090
/// The same as TransactionsFirst, however when we have multiple blocks to connect, we only
9191
/// make a single update_best_block call.
92-
BlockSkippingTransactionsFirst,
92+
TransactionsFirstSkippingBlocks,
9393
/// Provides the full block via the chain::Listen interface. In the current code this is
9494
/// equivalent to TransactionsFirst with some additional assertions.
9595
FullBlockViaListen,
9696
}
9797

9898
pub fn connect_blocks<'a, 'b, 'c, 'd>(node: &'a Node<'b, 'c, 'd>, depth: u32) -> BlockHash {
9999
let skip_intermediaries = match *node.connect_style.borrow() {
100-
ConnectStyle::BlockSkippingBestBlockFirst|ConnectStyle::BlockSkippingTransactionsFirst => true,
100+
ConnectStyle::BestBlockFirstSkippingBlocks|ConnectStyle::TransactionsFirstSkippingBlocks => true,
101101
_ => false,
102102
};
103103

@@ -127,11 +127,11 @@ fn do_connect_block<'a, 'b, 'c, 'd>(node: &'a Node<'b, 'c, 'd>, block: &Block, s
127127
node.chain_monitor.chain_monitor.block_connected(&block.header, &txdata, height);
128128
if !skip_manager {
129129
match *node.connect_style.borrow() {
130-
ConnectStyle::BestBlockFirst|ConnectStyle::BlockSkippingBestBlockFirst => {
130+
ConnectStyle::BestBlockFirst|ConnectStyle::BestBlockFirstSkippingBlocks => {
131131
node.node.update_best_block(&block.header, height);
132132
node.node.transactions_confirmed(&block.header, height, &block.txdata.iter().enumerate().collect::<Vec<_>>());
133133
},
134-
ConnectStyle::TransactionsFirst|ConnectStyle::BlockSkippingTransactionsFirst => {
134+
ConnectStyle::TransactionsFirst|ConnectStyle::TransactionsFirstSkippingBlocks => {
135135
node.node.transactions_confirmed(&block.header, height, &block.txdata.iter().enumerate().collect::<Vec<_>>());
136136
node.node.update_best_block(&block.header, height);
137137
},
@@ -155,7 +155,7 @@ pub fn disconnect_blocks<'a, 'b, 'c, 'd>(node: &'a Node<'b, 'c, 'd>, count: u32)
155155
ConnectStyle::FullBlockViaListen => {
156156
Listen::block_disconnected(node.node, &orig_header.0, orig_header.1);
157157
},
158-
ConnectStyle::BlockSkippingBestBlockFirst|ConnectStyle::BlockSkippingTransactionsFirst => {
158+
ConnectStyle::BestBlockFirstSkippingBlocks|ConnectStyle::TransactionsFirstSkippingBlocks => {
159159
if i == count - 1 {
160160
node.node.update_best_block(&prev_header.0, prev_header.1);
161161
}

0 commit comments

Comments
 (0)