Skip to content

Commit e461ac1

Browse files
committed
f simplify ser
1 parent 513e730 commit e461ac1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lightning/src/chain/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@ impl_writeable_tlv_based!(BestBlock, {
134134
(0, block_hash, required),
135135
// Note that any change to the previous_blocks array length will change the serialization
136136
// format and thus it is specified without constants here.
137-
(1, previous_blocks_read, (legacy, [Option<BlockHash>; 6 * 2], |us: &BestBlock| Some(us.previous_blocks))),
137+
(1, previous_blocks, (default_value, [None; 6 * 2])),
138138
(2, height, required),
139-
(unused, previous_blocks, (static_value, previous_blocks_read.unwrap_or([None; 6 * 2]))),
140139
});
141140

142141
/// The `Listen` trait is used to notify when blocks have been connected or disconnected from the

0 commit comments

Comments
 (0)