Merge branch 'dev' into epoch-start

This commit is contained in:
Danny Ryan 2019-03-08 08:51:19 -07:00
commit 7dc61c6126
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -1655,7 +1655,7 @@ def lmd_ghost(store: Store, start_state: BeaconState, start_block: BeaconBlock)
children = get_children(store, head)
if len(children) == 0:
return head
head = max(children, key=get_vote_count)
head = max(children, key=lambda x: (get_vote_count(x), hash_tree_root(x)))
```
## Beacon chain state transition function