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