aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/util.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-18 04:40:05 +0800
committerobscuren <geffobscura@gmail.com>2015-03-18 04:40:05 +0800
commit142e81258cd7b77226d706c84f93da417aaaf426 (patch)
tree3b84c4139d100252512db487c33e2be57191e5d3 /rpc/util.go
parent86661de07746cd4e4ad8d016afee9fa8074aa141 (diff)
parent048d4ec5be5352dcb06f5123e3458b99aa151e6b (diff)
downloaddexon-142e81258cd7b77226d706c84f93da417aaaf426.tar
dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.gz
dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.bz2
dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.lz
dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.xz
dexon-142e81258cd7b77226d706c84f93da417aaaf426.tar.zst
dexon-142e81258cd7b77226d706c84f93da417aaaf426.zip
Merge branch 'develop' into conversion
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