Module sc_client_api::utils
source · Expand description
Utility methods for the client.
Functions
- Returns a function for checking block ancestry, the returned function will return
true
if the given hash (second parameter) is a descendent of the base (first parameter). If thecurrent
parameter is defined, it should represent the current blockhash
and itsparent hash
, if given the function that’s returned will assume thathash
isn’t part of the local DB yet, and all searches in the DB will instead reference the parent.