Documentation ¶
Index ¶
- Variables
- func BlockIngestor(rpcClient *rpcclient.Client, cache *BlockCache, log *logrus.Entry, ...)
- func GetBlock(rpcClient *rpcclient.Client, cache *BlockCache, height int) (*walletrpc.CompactBlock, error)
- func GetBlockRange(rpcClient *rpcclient.Client, cache *BlockCache, ...)
- func GetCoinsupply(rpcClient *rpcclient.Client) (string, string, int, int, int, int, error)
- func GetSaplingInfo(rpcClient *rpcclient.Client) (int, int, string, string, int, int, int, error)
- type BlockCache
- type BlockCacheEntry
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "v0.1-alpha" BuildUser = "jahway603" )
Functions ¶
func BlockIngestor ¶
func GetBlock ¶
func GetBlock(rpcClient *rpcclient.Client, cache *BlockCache, height int) (*walletrpc.CompactBlock, error)
func GetBlockRange ¶
func GetBlockRange(rpcClient *rpcclient.Client, cache *BlockCache, blockOut chan<- walletrpc.CompactBlock, errOut chan<- error, start, end int)
func GetCoinsupply ¶
Types ¶
type BlockCache ¶
type BlockCache struct { MaxEntries int FirstBlock int LastBlock int // contains filtered or unexported fields }
func NewBlockCache ¶
func NewBlockCache(maxEntries int) *BlockCache
func (*BlockCache) Add ¶
func (c *BlockCache) Add(height int, block *walletrpc.CompactBlock) (error, bool)
func (*BlockCache) Get ¶
func (c *BlockCache) Get(height int) *walletrpc.CompactBlock
func (*BlockCache) GetLatestBlock ¶
func (c *BlockCache) GetLatestBlock() int
type BlockCacheEntry ¶
type BlockCacheEntry struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.