From 8374cb1b18763c79206b227a35b8fe86be98af12 Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Tue, 21 Nov 2023 17:23:05 -0600 Subject: [PATCH] update max time in vm_byzantine --- vms/proposervm/vm_byzantine_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vms/proposervm/vm_byzantine_test.go b/vms/proposervm/vm_byzantine_test.go index dcfebf847cf3..3f312c0e791b 100644 --- a/vms/proposervm/vm_byzantine_test.go +++ b/vms/proposervm/vm_byzantine_test.go @@ -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 @@ -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) { @@ -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 @@ -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) {