From fd0bac8e181c2531fdacb70ea165aef861b61c15 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 25 Sep 2018 19:18:28 -0700 Subject: [PATCH] wallet: add godoc to publishTransaction --- wallet/wallet.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wallet/wallet.go b/wallet/wallet.go index 8679bcc..b202d69 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -3255,6 +3255,11 @@ func (w *Wallet) PublishTransaction(tx *wire.MsgTx) error { 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) { server, err := w.requireChainClient() if err != nil {