build on the _last_ block processed, meaning it's going to be the highest such block

This commit is contained in:
Jude Nelson
2020-06-01 15:31:33 -04:00
parent b776c1b6fd
commit 45b89069ae

View File

@@ -138,7 +138,7 @@ fn inner_process_tenure(
// todo(ludo): yikes but good enough in the context of helium:
// we only expect 1 block.
let processed_block = match processed_blocks.get(0) {
let processed_block = match processed_blocks.last() {
Some(x) => x.clone().0.unwrap(),
None => {
warn!("Chainstate expected to process a new block, but we didn't");