MCPcopy Create free account
hub / github.com/CPChain/chain / API

Struct API

consensus/dpor/api.go:12–16  ·  view source on GitHub ↗

API is a user facing RPC API to allow controlling the signer and voting mechanisms of the proof-of-authority scheme.

Source from the content-addressed store, hash-verified

10// API is a user facing RPC API to allow controlling the signer and voting
11// mechanisms of the proof-of-authority scheme.
12type API struct {
13 chain consensus.ChainReader
14 dpor *Dpor
15 dh *defaultDporHelper
16}
17
18// GetSnapshot retrieves the state Snapshot at a given block.
19func (api *API) GetSnapshot(number rpc.BlockNumber) (*DporSnapshot, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected