Documentation
¶
Index ¶
- type Chain
- func (c *Chain) AddBlock(block *block.Block) bool
- func (c *Chain) AddChain(hashPath [][]byte, forkState *generated.ForkState) bool
- func (c *Chain) GetAddressState(address []byte) (*addressstate.AddressState, error)
- func (c *Chain) GetBlock(headerhash []byte) (*block.Block, error)
- func (c *Chain) GetBlockByNumber(blockNumber uint64) (*block.Block, error)
- func (c *Chain) GetBlockMetaData(headerhash []byte) (*metadata.BlockMetaData, error)
- func (c *Chain) GetBlockSizeLimit(b *block.Block) (int, error)
- func (c *Chain) GetForkPoint(block *block.Block) ([]byte, [][]byte, error)
- func (c *Chain) GetHeaderHashes(blockNumber uint64, count uint64) (*generated.NodeHeaderHash, error)
- func (c *Chain) GetLastBlock() *block.Block
- func (c *Chain) GetMeasurement(blockTimestamp uint32, parentHeaderHash []byte, ...) (uint64, error)
- func (c *Chain) GetTransactionByHash(txHash []byte) (*generated.Transaction, error)
- func (c *Chain) GetTransactionMetaDataByHash(txHash []byte) (*generated.TransactionMetadata, error)
- func (c *Chain) GetTransactionPool() *pool.TransactionPool
- func (c *Chain) GetTxPool() *pool.TransactionPool
- func (c *Chain) Height() uint64
- func (c *Chain) Load(genesisBlock *block.Block) error
- func (c *Chain) RemoveBlockFromMainchain(block *block.Block, blockNumber uint64, batch *leveldb.Batch)
- func (c *Chain) Rollback(forkedHeaderHash []byte, forkState *generated.ForkState) [][]byte
- func (c *Chain) SetDifficultyTracker(dt pow.DifficultyTrackerInterface)
- func (c *Chain) SetNewBlockNotificationChannel(newBlockNotificationChannel chan []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func CreateChain ¶
func (*Chain) GetAddressState ¶
func (c *Chain) GetAddressState(address []byte) (*addressstate.AddressState, error)
func (*Chain) GetBlockByNumber ¶
func (*Chain) GetBlockMetaData ¶
func (c *Chain) GetBlockMetaData(headerhash []byte) (*metadata.BlockMetaData, error)
func (*Chain) GetForkPoint ¶
func (*Chain) GetHeaderHashes ¶
func (*Chain) GetLastBlock ¶
func (*Chain) GetMeasurement ¶
func (*Chain) GetTransactionByHash ¶
func (c *Chain) GetTransactionByHash(txHash []byte) (*generated.Transaction, error)
func (*Chain) GetTransactionMetaDataByHash ¶
func (c *Chain) GetTransactionMetaDataByHash(txHash []byte) (*generated.TransactionMetadata, error)
func (*Chain) GetTransactionPool ¶
func (c *Chain) GetTransactionPool() *pool.TransactionPool
func (*Chain) GetTxPool ¶
func (c *Chain) GetTxPool() *pool.TransactionPool
func (*Chain) RemoveBlockFromMainchain ¶
func (*Chain) SetDifficultyTracker ¶
func (c *Chain) SetDifficultyTracker(dt pow.DifficultyTrackerInterface)
func (*Chain) SetNewBlockNotificationChannel ¶
Click to show internal directories.
Click to hide internal directories.