DAWN-620 ⁃ "on block" action for system contract
At the close of every block the system contract should receive an action which contains header information of the block. The purpose of this action is to trigger any per-block processing in the system contract.
This action should be implicit and not directly mentioned in the block structure (however, it can and should appear in the block trac)
This action should contribute to the action merkle for the block.
➤ Bart Wyatt commented:
need to confirm with [~dan.larimer] this should either receive the complete headers of the block before OR some incomplete header data of the current block (maybe both?)
Considering this will contribute to things like the action merkle, we cannot pass complete headers of the current block to the action.
➤ Matias Romeo commented:
It seems that Khaled is already working on it
What branch has this code?
It's in system-contract-voting-2.
ATC:
- Modified onblock handler inside eosio.system to print a statement
- Upload eosio.system contract to eosio
- Verify that the statement is printed every time a block is produced
ATC passes