Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks backfilling option - 2 ProposerVM #2241

Closed
wants to merge 51 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
a2511c8
moved up proposerVM block backfilling
abi87 Oct 30, 2023
24e58ba
proposerVM scaffolding
abi87 Oct 30, 2023
dad9abe
proposerVM hardened BackfillBlocks checks
abi87 Oct 30, 2023
9158955
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Oct 30, 2023
95961ce
fixed merge
abi87 Oct 30, 2023
0f5b503
fixed merge
abi87 Oct 30, 2023
fe215b2
cleanup
abi87 Oct 30, 2023
5beab36
wip: proposerVM block backfilling fixes
abi87 Oct 31, 2023
57cd3be
wip: adding UTs
abi87 Oct 31, 2023
8dbe6af
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 1, 2023
d1d5ad0
wip: adding UTs
abi87 Nov 1, 2023
6ded29a
wip: adding UTs
abi87 Nov 1, 2023
2550a87
nit
abi87 Nov 1, 2023
d40a434
fixed last accepted block data
abi87 Nov 2, 2023
4173d31
refactored block backfilling
abi87 Nov 2, 2023
d937723
stored last backfilled block
abi87 Nov 2, 2023
13a73a2
wip: backfilled blocks repairing
abi87 Nov 2, 2023
71679c1
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 2, 2023
0ead0a5
nit
abi87 Nov 2, 2023
fa00abd
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 3, 2023
8ac3a71
wip: added preFork UTs for block backfilling
abi87 Nov 3, 2023
4ac552b
wip: some more preFork UTs for block backfilling
abi87 Nov 3, 2023
380a318
nit
abi87 Nov 3, 2023
feecab0
wip: some more acrossFork UTs for block backfilling
abi87 Nov 3, 2023
374c385
dropped state sync done check
abi87 Nov 3, 2023
dda276b
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 3, 2023
6d0c069
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 4, 2023
f60c21e
introduced backfilling internal error
abi87 Nov 4, 2023
c51fcd2
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 5, 2023
968ddbd
fixed error checking
abi87 Nov 5, 2023
18ad601
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 8, 2023
eb08eff
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 9, 2023
029c761
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 9, 2023
1869915
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 13, 2023
5ff98af
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 14, 2023
b6cbcc0
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 15, 2023
448dc31
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 19, 2023
326c2e9
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 20, 2023
35d5483
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 21, 2023
810599f
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 22, 2023
cff3eea
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 23, 2023
ac734f7
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 27, 2023
181d827
nit
abi87 Nov 27, 2023
c4feb41
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 28, 2023
48834c9
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Nov 29, 2023
63f2439
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Dec 3, 2023
43b09a9
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Dec 11, 2023
b0dde4b
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Dec 27, 2023
29c5a5a
fixed merge
abi87 Dec 27, 2023
ac33ad0
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Jan 2, 2024
44ae331
Merge branch 'backfill_blocks' into backfill_blocks_proposerVM
abi87 Jan 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
nit
abi87 committed Nov 2, 2023
commit 0ead0a5cb61abc74075a3f7cef3cf99e1ab888a2
12 changes: 6 additions & 6 deletions vms/proposervm/state_sync_block_backfilling_test.go
Original file line number Diff line number Diff line change
@@ -161,13 +161,13 @@ func TestBlockBackfillSuccess(t *testing.T) {
return nil, database.ErrNotFound
}
}
innerVM.BackfillBlocksEnabledF = func(ctx context.Context) (ids.ID, uint64, error) {
return innerStateSyncedBlk.ID(), innerStateSyncedBlk.Height() - 1, nil
}

fromInnerVMCh <- common.StateSyncDone
<-toEngineCh

innerVM.BackfillBlocksEnabledF = func(ctx context.Context) (ids.ID, uint64, error) {
return innerStateSyncedBlk.ID(), innerStateSyncedBlk.Height() - 1, nil
}
blkID, _, err := vm.BackfillBlocksEnabled(ctx)
require.NoError(err)
require.Equal(proTopBlk.ID(), blkID)
@@ -275,13 +275,13 @@ func TestBlockBackfillPartialSuccess(t *testing.T) {
return nil, database.ErrNotFound
}
}
innerVM.BackfillBlocksEnabledF = func(ctx context.Context) (ids.ID, uint64, error) {
return innerStateSyncedBlk.ID(), innerStateSyncedBlk.Height() - 1, nil
}

fromInnerVMCh <- common.StateSyncDone
<-toEngineCh

innerVM.BackfillBlocksEnabledF = func(ctx context.Context) (ids.ID, uint64, error) {
return innerStateSyncedBlk.ID(), innerStateSyncedBlk.Height() - 1, nil
}
blkID, height, err := vm.BackfillBlocksEnabled(ctx)
require.NoError(err)
require.Equal(proTopBlk.ID(), blkID)