Skip to content

Commit

Permalink
cherry pick epoch api from dev-upgrade (#699)
Browse files Browse the repository at this point in the history
* cherry-pick-epoch-api
  • Loading branch information
benjamin202410 authored and wanwiset25 committed Nov 13, 2024
1 parent 4e2cd84 commit d535203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/tests/engine_v2_tests/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d535203

Please sign in to comment.