Versions in this module Expand all Collapse all v0 v0.0.8 Apr 4, 2019 Changes in this version + func Create(ns walletdb.ReadWriteBucket) error + func DisableLog() + func IsNoExists(err error) bool + func UseLogger(logger btclog.Logger) + type Block struct + Hash chainhash.Hash + Height int32 + type BlockMeta struct + Time time.Time + type Credit struct + Amount acmutil.Amount + FromCoinBase bool + PkScript []byte + Received time.Time + type CreditRecord struct + Amount acmutil.Amount + Change bool + Index uint32 + Spent bool + type DebitRecord struct + Amount acmutil.Amount + Index uint32 + type Error struct + Code ErrorCode + Desc string + Err error + func (e Error) Error() string + type ErrorCode uint8 + const ErrAlreadyExists + const ErrData + const ErrDatabase + const ErrInput + const ErrNeedsUpgrade + const ErrNoExists + const ErrUnknownVersion + func (e ErrorCode) String() string + type MigrationManager struct + func NewMigrationManager(ns walletdb.ReadWriteBucket) *MigrationManager + func (m *MigrationManager) CurrentVersion(ns walletdb.ReadBucket) (uint32, error) + func (m *MigrationManager) Name() string + func (m *MigrationManager) Namespace() walletdb.ReadWriteBucket + func (m *MigrationManager) SetVersion(ns walletdb.ReadWriteBucket, version uint32) error + func (m *MigrationManager) Versions() []migration.Version + type Store struct + NotifyUnspent func(hash *chainhash.Hash, index uint32) + func Open(ns walletdb.ReadBucket, chainParams *chaincfg.Params) (*Store, error) + func (s *Store) AddCredit(ns walletdb.ReadWriteBucket, rec *TxRecord, block *BlockMeta, index uint32, ...) error + func (s *Store) Balance(ns walletdb.ReadBucket, minConf int32, syncHeight int32) (acmutil.Amount, error) + func (s *Store) InsertTx(ns walletdb.ReadWriteBucket, rec *TxRecord, block *BlockMeta) error + func (s *Store) PreviousPkScripts(ns walletdb.ReadBucket, rec *TxRecord, block *Block) ([][]byte, error) + func (s *Store) RangeTransactions(ns walletdb.ReadBucket, begin, end int32, f func([]TxDetails) (bool, error)) error + func (s *Store) RemoveUnminedTx(ns walletdb.ReadWriteBucket, rec *TxRecord) error + func (s *Store) Rollback(ns walletdb.ReadWriteBucket, height int32) error + func (s *Store) TxDetails(ns walletdb.ReadBucket, txHash *chainhash.Hash) (*TxDetails, error) + func (s *Store) UniqueTxDetails(ns walletdb.ReadBucket, txHash *chainhash.Hash, block *Block) (*TxDetails, error) + func (s *Store) UnminedTxHashes(ns walletdb.ReadBucket) ([]*chainhash.Hash, error) + func (s *Store) UnminedTxs(ns walletdb.ReadBucket) ([]*wire.MsgTx, error) + func (s *Store) UnspentOutputs(ns walletdb.ReadBucket) ([]Credit, error) + type TxDetails struct + Block BlockMeta + Credits []CreditRecord + Debits []DebitRecord + type TxRecord struct + Hash chainhash.Hash + MsgTx wire.MsgTx + Received time.Time + SerializedTx []byte + func NewTxRecord(serializedTx []byte, received time.Time) (*TxRecord, error) + func NewTxRecordFromMsgTx(msgTx *wire.MsgTx, received time.Time) (*TxRecord, error)