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

[fix] #1316 /blockchain/with/ud was broken

parent 5ea83359
No related branches found
No related tags found
No related merge requests found
......@@ -336,6 +336,8 @@ export class GlobalIndexStream extends Duplex {
return block
}))
await DuniterBlockchain.pushStatsForBlocks(blocks, this.dal)
if (this.conf.storage && this.conf.storage.transactions) {
await Promise.all(blocks.map(block => this.dal.saveTxsInFiles(block.transactions, block.number, block.medianTime)))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment