Skip to content

Commit

Permalink
eth_block_num should be Option
Browse files Browse the repository at this point in the history
  • Loading branch information
FiveMovesAhead committed Jun 6, 2024
1 parent 99606b6 commit d6f5d77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tig-protocol/src/add_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async fn create_block<T: Context>(ctx: &mut T) -> Block {
active_algorithm_ids: HashSet::<String>::new(),
active_benchmark_ids: HashSet::<String>::new(),
active_player_ids: HashSet::<String>::new(),
eth_block_num,
eth_block_num: Some(eth_block_num),
};
for algorithm in ctx
.get_algorithms(AlgorithmsFilter::Mempool, None, false)
Expand Down
2 changes: 1 addition & 1 deletion tig-structs/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ serializable_struct_with_getters! {
active_algorithm_ids: HashSet<String>,
active_benchmark_ids: HashSet<String>,
active_player_ids: HashSet<String>,
eth_block_num: String,
eth_block_num: Option<String>,
}
}

Expand Down

0 comments on commit d6f5d77

Please sign in to comment.