HomePhabricator

Cache the result of chainparams.GetConsensus() in miner code

Authored by deadalnix on Sun, Feb 9, 23:23.

Description

Cache the result of chainparams.GetConsensus() in miner code

Summary: Calling the same function again and again is redudant.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D5234

Details

Committed
deadalnixMon, Feb 10, 13:05
Pushed
deadalnixMon, Feb 10, 13:05
Reviewer
Restricted Project
Differential Revision
D5234: Cache the result of chainparams.GetConsensus() in miner code
Parents
rABCe035b46366e4: Update weird way to check for MTP in functional tests
Branches
Unknown
Tags
Unknown