Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶ added in v0.1.1
type Params struct {
// Name defines a human-readable identifier for the network.
Name string
// Magic defines the magic number of the peer-to-peer network.
Magic uint32
// DefaultPort defines the default peer-to-peer port for the network.
DefaultPort uint16
// DNSSeeds defines a list of DNS seeds for the network to discover peers.
DNSSeeds []string
// The interface/port to listen for connections
// (default all interfaces port: 20608, testnet: 21608)
ListenAddrs []string
// Foundation defines the foundation address which receiving mining
// rewards.
Foundation common.Uint168
// ElaAssetId
ElaAssetId common.Uint256
// GenesisBlock defines the first block of the chain.
GenesisBlock *types.Block
// PowLimit defines the highest allowed proof of work value for a block
// as a uint256.
PowLimit *big.Int
// PowLimitBits defines the highest allowed proof of work value for a
// block in compact form.
PowLimitBits uint32
// TargetTimespan is the desired amount of time that should elapse
// before the block difficulty requirement is examined to determine how
// it should be changed in order to maintain the desired block
// generation rate.
TargetTimespan time.Duration
// TargetTimePerBlock is the desired amount of time to generate each
// block.
TargetTimePerBlock time.Duration
// AdjustmentFactor is the adjustment factor used to limit the minimum
// and maximum amount of adjustment that can occur between difficulty
// retargets.
AdjustmentFactor int64
// CoinbaseMaturity is the number of blocks required before newly mined
// coins (coinbase transactions) can be spent.
CoinbaseMaturity uint32
// Disable transaction filter supports, include bloom filter tx type filter
// etc.
DisableTxFilters bool
// MinTransactionFee defines the minimum fee of a transaction.
MinTransactionFee int64
// ExchangeRate defines the exchange rate when transfer ELA from main chain to
// this side chain.
ExchangeRate float64
// MinCrossChainTxFee defines the minimum transaction fee of a cross chain
// transaction.
MinCrossChainTxFee int64
// CheckPowHeaderHeight defines the height where stating check if pow is coming
// from main chain.
CheckPowHeaderHeight uint32
// CRClaimDPOSNodeStartHeight defines the height where starting claim DPOS node.
CRClaimDPOSNodeStartHeight uint32
// NewP2PProtocolVersionHeight defines the new p2p protocol version message height.
NewP2PProtocolVersionHeight uint64
// RewardMinerOnlyStartHeight defines the height where starting reward miner only
// in coin base transaction.
RewardMinerOnlyStartHeight uint32
// RPCServiceLevel defines level of service provide to client.
RPCServiceLevel string
}
type RPCServiceLevel ¶ added in v0.2.0
type RPCServiceLevel byte
const ( // Allowed query transaction, and configuration related options. ConfigurationPermitted RPCServiceLevel = iota // Allowed mining from RPC. MiningPermitted // Allowed query and transaction (such as sendrawtransaction) related options. TransactionPermitted // Allowed using wallet related function. WalletPermitted // Allowed only query related options. QueryOnly )
func (RPCServiceLevel) String ¶ added in v0.2.0
func (l RPCServiceLevel) String() string
Click to show internal directories.
Click to hide internal directories.