Page MenuHomePhabricator

Remove Consensus::Params parameter from ContextualCheckBlock
Closed, ResolvedPublic

Description

The function ContextualCheckBlock takes both a Config and a Consensus::Params as parameter. The second one can be accessed from the config and is therefore redundant.

Event Timeline

jasonbcox renamed this task from Remove CChainParams parameter from ContextualCheckBlock to Remove Consensus::Params parameter from ContextualCheckBlock.Jan 23 2018, 17:58
jasonbcox updated the task description. (Show Details)

Fixed the task title and descrition. It wasn't CChainParams directly, but rather a subcomponent of that, which is Consensus::Params. Look at calls to ContextualCheckBlock and it will be clear that the "params" parameter is redundant. Thanks for taking a look at this. :)