Page MenuHomePhabricator

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

Authored by deadalnix on Sun, Feb 9, 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.

Event Timeline

deadalnix created this revision.Sun, Feb 9, 23:26
Herald added a reviewer: Restricted Project. · View Herald TranscriptSun, Feb 9, 23:26
Fabien accepted this revision.Mon, Feb 10, 08:37
This revision is now accepted and ready to land.Mon, Feb 10, 08:37