From 67838afb20cfe2930acb1b61cd5da0144d6246ea Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 8 Oct 2013 13:34:04 -0500 Subject: [PATCH] Go fmt and comments. --- mempool.go | 4 ++-- peer.go | 2 +- util/findcheckpoint/config.go | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mempool.go b/mempool.go index 93a0e1313..c0b5e76ed 100644 --- a/mempool.go +++ b/mempool.go @@ -771,8 +771,8 @@ func (mp *txMemPool) ProcessTransaction(tx *btcwire.MsgTx) error { return nil } -// TxShas returns a slice containing the hashes of all transactions in the -// memory pool. +// TxShas returns a slice of hashes for all of the transactions in the memory +// pool. func (mp *txMemPool) TxShas() []*btcwire.ShaHash { mp.lock.Lock() defer mp.lock.Unlock() diff --git a/peer.go b/peer.go index 38163cc44..6aa52786e 100644 --- a/peer.go +++ b/peer.go @@ -359,7 +359,7 @@ func (p *peer) pushBlockMsg(sha btcwire.ShaHash) error { return nil } -// pushGetBlocksMsg sends a getblocks message for the provided block locator +// PushGetBlocksMsg sends a getblocks message for the provided block locator // and stop hash. It will ignore back-to-back duplicate requests. func (p *peer) PushGetBlocksMsg(locator btcchain.BlockLocator, stopHash *btcwire.ShaHash) error { p.prevGetBlockMutex.Lock() diff --git a/util/findcheckpoint/config.go b/util/findcheckpoint/config.go index 0e437e6cc..448f22c8e 100644 --- a/util/findcheckpoint/config.go +++ b/util/findcheckpoint/config.go @@ -68,6 +68,7 @@ func validDbType(dbType string) bool { return false } +// netName returns a human-readable name for the passed bitcoin network. func netName(btcnet btcwire.BitcoinNet) string { net := "mainnet" if btcnet == btcwire.TestNet3 {