aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-05-15 04:50:39 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-05-15 04:50:39 +0800
commit44a7f997c3c2743634e3fe9db2ead1b8b6a02778 (patch)
tree1fa15103a90888c93eae792ec8c94043ce9619a8 /rpc
parent5c6540452ac49db3defdfa1e141b4acf8eaaaad7 (diff)
downloaddexon-44a7f997c3c2743634e3fe9db2ead1b8b6a02778.tar
dexon-44a7f997c3c2743634e3fe9db2ead1b8b6a02778.tar.gz
dexon-44a7f997c3c2743634e3fe9db2ead1b8b6a02778.tar.bz2
dexon-44a7f997c3c2743634e3fe9db2ead1b8b6a02778.tar.lz
dexon-44a7f997c3c2743634e3fe9db2ead1b8b6a02778.tar.xz
dexon-44a7f997c3c2743634e3fe9db2ead1b8b6a02778.tar.zst
dexon-44a7f997c3c2743634e3fe9db2ead1b8b6a02778.zip
Unreverse ordering
Diffstat (limited to 'rpc')
-rw-r--r--rpc/http.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpc/http.go b/rpc/http.go
index 9220c730c..9b3fa5142 100644
--- a/rpc/http.go
+++ b/rpc/http.go
@@ -111,10 +111,9 @@ func JSONRPC(pipe *xeth.XEth) http.Handler {
// make response omitting nil entries
respBatchComp := make([]*interface{}, resCount)
- resCount = resCount - 1
for _, v := range resBatch {
if v != nil {
- respBatchComp[resCount] = v
+ respBatchComp[len(respBatchComp)-resCount] = v
resCount = resCount - 1
}
}