HomePhabricator

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

Authored by deadalnix on Feb 9 2020, 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
deadalnixFeb 10 2020, 13:05
Pushed
deadalnixFeb 10 2020, 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