diff options
author | Felix Lange <fjl@twurst.com> | 2015-09-23 05:59:26 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-09-23 05:59:26 +0800 |
commit | 90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb (patch) | |
tree | 92a78e7a87dde02deb5a30809f145a2a034cf841 /errs | |
parent | 70b6174748585be2dd4b132203cda8655b76251b (diff) | |
download | go-tangerine-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar go-tangerine-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.gz go-tangerine-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.bz2 go-tangerine-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.lz go-tangerine-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.xz go-tangerine-90cd8ae9f28b7caac93b5c8d555a11e6be90a9eb.tar.zst go-tangerine-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')
0 files changed, 0 insertions, 0 deletions