Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lean_client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ async fn main() -> Result<()> {
"Our turn to propose block!"
);

match vs.build_block_proposal(&mut *store.write(), Slot(current_slot), proposer_idx) {
let result = {vs.build_block_proposal(&mut *store.write(), Slot(current_slot), proposer_idx)};
match result {
Ok(signed_block) => {
let block_root = signed_block.message.block.hash_tree_root();
info!(
Expand Down Expand Up @@ -865,7 +866,8 @@ async fn main() -> Result<()> {
continue;
}

match on_block(&mut *store.write(), signed_block_with_attestation.clone()) {
let result = {on_block(&mut *store.write(), signed_block_with_attestation.clone())};
match result {
Ok(()) => {
info!("Block processed successfully");

Expand Down
Loading