aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-23 23:36:12 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-23 23:36:12 +0800
commit5707912e2f7d49b3654d616ddae3439e6dc201c4 (patch)
tree6d26bcdf317bfe8780511ea06f2a15027e6146e9 /rpc/args.go
parent2f8601ef382aeff6cdb31fe163cfac3b26bf56de (diff)
downloaddexon-5707912e2f7d49b3654d616ddae3439e6dc201c4.tar
dexon-5707912e2f7d49b3654d616ddae3439e6dc201c4.tar.gz
dexon-5707912e2f7d49b3654d616ddae3439e6dc201c4.tar.bz2
dexon-5707912e2f7d49b3654d616ddae3439e6dc201c4.tar.lz
dexon-5707912e2f7d49b3654d616ddae3439e6dc201c4.tar.xz
dexon-5707912e2f7d49b3654d616ddae3439e6dc201c4.tar.zst
dexon-5707912e2f7d49b3654d616ddae3439e6dc201c4.zip
"pending" convention should be -2 instead of 0
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 4b59f83b7..6e02b65ef 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -26,7 +26,7 @@ func blockHeight(raw interface{}, number *int64) (err error) {
case "latest":
*number = -1
case "pending":
- *number = 0
+ *number = -2
default:
*number = common.String2Big(str).Int64()
}