mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
parent
4e342b8802
commit
69d7f7f6ca
@ -89,16 +89,16 @@ func TestFFGUpdates_TwoBranches(t *testing.T) {
|
|||||||
assert.Equal(t, params.BeaconConfig().ZeroHash, r, "Incorrect head with genesis")
|
assert.Equal(t, params.BeaconConfig().ZeroHash, r, "Incorrect head with genesis")
|
||||||
|
|
||||||
// Define the following tree:
|
// Define the following tree:
|
||||||
// 0
|
// 0
|
||||||
// / \
|
// / \
|
||||||
// justified: 0, finalized: 0 -> 1 2 <- justified: 0, finalized: 0
|
// justified: 0, finalized: 0 -> 1 2 <- justified: 0, finalized: 0
|
||||||
// | |
|
// | |
|
||||||
// justified: 1, finalized: 0 -> 3 4 <- justified: 0, finalized: 0
|
// justified: 1, finalized: 0 -> 3 4 <- justified: 0, finalized: 0
|
||||||
// | |
|
// | |
|
||||||
// justified: 1, finalized: 0 -> 5 6 <- justified: 0, finalized: 0
|
// justified: 1, finalized: 0 -> 5 6 <- justified: 0, finalized: 0
|
||||||
// | |
|
// | |
|
||||||
// justified: 1, finalized: 0 -> 7 8 <- justified: 1, finalized: 0
|
// justified: 1, finalized: 0 -> 7 8 <- justified: 1, finalized: 0
|
||||||
// | |
|
// | |
|
||||||
// justified: 2, finalized: 0 -> 9 10 <- justified: 2, finalized: 0
|
// justified: 2, finalized: 0 -> 9 10 <- justified: 2, finalized: 0
|
||||||
// Left branch.
|
// Left branch.
|
||||||
state, blkRoot, err := prepareForkchoiceState(context.Background(), 1, indexToHash(1), params.BeaconConfig().ZeroHash, params.BeaconConfig().ZeroHash, 0, 0)
|
state, blkRoot, err := prepareForkchoiceState(context.Background(), 1, indexToHash(1), params.BeaconConfig().ZeroHash, params.BeaconConfig().ZeroHash, 0, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user