Documentation
¶
Index ¶
- type Cache
- func (c *Cache) BlockByHash(hash common.Hash) *types.Block
- func (c *Cache) BlockByNumber(n *big.Int) *types.Block
- func (c *Cache) BlockTrieHashByIndex(n uint32) *trie.Hash
- func (c *Cache) CacheBlock(trieRoot trie.Hash, ...)
- func (c *Cache) TxByBlockHashAndIndex(hash common.Hash, index uint64) (tx *types.Transaction, blockNumber uint64)
- func (c *Cache) TxByBlockNumberAndIndex(blockNumber *big.Int, index uint64) (tx *types.Transaction, blockHash common.Hash)
- func (c *Cache) TxByHash(hash common.Hash) (*types.Transaction, *types.Block, uint64)
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) CacheBlock ¶
func (*Cache) TxByBlockHashAndIndex ¶
func (*Cache) TxByBlockNumberAndIndex ¶
Click to show internal directories.
Click to hide internal directories.