eos icon indicating copy to clipboard operation
eos copied to clipboard

DAWN-620 ⁃ "on block" action for system contract

Open blockone-syncclient opened this issue 8 years ago • 6 comments

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.

blockone-syncclient avatar Mar 22 '18 20:03 blockone-syncclient

➤ 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.

blockone-syncclient avatar Mar 22 '18 20:03 blockone-syncclient

➤ Matias Romeo commented:

It seems that Khaled is already working on it

blockone-syncclient avatar Mar 22 '18 20:03 blockone-syncclient

What branch has this code?

bytemaster avatar Mar 24 '18 00:03 bytemaster

It's in system-contract-voting-2.

zorba80 avatar Mar 24 '18 15:03 zorba80

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

andriantolie avatar Apr 04 '18 08:04 andriantolie

ATC passes

andriantolie avatar Apr 04 '18 08:04 andriantolie