Tidy BeaconChain; del spec, unify head updates

This commit is contained in:
Paul Hauner
2019-05-31 17:32:20 +10:00
parent 8acffcc0db
commit 2f9f8bf772
4 changed files with 176 additions and 132 deletions

View File

@@ -859,7 +859,7 @@ fn hello_message<T: BeaconChainTypes>(beacon_chain: &BeaconChain<T>) -> HelloMes
latest_finalized_root: state.finalized_root,
latest_finalized_epoch: state.finalized_epoch,
best_root: beacon_chain.head().beacon_block_root,
best_slot: beacon_chain.head().beacon_block.slot,
best_slot: state.slot,
}
}