package tezos-client-009-PsFLoren

  1. Overview
  2. Docs

When about to do a RPC request, how to modify the request; to possibly request a parent tree of the key, to batch successive requests into one.

For example when requesting baking_rights, there's the following sequence of requests (for carthage):

v1;constants v1;first_level

To speed things up, this function returns "v1" on any of these keys, to do a single request instead of two. This list is arbitrary. It was built by initial input from @klakplok and by experimenting.

This function guarantees that if it returns Some(prefix, suffix) then prefix @@ suffix = key.

OCaml

Innovation. Community. Security.