aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/util.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-18 04:30:29 +0800
committerobscuren <geffobscura@gmail.com>2015-03-18 04:30:29 +0800
commit048d4ec5be5352dcb06f5123e3458b99aa151e6b (patch)
tree712f8823391286438a0e5c3d1f53c4682254650e /rpc/util.go
parent53104b09fa823cb5457960b8518b9650a5b083da (diff)
parent917050dc30d8717d7e0bba1257165c1aec44887f (diff)
downloaddexon-048d4ec5be5352dcb06f5123e3458b99aa151e6b.tar
dexon-048d4ec5be5352dcb06f5123e3458b99aa151e6b.tar.gz
dexon-048d4ec5be5352dcb06f5123e3458b99aa151e6b.tar.bz2
dexon-048d4ec5be5352dcb06f5123e3458b99aa151e6b.tar.lz
dexon-048d4ec5be5352dcb06f5123e3458b99aa151e6b.tar.xz
dexon-048d4ec5be5352dcb06f5123e3458b99aa151e6b.tar.zst
dexon-048d4ec5be5352dcb06f5123e3458b99aa151e6b.zip
Merge branch 'rpcfrontier' into develop
Diffstat (limited to 'rpc/util.go')
-rw-r--r--rpc/util.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpc/util.go b/rpc/util.go
index 08f404c99..e5610dc2c 100644
--- a/rpc/util.go
+++ b/rpc/util.go
@@ -45,6 +45,11 @@ func UnmarshalRawMessages(b []byte, iface interface{}, number *int64) (err error
return NewDecodeParamError(err.Error())
}
+ // Hrm... Occurs when no params
+ if len(data) == 0 {
+ return NewDecodeParamError("No data")
+ }
+
// Number index determines the index in the array for a possible block number
numberIndex := 0