Documentation
¶
Index ¶
- func HashValue(val []byte) mpf.Hash
- type BadgerLogger
- type Storage
- func (s *Storage) AddUtxo(address string, txId string, txOutIdx uint32, txOutBytes []byte, slot uint64) error
- func (s *Storage) GetBlockData(dest any) error
- func (s *Storage) GetCursor() (uint64, string, error)
- func (s *Storage) GetScriptRefUtxo(txId string, outputIdx int) ([]byte, error)
- func (s *Storage) GetUtxos(address string) ([][]byte, error)
- func (s *Storage) Load() error
- func (s *Storage) PurgeDeletedUtxos(beforeSlot uint64) error
- func (s *Storage) RemoveUtxo(address string, txId string, utxoIdx uint32, slot uint64) error
- func (s *Storage) Rollback(slot uint64) error
- func (s *Storage) Trie() *Trie
- func (s *Storage) UpdateBlockData(blockData any) error
- func (s *Storage) UpdateCursor(slotNumber uint64, blockHash string) error
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BadgerLogger ¶
type BadgerLogger struct{}
BadgerLogger is a wrapper type to give our logger the expected interface
func NewBadgerLogger ¶
func NewBadgerLogger() *BadgerLogger
func (*BadgerLogger) Debugf ¶ added in v0.10.0
func (b *BadgerLogger) Debugf(msg string, args ...any)
func (*BadgerLogger) Errorf ¶ added in v0.10.0
func (b *BadgerLogger) Errorf(msg string, args ...any)
func (*BadgerLogger) Infof ¶ added in v0.10.0
func (b *BadgerLogger) Infof(msg string, args ...any)
func (*BadgerLogger) Warningf ¶
func (b *BadgerLogger) Warningf(msg string, args ...any)
type Storage ¶
func GetStorage ¶
func GetStorage() *Storage
func (*Storage) GetBlockData ¶
func (*Storage) GetScriptRefUtxo ¶ added in v0.12.0
func (*Storage) PurgeDeletedUtxos ¶ added in v0.8.0
func (*Storage) RemoveUtxo ¶
func (*Storage) UpdateBlockData ¶
Click to show internal directories.
Click to hide internal directories.