Skip to content

Commit

Permalink
pre/post fork option
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Nov 21, 2023
1 parent 8374cb1 commit 391e608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vms/proposervm/post_fork_option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func TestBlockVerify_PostForkOption_ParentChecks(t *testing.T) {
},
ParentV: oracleCoreBlk.opts[0].ID(),
BytesV: []byte{4},
TimestampV: oracleCoreBlk.opts[0].Timestamp().Add(proposer.MaxVerifyDelay),
TimestampV: oracleCoreBlk.opts[0].Timestamp().Add(proposer.MaxBuildDelay),
}
coreVM.BuildBlockF = func(context.Context) (snowman.Block, error) {
return childCoreBlk, nil
Expand Down
4 changes: 2 additions & 2 deletions vms/proposervm/pre_fork_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func TestBlockVerify_PreFork_ParentChecks(t *testing.T) {
}
}

proVM.Set(proVM.Time().Add(proposer.MaxVerifyDelay))
proVM.Set(proVM.Time().Add(proposer.MaxBuildDelay))
prntProBlk, err := proVM.BuildBlock(context.Background())
require.NoError(err)

Expand All @@ -286,7 +286,7 @@ func TestBlockVerify_PreFork_ParentChecks(t *testing.T) {
StatusV: choices.Processing,
},
BytesV: []byte{2},
TimestampV: prntCoreBlk.Timestamp().Add(proposer.MaxVerifyDelay),
TimestampV: prntCoreBlk.Timestamp().Add(proposer.MaxBuildDelay),
}
childProBlk := preForkBlock{
Block: childCoreBlk,
Expand Down

0 comments on commit 391e608

Please sign in to comment.