Documentation ¶
Index ¶
Constants ¶
View Source
const ( BalanceMonitorSubSize = 1024 ConfigMonitorSubSize = 16 BlkStreamDelim = '`' BlkSizePerRequest = 100 EthApiTryTimeInterval = time.Second * 15 )
View Source
const ( DefaultDataBaseDir = "chain_data" ChainDataStreamDelim byte = '@' ThNameConsensus = "consensus of ninja chain" ThNameBalanceListen = "balance listener of ninja chain" ThNameConfigListen = "config listener of ninja chain" ThNameAccountStore = "storage of account manager" THNameBlockAdmin = "block miner thread" )
Variables ¶
This section is empty.
Functions ¶
func BalanceEthKey ¶
func BalanceEthKey() *ecdsa.PrivateKey
func InitConfig ¶
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) CheckLocalBlocks ¶
func (*Chain) ProcChainDataRequestFromP2pNetwork ¶
func (*Chain) ProcMinedNewBlockByPrime ¶
func (c *Chain) ProcMinedNewBlockByPrime(blk *pbs.BlockMined) error
Click to show internal directories.
Click to hide internal directories.