Skip to content

Instantly share code, notes, and snippets.

@dleonard00
Created April 24, 2018 22:49
Show Gist options
  • Save dleonard00/524c969105e4dba9d17656d0d49e4383 to your computer and use it in GitHub Desktop.
Save dleonard00/524c969105e4dba9d17656d0d49e4383 to your computer and use it in GitHub Desktop.
swap progress.md

Some significant changes that impact the swap implementation are the restructuring of protocols found in swarm/network/protocol.go So far I have added back swap specific properties to the Bzz Struct and Peer Struct.

Right now, everything compiles and runs - but when I connect two swarm peers there is not any swap accounting happening. This is to be expected because I haven't yet implemented the swap instances on the Bzz or Peer Structs. I am planning to begin implementing this here

Would you mind taking a quick look at what's been done so far and help me understand if I'm headed the right direction, or if I'm way off in my approach thus far. And then, a second question I have: Is there a more obvous place to put the logic implemeting the swap instances? Next, I believe need to have the new Bzz object conform to the "Protocol" interface once that is done, I beleive I'll be ready to pull request this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment