Documentation ¶
Index ¶
- type Cache
- func (c *Cache) AddBlock(blk *block.Block)
- func (c *Cache) AddCertificate(cert *certificate.Certificate)
- func (c *Cache) Clear()
- func (c *Cache) GetBlock(height uint32) *block.Block
- func (c *Cache) GetCertificate(height uint32) *certificate.Certificate
- func (c *Cache) HasBlockInCache(height uint32) bool
- func (c *Cache) Len() int
- func (c *Cache) RemoveBlock(height uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) AddCertificate ¶
func (c *Cache) AddCertificate(cert *certificate.Certificate)
func (*Cache) GetCertificate ¶
func (c *Cache) GetCertificate(height uint32) *certificate.Certificate
func (*Cache) HasBlockInCache ¶
func (*Cache) RemoveBlock ¶ added in v0.17.0
RemoveBlock removes the block and certificates at the specified height from the cache.
Click to show internal directories.
Click to hide internal directories.