From d5352037ab5a678a1caab3774db2054ad902e4f2 Mon Sep 17 00:00:00 2001 From: benjamin202410 Date: Tue, 29 Oct 2024 01:36:22 -0700 Subject: [PATCH] cherry pick epoch api from dev-upgrade (#699) * cherry-pick-epoch-api --- consensus/tests/engine_v2_tests/api_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/tests/engine_v2_tests/api_test.go b/consensus/tests/engine_v2_tests/api_test.go index 6cde66f7fb8a..2a418c53060e 100644 --- a/consensus/tests/engine_v2_tests/api_test.go +++ b/consensus/tests/engine_v2_tests/api_test.go @@ -217,7 +217,7 @@ func TestGetBlockByEpochNumber(t *testing.T) { info, err = engine.APIs(blockchain)[0].Service.(*XDPoS.API).GetBlockInfoByEpochNum(3) assert.Equal(t, info.EpochFirstBlockNumber.Int64(), int64(1803)) - assert.Equal(t, info.EpochLastBlockNumber.Int64(), int64(1803)) + assert.Nil(t, info.EpochLastBlockNumber) assert.Equal(t, info.EpochRound, types.Round(largeRound)) assert.Nil(t, err)