Open VEG-Ginna opened 1 year ago
Researched successfully as of now:
I suggest the following documentation to be written:
for point 4. Trust EVM versus EVM: important differences
from previous comment this is what we got from SME
TIMESTAMP
The timestamp of each block would be the ceiling timestamp of the last underlying EOS block.
BLOCKID
As we have fixed one block every second, the block id got in contract can be effectively calculated from timestamp:
id = timestamp in ms - genesis timestamp in ms
BLOCKHASH
The blockhash is calculated from block height and some salts.
block_hash = sha256(0x0, block_height, chain_id),
where
block_height is the current block height in uint64
chain_id is the chain_id used in uint64
COINBASE
The coinbase will be set to *0x0000000000000000000000000000000000000000*
DIFFICULTY
The difficulty will be fixed to 0.
GASLIMIT
The difficulty will be fixed to 0x7ffffffffff
Needs refinement and create separate tickets for each deliverable
Deliverables:
Child of https://github.com/eosnetworkfoundation/devrel/issues/91
More info provided by the SMEs https://docs.google.com/document/d/1ecFrIfbzD_XGhufhTmZKDNAnem7is3IAwWauXbeNs18/edit?usp=sharing