package
0.2501.0
Repository: https://github.com/oasisprotocol/oasis-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

NewBlockMetadataTx creates a new block metadata transaction.
NewClient creates a new gRPC consensus client.
NewSubmissionManager creates a new transaction submission manager.
RegisterService registers a new client backend service with the given gRPC server.
SignAndSubmitTx is a helper function that signs and submits a transaction to the consensus backend.
SignAndSubmitTxWithProof is a helper function that signs and submits a transaction to the consensus backend and creates a proof of inclusion.

# Constants

BlockMetadataMaxSize is the maximum size of a fully populated and signed block metadata transaction.
FeatureArchiveNode indicates that the node is an archive node.
FeatureFullNode indicates that the consensus backend is independently fully verifying all consensus-layer blocks.
FeatureServices indicates support for communicating with consensus services.
HeightLatest is the height that represents the most recent block height.
ModuleName is the module name used for error definitions.

# Variables

ErrDuplicateTx is the error returned when the transaction already exists in the mempool.
ErrInvalidArgument is the error returned when the request contains an invalid argument.
ErrNoCommittedBlocks is the error returned when there are no committed blocks and as such no state can be queried.
ErrOversizedTx is the error returned when the given transaction is too big to be processed.
ErrUnsupported is the error returned when the given method is not supported by the consensus backend.
ErrVersionNotFound is the error returned when the given version (height) cannot be found, possibly because it was pruned.
KeyFormat is the namespace for the consensus state key formats.
MethodMeta is the method name for the special block metadata transaction.
StatusStateReady is the ready status state.
StatusStateSyncing is the syncing status state.
SystemMethods is a map of all system methods.

# Structs

Block is a consensus block.
BlockMetadata contains additional metadata related to the executing block.
Client is a gRPC consensus client.
EstimateGasRequest is a EstimateGas request.
Evidence is evidence of a node's Byzantine behavior.
GetSignerNonceRequest is a GetSignerNonce request.
LightBlock is a light consensus block suitable for syncing light clients.
LightClientStatus is the current light client status overview.
NextBlockState has the state of the next block being voted on by validators.
NoOpSubmissionManager implements a submission manager that doesn't support submitting transactions.
P2PStatus is the P2P status of a node.
Parameters are the consensus backend parameters.
Status is the current status overview.
TransactionsWithProofs is GetTransactionsWithProofs response.
TransactionsWithResults is GetTransactionsWithResults response.
Vote contains metadata about a vote for the next block.
Votes are the votes for the next block.

# Interfaces

Backend is an interface that a consensus backend must provide.
ClientBackend is a consensus interface used by clients that connect to the local full node.
LightClient is a consensus light client interface.
LightProvider is a consensus light provider interface.
LightService is a consensus light client service.
PriceDiscovery is the consensus fee price discovery interface.
ServicesBackend is an interface for consensus backends which indicate support for communicating with consensus services.
StatePruneHandler is a handler that is called when heights are pruned from history.
StatePruner is a state pruner implementation.
SubmissionManager is a transaction submission manager interface.
TransactionAuthHandler is the interface for handling transaction authentication (checking nonces and fees).

# Type aliases

FeatureMask is the consensus backend feature bitmask.
HaltHook is a function that gets called when consensus needs to halt for some reason.
StatusState is the concise status state of the consensus backend.