MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ExecuteProposal

Method ExecuteProposal

src/entities/proposal.cpp:62–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool 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
81bool CGovBpMcListProposal::CheckProposal(CTxExecuteContext& context, CBaseTx& tx){
82 IMPLEMENT_DEFINE_CW_STATE

Callers 1

ExecuteTxMethod · 0.80

Calls 15

SysParamTypeEnum · 0.85
ProcessAxcInFeeFunction · 0.85
SetParamMethod · 0.80
SetLastVoteHeightMethod · 0.80
EraseGovernorMethod · 0.80
AddGovernorMethod · 0.80
GetTotalBpsSizeMethod · 0.80
DoSMethod · 0.80
SetNewTotalBpsSizeMethod · 0.80
SetMinerFeeMethod · 0.80
NewAccountMethod · 0.80

Tested by

no test coverage detected