Skip to content

Commit

Permalink
Add TODO flag of latest message
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Jun 4, 2020
1 parent d8fdd84 commit 0a107d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specs/phase1/shard-fork-choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def get_shard_latest_attesting_balance(store: Store, shard_store: ShardStore, ro
state.validators[i].effective_balance for i in active_indices
if (
i in store.latest_messages
# TODO: check the latest message logic: currently, validator's previous vote of another shard
# 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
Expand Down

0 comments on commit 0a107d5

Please sign in to comment.