Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCtxStoreConfig = CtxStoreConfig{ Anchors: []common.Address{}, Rejournal: time.Minute * 10, ValueLimit: big.NewInt(1e18), AccountSlots: 5, GlobalSlots: 4096, AccountQueue: 5, GlobalQueue: 10, }
Functions ¶
This section is empty.
Types ¶
type BlockChain ¶
type CtxStoreConfig ¶
type CtxStoreConfig struct {
ChainId *big.Int
Anchors []common.Address
IsAnchor bool
Rejournal time.Duration // Time interval to regenerate the local transaction journal
ValueLimit *big.Int // Minimum value to enforce for acceptance into the pool
AccountSlots uint64 // Number of executable transaction slots guaranteed per account
GlobalSlots uint64 // Maximum number of executable transaction slots for all accounts
AccountQueue uint64 // Maximum number of non-executable transaction slots permitted per account
GlobalQueue uint64 // Maximum number of non-executable transaction slots for all accounts
}
func (*CtxStoreConfig) Sanitize ¶
func (config *CtxStoreConfig) Sanitize() CtxStoreConfig
type GasPriceOracle ¶
type ProtocolManager ¶
type SimpleChain ¶
type SimpleChain interface {
BlockChain() *core.BlockChain
ChainConfig() *params.ChainConfig
SignHash(hash []byte) ([]byte, error)
GasOracle() *gasprice.Oracle
ProtocolManager() ProtocolManager
RegisterAPIs([]rpc.API)
GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, header *types.Header, vmCfg vm.Config) (*vm.EVM, func() error, error)
BlockByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Block, error)
HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error)
StateAndHeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*state.StateDB, *types.Header, error)
}
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.