Skip to content

Commit

Permalink
Fixed bugs with testnet parameters and state transition with no votes
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer9 committed Jun 3, 2019
1 parent 1ffee79 commit 29aa38b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const UnitInCoin = 100000000

// MainNetConfig is the config used on the mainnet
var MainNetConfig = Config{
ShardCount: 8,
ShardCount: 64,
TargetCommitteeSize: 3,
EjectionBalance: 16,
MaxBalanceChurnQuotient: 32,
Expand Down
2 changes: 1 addition & 1 deletion primitives/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ func (s *State) ProcessEpochTransition(c *config.Config, view BlockView) ([]Rece
}

if len(possibleHashes) == 0 {
return nil, fmt.Errorf("no votes counted for shard %d", shardCommittee.Shard)
return nil, nil
}

// find the top balance
Expand Down

0 comments on commit 29aa38b

Please sign in to comment.