mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
CollationAdded event unpacked
Former-commit-id: 542a2c3a8ee952dfe49106d56efffdb3c08815d6 [formerly 8c1f11fe17594e2d69957bdf588f4ee633f8e7a8] Former-commit-id: ff10848fcfb8ca70e8973b39359b8c9ab631aaf3
This commit is contained in:
@@ -2,7 +2,11 @@ pragma solidity ^0.4.19;
|
||||
|
||||
contract VMC {
|
||||
event TxToShard(address indexed to, int indexed shardId, int receiptId);
|
||||
event CollationAdded(uint indexed shardId, bytes collationHeader, bool isNewHead, uint score);
|
||||
event CollationAdded(int indexed shardId, uint _expectedPeriodNumber,
|
||||
bytes32 _periodStartPrevHash, bytes32 _parentHash,
|
||||
bytes32 _transactionRoot, address _coinbase,
|
||||
bytes32 _stateRoot, bytes32 _receiptRoot,
|
||||
int _number, bool isNewHead, int score);
|
||||
event Deposit(address validator, int index);
|
||||
event Withdraw(int validatorIndex);
|
||||
|
||||
@@ -183,8 +187,10 @@ contract VMC {
|
||||
shardHead[_shardId] = headerVars.entireHeaderHash;
|
||||
headerVars.isNewHead = true;
|
||||
}
|
||||
// [TODO] Log
|
||||
//CollationAdded(headerBytes, isNewHead, _score);
|
||||
|
||||
CollationAdded(_shardId, _expectedPeriodNumber, _periodStartPrevHash,
|
||||
_parentHash, _transactionRoot, _coinbase, _stateRoot,
|
||||
_receiptRoot, _number, headerVars.isNewHead, headerVars.score);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user