mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-29 12:15:22 +08:00
build on the _last_ block processed, meaning it's going to be the highest such block
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user