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

start index not incremented #4

Open elpinjo opened 6 years ago

elpinjo commented 6 years ago

When invoking mamState = Mam.init(iota, seed, 2, startCount); startCount is not used to increment the channel start index. The code in mam.node.js always initializes the start index to 0. Each time one invokes the attach for a second time the MAM stream get's corrupted due to the fact the channel index is not incremented.