s/d_params/dynafed_params/

This commit is contained in:
Gregory Sanders 2019-06-14 13:06:38 -04:00
parent 1779956e69
commit 0fd39edf54
7 changed files with 28 additions and 28 deletions

View file

@ -468,16 +468,16 @@ std::vector<CScript> GetValidFedpegScripts(const CBlockIndex* pblockindex, const
const CBlockIndex* p_prev_epoch_start = pblockindex->GetAncestor(epoch_start_height-epoch_length);
if (p_current_epoch_start) {
if (!p_current_epoch_start->d_params.IsNull()) {
fedpegscripts.push_back(p_current_epoch_start->d_params.m_current.m_fedpegscript);
if (!p_current_epoch_start->dynafed_params.IsNull()) {
fedpegscripts.push_back(p_current_epoch_start->dynafed_params.m_current.m_fedpegscript);
} else {
fedpegscripts.push_back(params.fedpegScript);
}
}
if (p_prev_epoch_start) {
if (!p_prev_epoch_start->d_params.IsNull()) {
fedpegscripts.push_back(p_prev_epoch_start->d_params.m_current.m_fedpegscript);
if (!p_prev_epoch_start->dynafed_params.IsNull()) {
fedpegscripts.push_back(p_prev_epoch_start->dynafed_params.m_current.m_fedpegscript);
} else {
fedpegscripts.push_back(params.fedpegScript);
}