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

feat(): add farmer protocol #120

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

n33pm
Copy link
Contributor

@n33pm n33pm commented Apr 9, 2024

No description provided.

@n33pm n33pm force-pushed the farmer-protocol branch from 3ad0a83 to 46325dc Compare April 10, 2024 08:09
@n33pm n33pm force-pushed the farmer-protocol branch 2 times, most recently from fd0ad2f to 0023c26 Compare April 18, 2024 11:58
@cmmarslender
Copy link
Contributor

Hey @n33pm - Just wanted to check on your progress here. Did you need the network with the lower filter for testing or did you find a way to test otherwise?

@n33pm n33pm force-pushed the farmer-protocol branch from 0023c26 to 240c8f7 Compare June 5, 2024 11:07
@n33pm n33pm force-pushed the farmer-protocol branch from 240c8f7 to cb08424 Compare June 5, 2024 11:19
@@ -79,6 +89,23 @@ func NewConnection(ip *net.IP, options ...ConnectionOptionFunc) (*Connection, er
return c, nil
}

// NewServerConnection creates a new connection object with the specified peer
func NewServerConnection(conn *websocket.Conn, options ...ConnectionOptionFunc) (*Connection, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious when the case is we already have a websocket connection vs an IP to connect to?

Is there a reason we can't just use the peerPort for this? I don't really see a difference between serverPort and peerPort (and they default to the same config value unless overridden with config option)

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 this pull request may close these issues.

2 participants