sharding: test for add_header with normal usage

Former-commit-id: 63f6cf891ff13d1ea88126793ad73e0ef458ef6c [formerly 16966f2d6e2054b432852e46758c12a06108e6e3]
Former-commit-id: 7d6ff2b31b31f59c171552043b6bb181dec0eaa7
This commit is contained in:
Terence Tsao 2018-05-01 21:33:40 -07:00
parent 3b7c5bf64c
commit 48a6306127
3 changed files with 815 additions and 571 deletions

File diff suppressed because one or more lines are too long

View File

@ -167,12 +167,11 @@ contract SMC {
bytes32 _chunkRoot
) public {
require((_shardId >= 0) && (_shardId < SHARD_COUNT));
require(block.number >= PERIOD_LENGTH);
require(_period == block.number / PERIOD_LENGTH);
require(_period > lastSubmittedCollation[_shardId]);
// Track the numbers of participating notaries in between periods
updateNotarySampleSize();
//Track the numbers of participating notaries in between periods
//updateNotarySampleSize();
collationRecords[_shardId][_period] = CollationRecord({
chunkRoot: _chunkRoot,

File diff suppressed because it is too large Load Diff