From 5883e1df21e2c8d33d77bc5604ac99c63809fad6 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Sat, 15 Apr 2023 16:43:20 +0300 Subject: [PATCH] just getTangle() --- lib/plugin.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/plugin.js b/lib/plugin.js index 3971302..7f941bb 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -292,9 +292,8 @@ exports.init = function initDB(peer, config) { cb() } - function getTangleDeletablesAndErasables(tangleId, msgHash) { - const tangle = new Tangle(tangleId, records()) - return tangle.getDeletablesAndErasables(msgHash) + function getTangle(tangleId) { + return new Tangle(tangleId, records()) } function* msgs() { @@ -323,7 +322,7 @@ exports.init = function initDB(peer, config) { del, erase, onRecordAdded, - getTangleDeletablesAndErasables, + getTangle, msgs, records,