Skip to content

Instantly share code, notes, and snippets.

@paulhauner
Created January 16, 2020 02:52
Show Gist options
  • Save paulhauner/c7b71e50d25e679d36726167d11bebcb to your computer and use it in GitHub Desktop.
Save paulhauner/c7b71e50d25e679d36726167d11bebcb to your computer and use it in GitHub Desktop.
Fork Choice Test
---
finalized_block_slot: 0
justified_epoch: 1
finalized_epoch: 1
finalized_root: 0x0000000000000000000000000000000000000000000000000000000000000000
operations:
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000000
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000002
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000000
justified_epoch: 1
finalized_epoch: 1
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000002
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000001
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000000
justified_epoch: 1
finalized_epoch: 1
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000002
- ProcessAttestation:
validator_index: 0
block_root: 0x0000000000000000000000000000000000000000000000000000000000000001
target_epoch: 2
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000001
- ProcessAttestation:
validator_index: 1
block_root: 0x0000000000000000000000000000000000000000000000000000000000000002
target_epoch: 2
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000002
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000003
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000001
justified_epoch: 1
finalized_epoch: 1
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000002
- ProcessAttestation:
validator_index: 0
block_root: 0x0000000000000000000000000000000000000000000000000000000000000003
target_epoch: 3
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000002
- ProcessAttestation:
validator_index: 1
block_root: 0x0000000000000000000000000000000000000000000000000000000000000001
target_epoch: 3
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000003
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000004
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000003
justified_epoch: 1
finalized_epoch: 1
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000004
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000005
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000004
justified_epoch: 2
finalized_epoch: 2
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000004
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000006
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000004
justified_epoch: 1
finalized_epoch: 1
- ProcessAttestation:
validator_index: 0
block_root: 0x0000000000000000000000000000000000000000000000000000000000000005
target_epoch: 4
- ProcessAttestation:
validator_index: 1
block_root: 0x0000000000000000000000000000000000000000000000000000000000000005
target_epoch: 4
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000007
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000005
justified_epoch: 2
finalized_epoch: 2
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000008
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000007
justified_epoch: 2
finalized_epoch: 2
- ProcessBlock:
slot: 0
root: 0x0000000000000000000000000000000000000000000000000000000000000009
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000008
justified_epoch: 2
finalized_epoch: 2
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000006
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000009
- ProcessAttestation:
validator_index: 0
block_root: 0x0000000000000000000000000000000000000000000000000000000000000009
target_epoch: 5
- ProcessAttestation:
validator_index: 1
block_root: 0x0000000000000000000000000000000000000000000000000000000000000009
target_epoch: 5
- ProcessBlock:
slot: 0
root: 0x000000000000000000000000000000000000000000000000000000000000000a
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000008
justified_epoch: 2
finalized_epoch: 2
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000009
- ProcessAttestation:
validator_index: 2
block_root: 0x000000000000000000000000000000000000000000000000000000000000000a
target_epoch: 5
- ProcessAttestation:
validator_index: 3
block_root: 0x000000000000000000000000000000000000000000000000000000000000000a
target_epoch: 5
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
- 1
- 1
expected_head: 0x000000000000000000000000000000000000000000000000000000000000000a
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
- 0
- 0
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000009
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
- 1
- 1
expected_head: 0x000000000000000000000000000000000000000000000000000000000000000a
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000009
- Prune:
finalized_epoch: 2
finalized_root: 0x0000000000000000000000000000000000000000000000000000000000000005
prune_threshold: 18446744073709551615
expected_len: 11
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000009
- Prune:
finalized_epoch: 2
finalized_root: 0x0000000000000000000000000000000000000000000000000000000000000005
prune_threshold: 1
expected_len: 6
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
expected_head: 0x0000000000000000000000000000000000000000000000000000000000000009
- ProcessBlock:
slot: 0
root: 0x000000000000000000000000000000000000000000000000000000000000000b
parent_root: 0x0000000000000000000000000000000000000000000000000000000000000009
justified_epoch: 2
finalized_epoch: 2
- FindHead:
justified_epoch: 2
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000005
finalized_epoch: 2
justified_state_balances:
- 1
- 1
expected_head: 0x000000000000000000000000000000000000000000000000000000000000000b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment