wallet: add godoc to publishTransaction

This commit is contained in:
Olaoluwa Osuntokun 2018-09-25 19:18:28 -07:00
parent f7085cf1bf
commit fd0bac8e18
No known key found for this signature in database
GPG key ID: CE58F7F8E20FD9A2

View file

@ -3255,6 +3255,11 @@ func (w *Wallet) PublishTransaction(tx *wire.MsgTx) error {
return err return err
} }
// publishTransaction is the private version of PublishTransaction which
// contains the primary logic required for publishing a transaction, updating
// the relevant database state, and finally possible removing the transaction
// from the database (along with cleaning up all inputs used, and outputs
// created) if the transaction is rejected by the back end.
func (w *Wallet) publishTransaction(tx *wire.MsgTx) (*chainhash.Hash, error) { func (w *Wallet) publishTransaction(tx *wire.MsgTx) (*chainhash.Hash, error) {
server, err := w.requireChainClient() server, err := w.requireChainClient()
if err != nil { if err != nil {