Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Post() implementation in sshext #853

Closed
adambabik opened this issue Apr 22, 2018 · 5 comments · Fixed by #854
Closed

Simplify Post() implementation in sshext #853

adambabik opened this issue Apr 22, 2018 · 5 comments · Fixed by #854

Comments

@adambabik
Copy link
Contributor

adambabik commented Apr 22, 2018

Problem

ethereum/go-ethereum#16495 got merged recently and shh_post returns a hash of the envelope instead of boolean now.

Implementation

Two possible solutions.

Remove shhext_post

Remove shhext_post and patch the original shh_post with a tracker. This may require patching web3.js as well.

Simplify shhext_post

Keep shhext_post but simplify its implementation to call shh_post internally. The implementation will just keep the tracker.

Acceptance Criteria

  • messaging works as expected,
  • all existing tests related to shhext_post pass.

Notes

Blocked until Geth 1.8.5 is released.

@dshulyak
Copy link
Contributor

shh_post should be patched now instead of using our namespace (shhext) for post

@adambabik
Copy link
Contributor Author

What will be changed in the patch? Just addition of events?

@dshulyak
Copy link
Contributor

dshulyak commented Apr 23, 2018 via email

@dshulyak
Copy link
Contributor

Keep shhext_post but simplify its implementation to call shh_post internally. The implementation will just keep the tracker.

didn't notice this part initially.
you are right that we can keep shhext_post instead of adding tracker to shh_post.

@dshulyak dshulyak removed the blocked label Apr 23, 2018
@dshulyak
Copy link
Contributor

Unblocking as 1.8.5 got released this morning 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants