blockchain: Remove unused GetTopBlock function.

This commit is contained in:
Dave Collins 2018-02-27 15:00:39 -06:00
parent a6ddf038f2
commit 2b8bde41ea
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -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,