Documentation ¶
Index ¶
- func Broadcast(tx *wire.MsgTx, peers []*peer.Peer) error
- func ClearCaches(pkHashes [][]byte) error
- func ConditionallySaveTransaction(msg *wire.MsgTx, dbBlock *db.Block, userNode bool) (bool, bool, error)
- func ConvertChainHashToBCH(hash *chainhash.Hash) *chainhash2.Hash
- func ConvertChainHashToBTC(hash *chainhash2.Hash) *chainhash.Hash
- func Create(spendOuts []*db.TransactionOut, privateKey *wallet.PrivateKey, ...) (*wire.MsgTx, error)
- func DisableBatchPostProcessing()
- func EnableBatchPostProcessing()
- func GetMemoOutputIfExists(txn *db.Transaction) (*db.TransactionOut, error)
- func GetPkHashesFromTxn(dbTxn *db.Transaction) [][]byte
- func ProcessNotifications() (uint, []error)
- func QueueTx(tx *memo.Tx)
- func SaveMemo(txn *db.Transaction, out *db.TransactionOut, block *db.Block) error
- func SaveTransaction(txn *db.Transaction, block *db.Block) error
- func UpdateRootTxHashes() (uint, []error)
- func WaitForPic(txHash *chainhash.Hash) error
- func WaitForTx(txHash *chainhash.Hash) error
- type MerkleTransaction
- type TxInfo
- type TxInfoAddress
- type TxInfoInput
- type TxInfoOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCaches ¶
func ConvertChainHashToBCH ¶
func ConvertChainHashToBCH(hash *chainhash.Hash) *chainhash2.Hash
func ConvertChainHashToBTC ¶
func ConvertChainHashToBTC(hash *chainhash2.Hash) *chainhash.Hash
func Create ¶
func Create(spendOuts []*db.TransactionOut, privateKey *wallet.PrivateKey, spendOutputs []memo.Output) (*wire.MsgTx, error)
func DisableBatchPostProcessing ¶
func DisableBatchPostProcessing()
func EnableBatchPostProcessing ¶
func EnableBatchPostProcessing()
func GetMemoOutputIfExists ¶
func GetMemoOutputIfExists(txn *db.Transaction) (*db.TransactionOut, error)
func GetPkHashesFromTxn ¶
func GetPkHashesFromTxn(dbTxn *db.Transaction) [][]byte
func ProcessNotifications ¶
func SaveMemo ¶
func SaveMemo(txn *db.Transaction, out *db.TransactionOut, block *db.Block) error
func SaveTransaction ¶
func SaveTransaction(txn *db.Transaction, block *db.Block) error
func UpdateRootTxHashes ¶
func WaitForPic ¶
Types ¶
type MerkleTransaction ¶
type MerkleTransaction struct {
// contains filtered or unexported fields
}
func GetTransactionsFromMerkleBlock ¶
func GetTransactionsFromMerkleBlock(merkleBlock *wire.MsgMerkleBlock) []MerkleTransaction
func (*MerkleTransaction) GetTxId ¶
func (m *MerkleTransaction) GetTxId() chainhash.Hash
type TxInfo ¶
type TxInfo struct { Error error Raw []byte Hash string TotalInputValue int64 OutputValue int64 Change int64 Fee int64 Size int Inputs []*TxInfoInput Outputs []*TxInfoOutput }
func (TxInfo) PrintVerbose ¶
func (t TxInfo) PrintVerbose()
type TxInfoAddress ¶
type TxInfoInput ¶
type TxInfoOutput ¶
type TxInfoOutput struct { Value int64 LockScript string Address TxInfoAddress }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.