aboutsummaryrefslogtreecommitdiff
path: root/src/consensus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/consensus.cpp')
-rw-r--r--src/consensus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consensus.cpp b/src/consensus.cpp
index f752515..d801de8 100644
--- a/src/consensus.cpp
+++ b/src/consensus.cpp
@@ -119,9 +119,9 @@ void HotStuffCore::update(const block_t &nblk) {
const block_t &blk = *it;
blk->decision = 1;
LOG_PROTO("commit %s", std::string(*blk).c_str());
- for (size_t i = 0; i < blks->cmds.size(); i++)
+ for (size_t i = 0; i < blk->cmds.size(); i++)
do_decide(Finality(id, 1, i, blk->height,
- cmd, blk->get_hash()));
+ blk->cmds[i], blk->get_hash()));
}
bexec = p;
}