From 891eb16f79fbc8552ede10d786bf70927f78367a Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 4 Sep 2020 01:27:04 -0400 Subject: make "latest" a synonym to "accepted" --- rpc/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rpc') diff --git a/rpc/types.go b/rpc/types.go index 202dd79..703f4a7 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -84,7 +84,8 @@ func (bn *BlockNumber) UnmarshalJSON(data []byte) error { *bn = EarliestBlockNumber return nil case "latest": - *bn = LatestBlockNumber + //*bn = LatestBlockNumber + *bn = AcceptedBlockNumber return nil case "pending": *bn = PendingBlockNumber -- cgit v1.2.3-70-g09d2