Skip to content

Commit

Permalink
update max time in vm_byzantine
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Nov 21, 2023
1 parent d36b61e commit 8374cb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vms/proposervm/vm_byzantine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestInvalidByzantineProposerParent(t *testing.T) {
BytesV: []byte{1},
ParentV: gBlock.ID(),
HeightV: gBlock.Height() + 1,
TimestampV: gBlock.Timestamp().Add(proposer.MaxVerifyDelay),
TimestampV: gBlock.Timestamp().Add(proposer.MaxBuildDelay),
}
coreVM.BuildBlockF = func(context.Context) (snowman.Block, error) {
return xBlock, nil
Expand All @@ -70,7 +70,7 @@ func TestInvalidByzantineProposerParent(t *testing.T) {
BytesV: yBlockBytes,
ParentV: xBlock.ID(),
HeightV: xBlock.Height() + 1,
TimestampV: xBlock.Timestamp().Add(proposer.MaxVerifyDelay),
TimestampV: xBlock.Timestamp().Add(proposer.MaxBuildDelay),
}

coreVM.ParseBlockF = func(_ context.Context, blockBytes []byte) (snowman.Block, error) {
Expand Down Expand Up @@ -225,7 +225,7 @@ func TestInvalidByzantineProposerPreForkParent(t *testing.T) {
BytesV: []byte{1},
ParentV: gBlock.ID(),
HeightV: gBlock.Height() + 1,
TimestampV: gBlock.Timestamp().Add(proposer.MaxVerifyDelay),
TimestampV: gBlock.Timestamp().Add(proposer.MaxBuildDelay),
}
coreVM.BuildBlockF = func(context.Context) (snowman.Block, error) {
return xBlock, nil
Expand All @@ -240,7 +240,7 @@ func TestInvalidByzantineProposerPreForkParent(t *testing.T) {
BytesV: yBlockBytes,
ParentV: xBlock.ID(),
HeightV: xBlock.Height() + 1,
TimestampV: xBlock.Timestamp().Add(proposer.MaxVerifyDelay),
TimestampV: xBlock.Timestamp().Add(proposer.MaxBuildDelay),
}

coreVM.GetBlockF = func(_ context.Context, blkID ids.ID) (snowman.Block, error) {
Expand Down

0 comments on commit 8374cb1

Please sign in to comment.