From 188d37fefc055f04f489489e1069c388f0d6cd6c Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Tue, 18 Apr 2023 13:11:54 +0300 Subject: [PATCH] dont add deleted msgs to the DBTangle --- lib/plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugin.js b/lib/plugin.js index e0735a4..84a082b 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -48,6 +48,7 @@ class DBTangle extends FeedV1.Tangle { constructor(rootHash, recordsIter) { super(rootHash) for (const rec of recordsIter) { + if (!rec.msg) continue this.add(rec.hash, rec.msg) } }