l3wi / mam.client.js

Masked Authentication Messaging wrapper for Javascript (Browser and Node)
GNU General Public License v3.0
15 stars 51 forks source link

Merklee tree with count >1 #9

Open odyslam opened 6 years ago

odyslam commented 6 years ago

Hey,

I am trying to create merklee trees with depth >1. The reason is that I want multiple messages to belong to the same merklee tree so a merklee tree can point to multiple merklee trees ( since each message can point to a different root).

Whenever i try to set the channel.count to something different that 1 I get:

thread '<unnamed>' panicked at 'Error, dude!', /Users/lewi/.cargo/git/checkouts/iota.rs-1792f679be51837c/56205e6/merkle/src/simple.rs:176:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread '<unnamed>' panicked at 'Error, dude!', /Users/lewi/.cargo/git/checkouts/iota.rs-1792f679be51837c/56205e6/merkle/src/simple.rs:176:13
Unwind_GetIPInfo
Unwind_GetIPInfo
(node:6950) UnhandledPromiseRejectionWarning: 5282096
(node:6950) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6950) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:6950) UnhandledPromiseRejectionWarning: abort("Unwind_GetIPInfo") at Error
    at jsStackTrace (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9459:18008)
    at stackTrace (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9459:18179)
    at abort (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9472:17022)
    at __Unwind_GetIPInfo (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9459:191229)
    at Wc (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9464:50036)
    at bm (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9465:76991)
    at __Unwind_Backtrace (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9459:194355)
    at Oc (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9464:43708)
    at ec (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9464:18116)
    at Yl (/Users/Odys/Desktop/testing/superNode/mam.client.js/lib/mam.node.js:9465:76527)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
(node:6950) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)