fix sync params

This commit is contained in:
Matias Alejo Garcia 2014-02-05 13:38:39 -03:00
parent 061e4e4b34
commit 11aa379bb4

View File

@ -49,7 +49,6 @@ if (!config.disableHistoricSync) {
historicSync = new HistoricSync(); historicSync = new HistoricSync();
historicSync.init({ historicSync.init({
skipDbConnection: true,
shouldBroadcast: true, shouldBroadcast: true,
networkName: config.network networkName: config.network
}, function(err) { }, function(err) {
@ -58,7 +57,7 @@ if (!config.disableHistoricSync) {
console.log('[historic_sync] ' + txt); console.log('[historic_sync] ' + txt);
} }
else { else {
historicSync.smartImport(function(err){ historicSync.smartImport({}, function(err){
var txt = 'ended.'; var txt = 'ended.';
if (err) txt = 'ABORTED with error: ' + err.message; if (err) txt = 'ABORTED with error: ' + err.message;
console.log('[historic_sync] ' + txt, historicSync.info()); console.log('[historic_sync] ' + txt, historicSync.info());
@ -73,7 +72,6 @@ if (!config.disableHistoricSync) {
if (!config.disableP2pSync) { if (!config.disableP2pSync) {
var ps = new PeerSync(); var ps = new PeerSync();
ps.init({ ps.init({
skipDbConnection: true,
broadcast_txs: true, broadcast_txs: true,
broadcast_address_tx: true, broadcast_address_tx: true,
broadcast_blocks: true, broadcast_blocks: true,