From 2b8bde41ea8b7a8a93c03e5cde91a47cc82cbf06 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 27 Feb 2018 15:00:39 -0600 Subject: [PATCH] blockchain: Remove unused GetTopBlock function. --- blockchain/chain.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/blockchain/chain.go b/blockchain/chain.go index 80ff9952..7b2941f6 100644 --- a/blockchain/chain.go +++ b/blockchain/chain.go @@ -616,12 +616,6 @@ func (b *BlockChain) FetchBlockByHash(hash *chainhash.Hash) (*dcrutil.Block, err return b.fetchBlockByHash(hash) } -// GetTopBlock returns the current block at HEAD on the blockchain. Needed -// for mining in the daemon. -func (b *BlockChain) GetTopBlock() (*dcrutil.Block, error) { - return b.fetchMainChainBlockByHash(&b.bestNode.hash) -} - // pruneStakeNodes removes references to old stake nodes which should no // longer be held in memory so as to keep the maximum memory usage down. // It proceeds from the bestNode back to the determined minimum height node,