plugeth/rpc/api
Felix Lange 90cd8ae9f2 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 cdc2662c40 (#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.
2015-09-22 23:59:26 +02:00
..
admin_args.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
admin_js.go eth, rpc: standardize the chain sync progress counters 2015-09-15 14:45:53 +03:00
admin.go eth, rpc: standardize the chain sync progress counters 2015-09-15 14:45:53 +03:00
api_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
api.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
args_test.go rpc: to in Call no longer required. Fixed eth_estimateGas 2015-07-29 15:12:12 +02:00
args.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
db_args.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
db_js.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
db.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
debug_args.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
debug_js.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
debug.go core, eth, trie, xeth: merged state, chain, extra databases in one 2015-08-07 22:29:02 +02:00
eth_args.go rpc/api: format pendingTx response. Fixes #1648 2015-08-16 11:12:22 +02:00
eth_js.go jsre, rpc/api: pull in new web3 and use hex numbers 2015-09-15 17:05:12 +03:00
eth.go rpc/api: don't crash for unknown blocks 2015-09-22 23:59:26 +02:00
mergedapi.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
miner_args.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
miner_js.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
miner.go miner, rpc: added length check for extra data 2015-08-07 12:24:44 +02:00
net_js.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
net.go support for user agents 2015-08-12 12:22:16 +02:00
parsing.go core: split out TD from database and all internals 2015-09-11 17:42:25 +03:00
personal_args.go rpc/api allow empty password 2015-08-28 12:49:41 +02:00
personal_js.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
personal.go rpc/api allow empty password 2015-08-28 12:49:41 +02:00
shh_args.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
shh_js.go support for user agents 2015-08-12 12:22:16 +02:00
shh.go add missing shh_getMessages to RPC mappings 2015-08-25 14:42:57 -04:00
txpool_js.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
txpool.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
utils.go eth, rpc: standardize the chain sync progress counters 2015-09-15 14:45:53 +03:00
web3_args.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
web3.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00