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

Disable framing in devp2p for all protocol versions #4594

Merged
merged 1 commit into from Oct 11, 2017

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Oct 11, 2017

This was preventing from succesfully communicating with devp2p v5 geth nodes

libp2p/Session.h Outdated
@@ -90,7 +90,7 @@ class SessionFace
class Session: public SessionFace, public std::enable_shared_from_this<SessionFace>
{
public:
static bool isFramingAllowedForVersion(unsigned _version) { return _version > 4; }
static bool isFramingAllowedForVersion(unsigned _version) { return false; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

You have to ignore the argument. (void)_version.

@chfast
Copy link
Collaborator

chfast commented Oct 11, 2017

Let's ship this change. Later we should probably drop this feature.

@chfast
Copy link
Collaborator

chfast commented Oct 11, 2017

CC @gluk256.

@chfast chfast merged commit 9378810 into develop Oct 11, 2017
@chfast chfast deleted the disable-devp2p-framing branch October 11, 2017 15:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants