@@ -225,7 +225,7 @@ func TestGetAncestorsPostForkOnly(t *testing.T) {
225
225
// prepare build of next block
226
226
require .NoError (builtBlk1 .Verify (context .Background ()))
227
227
require .NoError (proRemoteVM .SetPreference (context .Background (), builtBlk1 .ID ()))
228
- proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxDelay ))
228
+ proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxBuildDelay ))
229
229
230
230
coreBlk2 := & snowman.TestBlock {
231
231
TestDecidable : choices.TestDecidable {
@@ -235,7 +235,7 @@ func TestGetAncestorsPostForkOnly(t *testing.T) {
235
235
BytesV : []byte {2 },
236
236
ParentV : coreBlk1 .ID (),
237
237
HeightV : coreBlk1 .Height () + 1 ,
238
- TimestampV : coreBlk1 .Timestamp ().Add (proposer .MaxDelay ),
238
+ TimestampV : coreBlk1 .Timestamp ().Add (proposer .MaxVerifyDelay ),
239
239
}
240
240
coreVM .BuildBlockF = func (context.Context ) (snowman.Block , error ) {
241
241
return coreBlk2 , nil
@@ -246,7 +246,7 @@ func TestGetAncestorsPostForkOnly(t *testing.T) {
246
246
// prepare build of next block
247
247
require .NoError (builtBlk2 .Verify (context .Background ()))
248
248
require .NoError (proRemoteVM .SetPreference (context .Background (), builtBlk2 .ID ()))
249
- proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxDelay ))
249
+ proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxBuildDelay ))
250
250
251
251
coreBlk3 := & snowman.TestBlock {
252
252
TestDecidable : choices.TestDecidable {
@@ -431,7 +431,7 @@ func TestGetAncestorsAtSnomanPlusPlusFork(t *testing.T) {
431
431
BytesV : []byte {3 },
432
432
ParentV : coreBlk2 .ID (),
433
433
HeightV : coreBlk2 .Height () + 1 ,
434
- TimestampV : postForkTime .Add (proposer .MaxDelay ),
434
+ TimestampV : postForkTime .Add (proposer .MaxVerifyDelay ),
435
435
}
436
436
coreVM .BuildBlockF = func (context.Context ) (snowman.Block , error ) {
437
437
return coreBlk3 , nil
@@ -443,7 +443,7 @@ func TestGetAncestorsAtSnomanPlusPlusFork(t *testing.T) {
443
443
// prepare build of next block
444
444
require .NoError (builtBlk3 .Verify (context .Background ()))
445
445
require .NoError (proRemoteVM .SetPreference (context .Background (), builtBlk3 .ID ()))
446
- proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxDelay ))
446
+ proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxBuildDelay ))
447
447
448
448
coreBlk4 := & snowman.TestBlock {
449
449
TestDecidable : choices.TestDecidable {
@@ -704,7 +704,7 @@ func TestBatchedParseBlockPostForkOnly(t *testing.T) {
704
704
// prepare build of next block
705
705
require .NoError (builtBlk1 .Verify (context .Background ()))
706
706
require .NoError (proRemoteVM .SetPreference (context .Background (), builtBlk1 .ID ()))
707
- proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxDelay ))
707
+ proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxBuildDelay ))
708
708
709
709
coreBlk2 := & snowman.TestBlock {
710
710
TestDecidable : choices.TestDecidable {
@@ -714,7 +714,7 @@ func TestBatchedParseBlockPostForkOnly(t *testing.T) {
714
714
BytesV : []byte {2 },
715
715
ParentV : coreBlk1 .ID (),
716
716
HeightV : coreBlk1 .Height () + 1 ,
717
- TimestampV : coreBlk1 .Timestamp ().Add (proposer .MaxDelay ),
717
+ TimestampV : coreBlk1 .Timestamp ().Add (proposer .MaxVerifyDelay ),
718
718
}
719
719
coreVM .BuildBlockF = func (context.Context ) (snowman.Block , error ) {
720
720
return coreBlk2 , nil
@@ -725,7 +725,7 @@ func TestBatchedParseBlockPostForkOnly(t *testing.T) {
725
725
// prepare build of next block
726
726
require .NoError (builtBlk2 .Verify (context .Background ()))
727
727
require .NoError (proRemoteVM .SetPreference (context .Background (), builtBlk2 .ID ()))
728
- proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxDelay ))
728
+ proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxBuildDelay ))
729
729
730
730
coreBlk3 := & snowman.TestBlock {
731
731
TestDecidable : choices.TestDecidable {
@@ -867,7 +867,7 @@ func TestBatchedParseBlockAtSnomanPlusPlusFork(t *testing.T) {
867
867
BytesV : []byte {3 },
868
868
ParentV : coreBlk2 .ID (),
869
869
HeightV : coreBlk2 .Height () + 1 ,
870
- TimestampV : postForkTime .Add (proposer .MaxDelay ),
870
+ TimestampV : postForkTime .Add (proposer .MaxVerifyDelay ),
871
871
}
872
872
coreVM .BuildBlockF = func (context.Context ) (snowman.Block , error ) {
873
873
return coreBlk3 , nil
@@ -879,7 +879,7 @@ func TestBatchedParseBlockAtSnomanPlusPlusFork(t *testing.T) {
879
879
// prepare build of next block
880
880
require .NoError (builtBlk3 .Verify (context .Background ()))
881
881
require .NoError (proRemoteVM .SetPreference (context .Background (), builtBlk3 .ID ()))
882
- proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxDelay ))
882
+ proRemoteVM .Set (proRemoteVM .Time ().Add (proposer .MaxBuildDelay ))
883
883
884
884
coreBlk4 := & snowman.TestBlock {
885
885
TestDecidable : choices.TestDecidable {
0 commit comments