aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:58:12 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:58:12 +0800
commit3fcef54f9b81b49f7af2f06a231cd7e44ea851ba (patch)
treea899c48439b40f7d7f07a9ce7f21d26672379bda /rpc/args.go
parent6bd1f6cc49acd459e61559e5af515da2db2481e5 (diff)
downloadgo-tangerine-3fcef54f9b81b49f7af2f06a231cd7e44ea851ba.tar
go-tangerine-3fcef54f9b81b49f7af2f06a231cd7e44ea851ba.tar.gz
go-tangerine-3fcef54f9b81b49f7af2f06a231cd7e44ea851ba.tar.bz2
go-tangerine-3fcef54f9b81b49f7af2f06a231cd7e44ea851ba.tar.lz
go-tangerine-3fcef54f9b81b49f7af2f06a231cd7e44ea851ba.tar.xz
go-tangerine-3fcef54f9b81b49f7af2f06a231cd7e44ea851ba.tar.zst
go-tangerine-3fcef54f9b81b49f7af2f06a231cd7e44ea851ba.zip
tidy
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 65707aa37..806efb9cc 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -29,7 +29,7 @@ func blockHeight(raw interface{}, number *int64) error {
// Parse as string/hexstring
str, ok := raw.(string)
if !ok {
- return NewInvalidTypeError("blockNumber", "not a number or string")
+ return NewInvalidTypeError("", "not a number or string")
}
switch str {
@@ -82,6 +82,17 @@ func numString(raw interface{}, number *int64) error {
// }
// }
+// func hashString(raw interface{}, hash *string) error {
+// argstr, ok := raw.(string)
+// if !ok {
+// return NewInvalidTypeError("", "not a string")
+// }
+// v := common.IsHex(argstr)
+// hash = &argstr
+
+// return nil
+// }
+
type GetBlockByHashArgs struct {
BlockHash string
IncludeTxs bool