Go fmt and comments.
This commit is contained in:
parent
2ad0d34d27
commit
67838afb20
3 changed files with 4 additions and 3 deletions
|
@ -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()
|
||||
|
|
2
peer.go
2
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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue