Refactored node contract lib control flow. (#176)

This commit is contained in:
Ravin Perera
2020-11-30 17:39:07 +05:30
committed by GitHub
parent 2f5d95ae7a
commit dfe42f827b
3 changed files with 47 additions and 92 deletions

View File

@@ -885,6 +885,7 @@ namespace consensus
else
{
// Populate the input content into the bufmap.
// It's VERY important that we preserve the proposal input hash order when feeding to the contract as well.
candidate_user_input &cand_input = itr->second;
sc::contract_iobufs &contract_user = bufmap[cand_input.userpubkey];
contract_user.inputs.push_back(cand_input.input);