just getTangle()

This commit is contained in:
Andre Staltz 2023-04-15 16:43:20 +03:00
parent 01cb78c65a
commit 5883e1df21
1 changed files with 3 additions and 4 deletions

View File

@ -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,