Skip to content
Snippets Groups Projects
Commit 086ec175 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #811 Wrong database fix for nodes which were forking

parent 2e8afb9f
Branches
Tags
No related merge requests found
...@@ -119,7 +119,7 @@ function MetaDAL(driver) { ...@@ -119,7 +119,7 @@ function MetaDAL(driver) {
17: () => co(function *() { 17: () => co(function *() {
let blockDAL = new (require('./BlockDAL'))(driver); let blockDAL = new (require('./BlockDAL'))(driver);
let sindexDAL = new (require('./index/SIndexDAL'))(driver); let sindexDAL = new (require('./index/SIndexDAL'))(driver);
const blocks = yield blockDAL.sqlListAll(); const blocks = yield blockDAL.query('SELECT * FROM block WHERE NOT fork');
const Block = require('../../../lib/entity/block'); const Block = require('../../../lib/entity/block');
const Identity = require('../../../lib/entity/identity'); const Identity = require('../../../lib/entity/identity');
const amountsPerKey = {}; const amountsPerKey = {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment