Documentation ¶
Index ¶
- Constants
- type Cache
- func (c *Cache) Close()
- func (c *Cache) ExistsByMainId(id types.Hash) (result bool)
- func (c *Cache) LoadByMainChainHeight(height uint64) (result sidechain.UniquePoolBlockSlice)
- func (c *Cache) LoadByMainId(id types.Hash) *sidechain.PoolBlock
- func (c *Cache) LoadBySideChainHeight(height uint64) (result sidechain.UniquePoolBlockSlice)
- func (c *Cache) LoadByTemplateId(id types.Hash) (result sidechain.UniquePoolBlockSlice)
- func (c *Cache) ProcessBlock(b *sidechain.PoolBlock) error
- func (c *Cache) RemoveByMainId(id types.Hash)
- func (c *Cache) RemoveByTemplateId(id types.Hash)
- func (c *Cache) ScanHeights(startHeight, endHeight uint64) chan sidechain.UniquePoolBlockSlice
- func (c *Cache) Store(block *sidechain.PoolBlock)
Constants ¶
View Source
const ( FlagStorePruned = 1 << iota FlagStoreCompact FlagStoreMetadata )
View Source
const EpochSize = 32
EpochSize Maximum amount of blocks without a full one
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) LoadByMainChainHeight ¶
func (c *Cache) LoadByMainChainHeight(height uint64) (result sidechain.UniquePoolBlockSlice)
func (*Cache) LoadBySideChainHeight ¶
func (c *Cache) LoadBySideChainHeight(height uint64) (result sidechain.UniquePoolBlockSlice)
func (*Cache) LoadByTemplateId ¶
func (c *Cache) LoadByTemplateId(id types.Hash) (result sidechain.UniquePoolBlockSlice)
func (*Cache) RemoveByMainId ¶
func (*Cache) RemoveByTemplateId ¶
func (*Cache) ScanHeights ¶
func (c *Cache) ScanHeights(startHeight, endHeight uint64) chan sidechain.UniquePoolBlockSlice
Click to show internal directories.
Click to hide internal directories.