Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

swarm/pss: Deduplicate messages when processing #314

Closed
wants to merge 3 commits into from

Conversation

nolash
Copy link
Contributor

@nolash nolash commented Mar 7, 2018

@nolash nolash self-assigned this Mar 7, 2018
@nolash nolash requested review from janos and zelig March 7, 2018 14:16
swarm/pss/pss.go Outdated
@@ -294,12 +300,14 @@ func (self *Pss) handlePssMsg(msg interface{}) error {
return errors.New("Invalid TTL")
}
log.Trace("pss was for someone else :'( ... forwarding", "pss", common.ToHex(self.BaseAddr()))
return self.forward(pssmsg)
self.checkFwdCache([]byte{}, digest, true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is checkFwdCache called without checking the return value?

swarm/pss/pss.go Outdated
if !self.process(pssmsg) {
err = self.forward(pssmsg)
if !self.process(pssmsg, digest) {
self.checkFwdCache([]byte{}, digest, true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@zelig zelig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nolash please list the changes requested as per convo

@nolash
Copy link
Contributor Author

nolash commented Mar 19, 2018

Deferred to resolution of #339

@nolash nolash closed this Mar 19, 2018
@nolash nolash deleted the pss-deduplication-new branch May 26, 2018 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants