|
@@ -115,9 +115,13 @@ begin
|
|
|
if udInternetServerPort.Position = udJSONRPCMinerServerPort.Position then raise Exception.Create('Server port and JSON-RPC Server miner port are equal!');
|
|
|
|
|
|
if TAccountComp.TxtToMoney(ebDefaultFee.Text,df) then begin
|
|
|
+ if (df<=0) And (Not CT_AllowPropagate0feeOperations) then begin
|
|
|
+ ebDefaultFee.Text := TAccountComp.FormatMoney(AppParams.ParamByName[CT_PARAM_DefaultFee].GetAsInteger(1));
|
|
|
+ raise Exception.Create('Minimum fee is at least '+TAccountComp.FormatMoney(CT_MOLINA));
|
|
|
+ end;
|
|
|
AppParams.ParamByName[CT_PARAM_DefaultFee].SetAsInt64(df);
|
|
|
end else begin
|
|
|
- ebDefaultFee.Text := TAccountComp.FormatMoney(AppParams.ParamByName[CT_PARAM_DefaultFee].GetAsInteger(0));
|
|
|
+ ebDefaultFee.Text := TAccountComp.FormatMoney(AppParams.ParamByName[CT_PARAM_DefaultFee].GetAsInteger(1));
|
|
|
raise Exception.Create('Invalid Fee value');
|
|
|
end;
|
|
|
AppParams.ParamByName[CT_PARAM_InternetServerPort].SetAsInteger(udInternetServerPort.Position );
|
|
@@ -240,7 +244,7 @@ begin
|
|
|
if Not Assigned(Value) then exit;
|
|
|
Try
|
|
|
udInternetServerPort.Position := AppParams.ParamByName[CT_PARAM_InternetServerPort].GetAsInteger(CT_NetServer_Port);
|
|
|
- ebDefaultFee.Text := TAccountComp.FormatMoney(AppParams.ParamByName[CT_PARAM_DefaultFee].GetAsInt64(0));
|
|
|
+ ebDefaultFee.Text := TAccountComp.FormatMoney(TSettings.DefaultFee);
|
|
|
cbJSONRPCMinerServerActive.Checked := AppParams.ParamByName[CT_PARAM_JSONRPCMinerServerActive].GetAsBoolean(true);
|
|
|
case TMinerPrivateKeyType(AppParams.ParamByName[CT_PARAM_MinerPrivateKeyType].GetAsInteger(Integer(mpk_Random))) of
|
|
|
mpk_NewEachTime : rbGenerateANewPrivateKeyEachBlock.Checked := true;
|