| 60 | } |
| 61 | |
| 62 | bool CGovSysParamProposal::ExecuteProposal(CTxExecuteContext& context, CBaseTx& tx) { |
| 63 | CCacheWrapper &cw = *context.pCw; |
| 64 | |
| 65 | for( auto pa: param_values){ |
| 66 | auto paramType = SysParamType(pa.first); |
| 67 | |
| 68 | if (!cw.sysParamCache.SetParam(paramType, pa.second.get())) |
| 69 | return false; |
| 70 | |
| 71 | if (paramType == SysParamType::BP_DELEGATE_VOTE_MIN && |
| 72 | !cw.delegateCache.SetLastVoteHeight(context.height)) { |
| 73 | return false; |
| 74 | } |
| 75 | |
| 76 | } |
| 77 | |
| 78 | return true; |
| 79 | } |
| 80 | |
| 81 | bool CGovBpMcListProposal::CheckProposal(CTxExecuteContext& context, CBaseTx& tx){ |
| 82 | IMPLEMENT_DEFINE_CW_STATE |
no test coverage detected