Expand description
These are internal helper functions used by the actual RPC handlers.
Many of the handlers have bodies with only small differences, the identical code is extracted and reused here in these functions.
These build on-top of crate::rpc::service
functions.
Functions§
- access_
response_ base - TODO: impl bootstrap
- block_
header 🔒 - Map some data into a
BlockHeader
. - block_
header_ 🔒by_ hash - Same as
block_header
but with the block’s hash. - check_
height 🔒 - Check if
height
is greater than thetop_height
. - hex_
to_ 🔒hash - Parse a hexadecimal
String
as a 32-byte hash. - response_
base - TODO: impl bootstrap
- top_
height 🔒 cuprate_types::blockchain::BlockchainResponse::ChainHeight
minus 1.