Documentation ¶
Index ¶
- type DB
- type Tx
- func (tx *Tx) AddAddressToTx(txHash chainhash.Hash, scriptHashHex blockchain.ScriptHashHex) error
- func (tx *Tx) AddressHistory(scriptHashHex blockchain.ScriptHashHex) (blockchain.TxHistory, error)
- func (tx *Tx) Commit() error
- func (tx *Tx) DeleteInput(outPoint wire.OutPoint)
- func (tx *Tx) DeleteOutput(outPoint wire.OutPoint)
- func (tx *Tx) DeleteTx(txHash chainhash.Hash)
- func (tx *Tx) Input(outPoint wire.OutPoint) (*chainhash.Hash, error)
- func (tx *Tx) MarkTxVerified(txHash chainhash.Hash, headerTimestamp time.Time) error
- func (tx *Tx) Output(outPoint wire.OutPoint) (*wire.TxOut, error)
- func (tx *Tx) Outputs() (map[wire.OutPoint]*wire.TxOut, error)
- func (tx *Tx) PutAddressHistory(scriptHashHex blockchain.ScriptHashHex, history blockchain.TxHistory) error
- func (tx *Tx) PutInput(outPoint wire.OutPoint, txHash chainhash.Hash) error
- func (tx *Tx) PutOutput(outPoint wire.OutPoint, txOut *wire.TxOut) error
- func (tx *Tx) PutTx(txHash chainhash.Hash, msgTx *wire.MsgTx, height int) error
- func (tx *Tx) RemoveAddressFromTx(txHash chainhash.Hash, scriptHashHex blockchain.ScriptHashHex) (bool, error)
- func (tx *Tx) Rollback()
- func (tx *Tx) Transactions() ([]chainhash.Hash, error)
- func (tx *Tx) TxInfo(txHash chainhash.Hash) (*wire.MsgTx, []string, int, *time.Time, error)
- func (tx *Tx) UnverifiedTransactions() ([]chainhash.Hash, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a bbolt key/value database.
func (*DB) Begin ¶
func (db *DB) Begin() (transactions.DBTxInterface, error)
Begin implements transactions.Begin.
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx implements transactions.DBTxInterface.
func (*Tx) AddAddressToTx ¶
func (tx *Tx) AddAddressToTx(txHash chainhash.Hash, scriptHashHex blockchain.ScriptHashHex) error
AddAddressToTx implements transactions.DBTxInterface.
func (*Tx) AddressHistory ¶
func (tx *Tx) AddressHistory(scriptHashHex blockchain.ScriptHashHex) (blockchain.TxHistory, error)
AddressHistory implements transactions.DBTxInterface.
func (*Tx) DeleteInput ¶
DeleteInput implements transactions.DBTxInterface. It panics if called from a read-only db transaction.
func (*Tx) DeleteOutput ¶
DeleteOutput implements transactions.DBTxInterface. It panics if called from a read-only db transaction.
func (*Tx) DeleteTx ¶
DeleteTx implements transactions.DBTxInterface. It panics if called from a read-only db transaction.
func (*Tx) MarkTxVerified ¶
MarkTxVerified implements transactions.DBTxInterface.
func (*Tx) PutAddressHistory ¶
func (tx *Tx) PutAddressHistory(scriptHashHex blockchain.ScriptHashHex, history blockchain.TxHistory) error
PutAddressHistory implements transactions.DBTxInterface.
func (*Tx) RemoveAddressFromTx ¶
func (tx *Tx) RemoveAddressFromTx(txHash chainhash.Hash, scriptHashHex blockchain.ScriptHashHex) (bool, error)
RemoveAddressFromTx implements transactions.DBTxInterface.
func (*Tx) Transactions ¶
Transactions implements transactions.DBTxInterface.