Documentation ¶
Index ¶
Constants ¶
View Source
const ( ShardData = "coin-processed-" BeaconData = "beacon-processed" )
Variables ¶
View Source
var Localnode interface { OnReceive(msgType int, f func(msg interface{})) GetUserDatabase() *leveldb.DB GetBlockchain() *blockchain.BlockChain OnNewBlockFromParticularHeight(chainID int, blkHeight int64, isFinalized bool, f func(bc *blockchain.BlockChain, h common.Hash, height uint64, chainID int)) GetShardState(shardID int) (uint64, *common.Hash) SyncSpecificShardBlockBytes(shardID int, height uint64, blockHash string) ([]byte, error) }
View Source
var TransactionStateDB map[byte]*statedb.StateDB
var ShardProcessedState map[byte]uint64
Functions ¶
func InitChainSynker ¶
func OnNewShardBlock ¶
func OnNewShardBlock(bc *blockchain.BlockChain, h common.Hash, height uint64, chainID int)
func ResetMongoAndReSync ¶
func ResetMongoAndReSync() error
Types ¶
type ChainSyncState ¶ added in v1.8.0
type IncPdexState ¶ added in v1.8.0
type IncPdexState struct { StakingPools map[string]*pdex.StakingPoolState PoolPairs map[string]*pdex.PoolPairState Param *statedb.Pdexv3Params }
Click to show internal directories.
Click to hide internal directories.