Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultGRPCPort int = 9632
View Source
const DefaultJSONRPCPort int = 8545
Variables ¶
This section is empty.
Functions ¶
func ConsensusSupported ¶
Types ¶
type Config ¶
type Config struct { Chain *chain.Chain JSONRPC *JSONRPC GRPCAddr *net.TCPAddr LibP2PAddr *net.TCPAddr PriceLimit uint64 MaxAccountEnqueued uint64 MaxSlots uint64 Telemetry *Telemetry Network *network.Config DataDir string RestoreFile *string Seal bool SecretsManager *secrets.SecretsManagerConfig LogLevel hclog.Level JSONLogFormat bool LogFilePath string Relayer bool NumBlockConfirmations uint64 }
Config is used to parametrize the minimal client
type ConsensusType ¶
type ConsensusType string
const ( DevConsensus ConsensusType = "dev" IBFTConsensus ConsensusType = "ibft" //PolyBFTConsensus ConsensusType = consensusPolyBFT.ConsensusName DummyConsensus ConsensusType = "dummy" )
type ForkManagerFactory ¶
type ForkManagerInitialParamsFactory ¶
type ForkManagerInitialParamsFactory func(config *chain.Chain) (*forkmanager.ForkParams, error)
type GenesisFactoryHook ¶
type JSONRPC ¶
type JSONRPC struct { JSONRPCAddr *net.TCPAddr AccessControlAllowOrigin []string BatchLengthLimit uint64 BlockRangeLimit uint64 ConcurrentRequestsDebug uint64 }
JSONRPC holds the config details for the JSON-RPC server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the central manager of the blockchain client
Source Files ¶
Click to show internal directories.
Click to hide internal directories.