diff --git a/app/lib/dal/sqliteDAL/MetaDAL.js b/app/lib/dal/sqliteDAL/MetaDAL.js index 21476a373ca34d555fbabf0a9762fa4f369b732d..6e6100a5c45bc7afa4412c4b4ba97e00366ee55e 100644 --- a/app/lib/dal/sqliteDAL/MetaDAL.js +++ b/app/lib/dal/sqliteDAL/MetaDAL.js @@ -119,7 +119,7 @@ function MetaDAL(driver) { 17: () => co(function *() { let blockDAL = new (require('./BlockDAL'))(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 Identity = require('../../../lib/entity/identity'); const amountsPerKey = {};