mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-25 14:00:17 +00:00
remove unused getBlock function (#4931)
This commit is contained in:
parent
be3f5b1eac
commit
a35c2c15b0
@ -731,13 +731,6 @@ proc getBlockByNumber*(rpcClient: RpcClient,
|
|||||||
|
|
||||||
rpcClient.eth_getBlockByNumber(hexNumber, false)
|
rpcClient.eth_getBlockByNumber(hexNumber, false)
|
||||||
|
|
||||||
proc getBlock(rpcClient: RpcClient, id: BlockHashOrNumber): Future[BlockObject] =
|
|
||||||
if id.isHash:
|
|
||||||
let hash = id.hash.asBlockHash()
|
|
||||||
return rpcClient.getBlockByHash(hash)
|
|
||||||
else:
|
|
||||||
return rpcClient.getBlockByNumber(id.number)
|
|
||||||
|
|
||||||
func areSameAs(expectedParams: Option[NextExpectedPayloadParams],
|
func areSameAs(expectedParams: Option[NextExpectedPayloadParams],
|
||||||
latestHead, latestSafe, latestFinalized: Eth2Digest,
|
latestHead, latestSafe, latestFinalized: Eth2Digest,
|
||||||
timestamp: uint64,
|
timestamp: uint64,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user