remove unused getBlock function (#4931)

This commit is contained in:
tersec 2023-05-11 08:23:09 +00:00 committed by GitHub
parent be3f5b1eac
commit a35c2c15b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -731,13 +731,6 @@ proc getBlockByNumber*(rpcClient: RpcClient,
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],
latestHead, latestSafe, latestFinalized: Eth2Digest,
timestamp: uint64,