Merge #10201: pass Consensus::Params& to functions in validation.cpp and make them...