aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 23:55:42 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 23:55:42 +0800
commit1d74086b4240f61d73e8fbf446f6234ab914ddce (patch)
tree9fac3584c0e7e37314c6fbc7a445c19d3075db8c /rpc/api.go
parent9bdf0b655de64c0c31d81da00ff2daec79359d89 (diff)
downloadgo-tangerine-1d74086b4240f61d73e8fbf446f6234ab914ddce.tar.gz
go-tangerine-1d74086b4240f61d73e8fbf446f6234ab914ddce.tar.zst
go-tangerine-1d74086b4240f61d73e8fbf446f6234ab914ddce.zip
New UncleRes type
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 872290eef..b8207ea0d 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -256,9 +256,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
// return NewValidationError("Index", "does not exist")
*reply = nil
} else {
- uhash := br.Uncles[args.Index]
- uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash.String()), true)
- *reply = uncle
+ *reply = br.Uncles[args.Index]
}
case "eth_getUncleByBlockNumberAndIndex":
args := new(BlockNumIndexArgs)
@@ -278,9 +276,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
// return NewValidationError("Index", "does not exist")
*reply = nil
} else {
- uhash := v.Uncles[args.Index]
- uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash.String()), false)
- *reply = uncle
+ *reply = v.Uncles[args.Index]
}
case "eth_getCompilers":
c := []string{""}