Skip to content

Commit

Permalink
Fix failing finalize_block unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Jan 13, 2023
1 parent 1e80868 commit 3456409
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions apps/src/lib/node/ledger/shell/finalize_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,16 @@ where
}
#[cfg(not(feature = "abcipp"))]
{
let proposer = self
.storage
.read_current_block_proposer_address()
.expect(
"Current block proposer should always be set in \
ProcessProposal",
);
self.storage.write_last_block_proposer_address(&proposer);
let proposer =
self.storage.read_current_block_proposer_address();
// .expect(
// "Current block proposer should always be set in \
// ProcessProposal",
// );
if let Some(proposer) = proposer {
self.storage
.write_last_block_proposer_address(&proposer);
}
}
}
}
Expand Down

0 comments on commit 3456409

Please sign in to comment.