Skip to content

Commit

Permalink
fix style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Mar 16, 2021
1 parent 13ea0fe commit 5694367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/blocktree/blocktree.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (bt *BlockTree) longestPath() []*node { //nolint
}

// subChain returns the path from the node with Hash start to the node with Hash end
func (bt *BlockTree) subChain(start Hash, end Hash) ([]*node, error) {
func (bt *BlockTree) subChain(start, end Hash) ([]*node, error) {
sn := bt.getNode(start)
if sn == nil {
return nil, ErrStartNodeNotFound
Expand All @@ -243,7 +243,7 @@ func (bt *BlockTree) subChain(start Hash, end Hash) ([]*node, error) {
}

// SubBlockchain returns the path from the node with Hash start to the node with Hash end
func (bt *BlockTree) SubBlockchain(start Hash, end Hash) ([]Hash, error) {
func (bt *BlockTree) SubBlockchain(start, end Hash) ([]Hash, error) {
bt.RLock()
defer bt.RUnlock()

Expand Down

0 comments on commit 5694367

Please sign in to comment.