aboutsummaryrefslogtreecommitdiffstats
path: root/errs/errors_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-09-23 05:59:26 +0800
committerFelix Lange <fjl@twurst.com>2015-09-23 05:59:26 +0800
commit90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb (patch)
tree92a78e7a87dde02deb5a30809f145a2a034cf841 /errs/errors_test.go
parent70b6174748585be2dd4b132203cda8655b76251b (diff)
downloaddexon-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar
dexon-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.gz
dexon-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.bz2
dexon-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.lz
dexon-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.xz
dexon-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.zst
dexon-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.zip
rpc/api: don't crash for unknown blocks
Most eth RPC calls that work with blocks crashed when the block was not found because they called Hash on a nil block. This is a regression introduced in cdc2662c409 (#1779). While here, remove the insane conversions in get*CountBy*. There is no need to construct a complete BlockRes and converting int->int64->*big.Int->[]byte->hexnum->string to format the length of a slice as hex.
Diffstat (limited to 'errs/errors_test.go')
0 files changed, 0 insertions, 0 deletions