HomePhabricator

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

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

Provenance
deadalnixAuthored on Feb 9 2020, 23:23
FabienPushed on Feb 10 2020, 13:49
Reviewer
Restricted Project
Differential Revision
D5234: Cache the result of chainparams.GetConsensus() in miner code
Parents
rSTAGINGe035b46366e4: Update weird way to check for MTP in functional tests
Branches
Unknown
Tags
Unknown