Skip to content

p2p/discover: sha3-based node distance#791

Merged
obscuren merged 5 commits into
ethereum:developfrom
fjl:discover-sha3-distance
May 6, 2015
Merged

p2p/discover: sha3-based node distance#791
obscuren merged 5 commits into
ethereum:developfrom
fjl:discover-sha3-distance

Conversation

@fjl
Copy link
Copy Markdown
Contributor

@fjl fjl commented Apr 23, 2015

This PR builds on the endpoint format changes (#743) mostly to reduce merge trouble later.

@fjl fjl added this to the Frontier milestone Apr 23, 2015
Comment thread p2p/discover/node.go
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

perhaps use uint16 for consistency with Node.UDP/TCP and to catch potential future overflow bugs quicker

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ah, nevermind, I see it's used due to strconv.ParseUInt returning uint64.

@fjl fjl self-assigned this Apr 24, 2015
@fjl fjl force-pushed the discover-sha3-distance branch 4 times, most recently from 1486ee6 to a2737d9 Compare April 27, 2015 23:25
@fjl
Copy link
Copy Markdown
Contributor Author

fjl commented Apr 30, 2015

This needs a rebase on #743.

@fjl fjl force-pushed the discover-sha3-distance branch 2 times, most recently from de4c8a0 to 6dbfa10 Compare April 30, 2015 12:56
fjl added 4 commits April 30, 2015 14:57
This commit changes the discovery protocol to use the new "v4" endpoint
format, which allows for separate UDP and TCP ports and makes it
possible to discover the UDP address after NAT.
@fjl fjl force-pushed the discover-sha3-distance branch from 6dbfa10 to ccac4a7 Compare April 30, 2015 13:02
@fjl
Copy link
Copy Markdown
Contributor Author

fjl commented Apr 30, 2015

Has been rebased.

@fjl fjl force-pushed the discover-sha3-distance branch from ccac4a7 to 52f5435 Compare May 6, 2015 14:10
The previous metric was pubkey1^pubkey2, as specified in the Kademlia
paper. We missed that EC public keys are not uniformly distributed.
Using the hash of the public keys addresses that. It also makes it
a bit harder to generate node IDs that are close to a particular node.
@fjl fjl force-pushed the discover-sha3-distance branch from 52f5435 to 2adcc31 Compare May 6, 2015 14:10
@fjl fjl removed the in progress label May 6, 2015
obscuren added a commit that referenced this pull request May 6, 2015
p2p/discover: sha3-based node distance
@obscuren obscuren merged commit 24d44f3 into ethereum:develop May 6, 2015
@fjl fjl deleted the discover-sha3-distance branch May 29, 2015 23:40
hodler-smart added a commit to hodler-smart/go-ethereum that referenced this pull request Feb 4, 2021
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Jun 9, 2023
internal/ethapi: set rpc gas cap as default gas limit when creating access list
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.

4 participants