aboutsummaryrefslogtreecommitdiff
path: root/rpc
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-04 01:27:04 -0400
committerDeterminant <[email protected]>2020-09-04 01:27:04 -0400
commit891eb16f79fbc8552ede10d786bf70927f78367a (patch)
tree91d58b18ebf818cf0230d011a71f947f0d64704b /rpc
parent5f9c76b5f4eb5bb08b8d3e3125b223f3737631d3 (diff)
make "latest" a synonym to "accepted"v0.2.14-rc.1
Diffstat (limited to 'rpc')
-rw-r--r--rpc/types.go3
1 files changed, 2 insertions, 1 deletions
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