From 951ca28d0805af7dbb4b0421b2278a9729c921d5 Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Mon, 25 Mar 2019 12:47:22 +0530 Subject: [PATCH] fixed params/config.go --- params/config.go | 4 ++++ rpc/types.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/params/config.go b/params/config.go index 46def975c3..12f4336f6b 100644 --- a/params/config.go +++ b/params/config.go @@ -221,6 +221,10 @@ func (c *ChainConfig) IsTIPSigning(num *big.Int) bool { return isForked(common.TIPSigning, num) } +func (c *ChainConfig) IsTIPRandomize(num *big.Int) bool { + return isForked(common.TIPRandomize, num) +} + // GasTable returns the gas table corresponding to the current phase (homestead or homestead reprice). // // The returned GasTable's fields shouldn't, under any circumstances, be changed. diff --git a/rpc/types.go b/rpc/types.go index c456f45d89..25d5a1ca0b 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -123,7 +123,7 @@ const ( PendingBlockNumber = BlockNumber(-2) LatestBlockNumber = BlockNumber(-1) EarliestBlockNumber = BlockNumber(0) - LatestEpochNumber = EpochNumber(-1) + LatestEpochNumber = EpochNumber(-1) ) // UnmarshalJSON parses the given JSON fragment into a BlockNumber. It supports: