Documentation ¶
Overview ¶
Package utxoset package to keep track of utxoset during parsing. Currently NOT USED
Index ¶
- func Btoi(b []byte) (v int)
- func Itob(v int) (b []byte)
- type Config
- type UtxoSet
- func (u *UtxoSet) CheckUtxoSet(hash string) bool
- func (u *UtxoSet) Close() error
- func (u *UtxoSet) DeleteUtxo(hash string, vout uint32) (err error)
- func (u *UtxoSet) DeleteUtxoSet(hash string) (err error)
- func (u *UtxoSet) GetStoredUtxo(hash string, vout uint32) (uid string, err error)
- func (u *UtxoSet) GetUtxo(hash string, vout uint32) (uid string, err error)
- func (u *UtxoSet) GetUtxoSet(hash string) (uids map[uint32]string, err error)
- func (u *UtxoSet) Restore(last string) (err error)
- func (u *UtxoSet) StoreUtxoSet(hash string, outputs map[uint32]string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UtxoSet ¶
type UtxoSet struct {
// contains filtered or unexported fields
}
UtxoSet unspent transaction output in memory and persistant storage
func (*UtxoSet) CheckUtxoSet ¶
CheckUtxoSet returns true if the utxo set is stored
func (*UtxoSet) DeleteUtxo ¶
DeleteUtxo deletes the uid in the tx bucket
func (*UtxoSet) DeleteUtxoSet ¶
DeleteUtxoSet deletes the tx bucket
func (*UtxoSet) GetStoredUtxo ¶
GetStoredUtxo returns the bolt stored output
func (*UtxoSet) GetUtxoSet ¶
GetUtxoSet returns the required output set (outputs of a transaction)
Click to show internal directories.
Click to hide internal directories.