Commit f095fc28 authored by Éloïs's avatar Éloïs

[enh] export indexing task to module

parent 8fe044ef
......@@ -4,7 +4,7 @@ const co = require('co');
const fs = require('fs');
const path = require('path');
const main = require(__dirname + '/lib/main.js');
//const duniter = require('duniter');
const indexing = require(__dirname + '/lib/indexing.js');
/****************************************
* TECHNICAL CONFIGURATION
......@@ -74,8 +74,7 @@ module.exports = {
else if (ACTION == "indexing")
{
try {
console.log('sync...');
console.log('ok');
indexing(server, conf, program, params);
} catch (err) {
console.error('Error during blockchain indexing ', err);
}
......
module.exports = function timestampToDatetime(server, conf, program, params) {
console.log('sync...');
console.log('ok');
}
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