Commit be5daa7c authored by Cédric Moreau's avatar Cédric Moreau

Sync: update UCP parameters to match the synced node's parameters

parent 3fa93bb3
...@@ -132,30 +132,21 @@ module.exports = function Synchroniser (server, host, port, authenticated, conf) ...@@ -132,30 +132,21 @@ module.exports = function Synchroniser (server, host, port, authenticated, conf)
//============ //============
// Parameters // Parameters
//============ //============
// function (next){ function (next){
// node.registry.parameters(next); node.keychain.parameters(next);
// }, },
// function (params, next){ function (params, next){
// async.waterfall([ conf.currency = params["currency"];
// function (next){ conf.sigDelay = params["sigDelay"];
// Configuration.find({}, next); conf.sigValidity = params["sigValidity"];
// }, conf.sigQty = params["sigQty"];
// function (confs, next){ conf.stepMax = params["stepMax"];
// var config = confs[0] || new Configuration(); conf.powZeroMin = params["powZeroMin"];
// var sync = _({}).extend(config.sync); conf.powPeriod = params["powPeriod"];
// sync.AMStart = params.AMStart; conf.save(function (err) {
// sync.AMFreq = params.AMFrequency; next(err);
// sync.UDFreq = params.UDFrequency; });
// sync.UD0 = params.UD0; },
// sync.UDPercent = params.UDPercent;
// sync.Consensus = params.Consensus;
// config.sync = sync;
// config.save(function (err) {
// next(err);
// });
// },
// ], next);
// },
//============ //============
// Public Keys // Public Keys
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment