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.
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.