Return empty list instead of error in getPooledTxs handler (#2547)
This commit is contained in:
parent
6bae929439
commit
3cef119b78
|
@ -345,7 +345,8 @@ method getPooledTxs*(ctx: EthWireRef,
|
||||||
trace "handlers.getPooledTxs: tx not found", txHash
|
trace "handlers.getPooledTxs: tx not found", txHash
|
||||||
ok(list)
|
ok(list)
|
||||||
else:
|
else:
|
||||||
err("txpool disabled")
|
var list: seq[PooledTransaction]
|
||||||
|
ok(list)
|
||||||
|
|
||||||
method getBlockBodies*(ctx: EthWireRef,
|
method getBlockBodies*(ctx: EthWireRef,
|
||||||
hashes: openArray[Hash256]):
|
hashes: openArray[Hash256]):
|
||||||
|
@ -438,7 +439,7 @@ method handleAnnouncedTxs*(ctx: EthWireRef,
|
||||||
except CatchableError as exc:
|
except CatchableError as exc:
|
||||||
return err(exc.msg)
|
return err(exc.msg)
|
||||||
else:
|
else:
|
||||||
err("txpool disabled")
|
ok()
|
||||||
|
|
||||||
method handleAnnouncedTxsHashes*(
|
method handleAnnouncedTxsHashes*(
|
||||||
ctx: EthWireRef;
|
ctx: EthWireRef;
|
||||||
|
|
Loading…
Reference in New Issue