PR feedback from Terence: fix `get_shard_latest_attesting_balance`

Co-authored-by: terence tsao <terence@prysmaticlabs.com>
This commit is contained in:
Hsiao-Wei Wang 2020-06-08 17:12:46 +08:00 committed by GitHub
parent a154d0c22b
commit 435505746c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def get_shard_latest_attesting_balance(store: Store, shard_store: ShardStore, ro
# would be ignored once their newer vote is accepted. Check if it makes sense.
and store.latest_messages[i].shard == shard_store.shard
and get_shard_ancestor(
store, shard_store, store.latest_messages[i].root, shard_store.blocks[root].slot
store, shard_store, store.latest_messages[i].shard_root, shard_store.blocks[root].slot
) == root
)
))