From 44a7f997c3c2743634e3fe9db2ead1b8b6a02778 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Thu, 14 May 2015 15:50:39 -0500 Subject: Unreverse ordering --- rpc/http.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rpc') 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 } } -- cgit v1.2.3