Page MenuHomePhabricator

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

Authored by deadalnix on Feb 9 2020, 23:26.

Details

Summary

Calling the same function again and again is redudant.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.