Closed Wondertan closed 2 years ago
Basically the one small thing that we can and should improve on is provide a raw ID method in idGen, so that we don't have to allocate a wrapper message to compute it in the tracer.
This method could simply be refactored out of ID, and used by it.
hey @Wondertan, when will you have some time to finish this? I would like to merge it soon.
It is very close, just needs to fix the allocation in the tracer by refactoring rawMsgInd. It also needs a rebase.
Hey @vyzo, planned for tomorrow.
Rebased on master
One last thing I am concerned about is naming for options.
WithMessageIdFn
is global options
WithMsgIdFunction
is for topic. Would be cool to unify them somehow or just append Topic
in the end.
I will also add a test for the option later today.
yeah, lets call it WithTopicMessageId
or something similar.
Ready.
Btw, why do you use real Swarm and not mocknet in tests? What does this give for testing?
Btw, why do you use real Swarm and not mocknet in tests? What does this give for testing?
Well, we want some integration testing happening and observing effects of the actual network in use; mocknet would deny us that.
msgIdGenerator
Tracer
methods rcving*RPC
MsgIDFunction
Closes #464