The timer for counting down to configured voting power appeared stuck with the same time. This is because it didn't update the amount of vp in realtime. Now I added the code and it fixed the issue.
function StartTimer() {
let x = async () => {
await getVP();
let nTimer = utils.mTimer(vp);
This is done by using cli-table 2 npm library which makes everything prettier and easier to look at :
var Table = require('cli-table2');
var table = new Table({
head: ["index", "author", "permlinks"],
wordWrap: true
});
for (var i = 0; i < min; i++) {
table.push([i+1, authors[i], permlinks[i]]);
}
console.log(table.toString());
The frontrun bot was upvoting to a number of posts limit setted in config.json. And this make it to reloop over the old range of posts without proceeding to the new one. Frontrun bot will now attempt to upvote more posts but still preserving the configured amount of VP.
if (++j < permlinks.length && vp >= VPlimit) {
myLoop(j);
console.log('j1 in if loop : ' + j);
}