Closed hwwhww closed 6 years ago
Fixes #59
indices_for_heights
indices_for_slots
get_indices_for_slot
get_block_hash
get_signed_parent_hashes()
get_attestation_indices
I think if we use the old get_signed_parent_hashes() + add some boundary cases checks, it would be faster and efficient than the new one.
What was wrong?
Fixes #59
How was it fixed?
indices_for_heights
toindices_for_slots
get_indices_for_slot
andget_block_hash
helper functions.get_signed_parent_hashes()
andget_attestation_indices
to use those functions.I think if we use the old
get_signed_parent_hashes()
+ add some boundary cases checks, it would be faster and efficient than the new one.TODO: Add more tests and refactor.