mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-04 08:44:28 +00:00
sharding: test for add_header with normal usage
Former-commit-id: 63f6cf891ff13d1ea88126793ad73e0ef458ef6c [formerly 16966f2d6e2054b432852e46758c12a06108e6e3] Former-commit-id: 7d6ff2b31b31f59c171552043b6bb181dec0eaa7
This commit is contained in:
parent
3b7c5bf64c
commit
48a6306127
File diff suppressed because one or more lines are too long
@ -167,12 +167,11 @@ contract SMC {
|
|||||||
bytes32 _chunkRoot
|
bytes32 _chunkRoot
|
||||||
) public {
|
) public {
|
||||||
require((_shardId >= 0) && (_shardId < SHARD_COUNT));
|
require((_shardId >= 0) && (_shardId < SHARD_COUNT));
|
||||||
require(block.number >= PERIOD_LENGTH);
|
|
||||||
require(_period == block.number / PERIOD_LENGTH);
|
require(_period == block.number / PERIOD_LENGTH);
|
||||||
require(_period > lastSubmittedCollation[_shardId]);
|
require(_period > lastSubmittedCollation[_shardId]);
|
||||||
|
|
||||||
// Track the numbers of participating notaries in between periods
|
//Track the numbers of participating notaries in between periods
|
||||||
updateNotarySampleSize();
|
//updateNotarySampleSize();
|
||||||
|
|
||||||
collationRecords[_shardId][_period] = CollationRecord({
|
collationRecords[_shardId][_period] = CollationRecord({
|
||||||
chunkRoot: _chunkRoot,
|
chunkRoot: _chunkRoot,
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user