Skip to content

Commit

Permalink
Merge pull request #45 from CodeLingoBot/rewrite
Browse files Browse the repository at this point in the history
Fix function comments based on best practices from Effective Go
  • Loading branch information
cpacia committed Apr 17, 2019
2 parents a32d416 + cc0ad48 commit abbd4e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (b *Blockchain) GetBlockLocator() blockchain.BlockLocator {
return blockchain.BlockLocator(ret)
}

// Returns last header before reorg point
// GetCommonAncestor returns last header before reorg point
func (b *Blockchain) GetCommonAncestor(bestHeader, prevBestHeader StoredHeader) (*StoredHeader, error) {
var err error
rollback := func(parent StoredHeader, n int) (StoredHeader, error) {
Expand Down
2 changes: 1 addition & 1 deletion txstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (ts *TxStore) GimmeFilter() (*bloom.Filter, error) {
return f, nil
}

// GetDoubleSpends takes a transaction and compares it with
// CheckDoubleSpends takes a transaction and compares it with
// all transactions in the db. It returns a slice of all txids in the db
// which are double spent by the received tx.
func (ts *TxStore) CheckDoubleSpends(argTx *wire.MsgTx) ([]*chainhash.Hash, error) {
Expand Down

0 comments on commit abbd4e2

Please sign in to comment.