-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
PoC8 Networking Integration #292
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fjl
force-pushed
the
poc8-net-integration
branch
from
February 5, 2015 02:23
c5e4de0
to
9188a58
Compare
This was referenced Feb 5, 2015
Closed
fjl
force-pushed
the
poc8-net-integration
branch
from
February 5, 2015 15:32
9188a58
to
d45911d
Compare
Rebased to develop. |
obscuren
changed the title
[WIP] PoC8 Networking Integration
PoC8 Networking Integration
Feb 5, 2015
- correct sizes for the blocks : sec signature 65, ecies sklen 16, keylength 32 - added allocation to Xor (should be optimized later) - no pubkey reader needed, just do with copy - restructuring now into INITIATE, RESPOND, COMPLETE -> newSession initialises the encryption/authentication layer - crypto identity can be part of client identity, some initialisation when server created
…secp256k1-go panics
- abstract the entire handshake logic in cryptoId.Run() taking session-relevant parameters - changes in peer to accomodate how the encryption layer would be switched on - modify arguments of handshake components - fixed test getting the wrong pubkey but it till crashes on DH in newSession()
- set proper public key serialisation length in pubLen = 64 - reset all sizes and offsets - rename from DER to S (we are not using DER encoding) - add remoteInitRandomPubKey as return value to respondToHandshake - add ImportPublicKey with error return to read both EC golang.elliptic style 65 byte encoding and 64 byte one - add ExportPublicKey falling back to go-ethereum/crypto.FromECDSAPub() chopping off the first byte - add Import - Export tests - all tests pass
…ince this is directly copied in the auth message
- add const length params for handshake messages - add length check to fail early - add debug logs to help interop testing (!ABSOLUTELY SHOULD BE DELETED LATER) - wrap connection read/writes in error check - add cryptoReady channel in peer to signal when secure session setup is finished - wait for cryptoReady or timeout in TestPeersHandshake
I have verified that UPnP and NAT-PMP work against an older version of the MiniUPnP daemon running on pfSense. This code is kind of hard to test automatically.
This deletes the old NAT implementation.
NAT integration has landed. @obscuren please test this with your UPnP-enabled router. |
There are now two deadlines, frameReadTimeout and payloadReadTimeout. The frame timeout is longer and allows for connections that are idle. The message timeout is still short and ensures that we don't get stuck in the middle of a message.
The deflect logic called Disconnect on the peer, but the peer never ran and wouldn't process the disconnect request.
addPeer doesn't allow self connects, but we can avoid opening connections in the first place.
udp.Table was assigned after the readLoop started, so packets could arrive and be processed before the Table was there.
For compatibility with cpp-ethereum
ngtuna
pushed a commit
to ngtuna/tomochain
that referenced
this pull request
Nov 21, 2018
…ify_header_when_insert_block_from_fetcher reduce duplicate verify Header when insert block from fetcher
Zergity
added a commit
to Zergity/go-ethereum
that referenced
this pull request
Apr 28, 2020
Config and params for the next hardfork
maoueh
pushed a commit
to streamingfast/go-ethereum
that referenced
this pull request
Aug 13, 2021
…oEstimateGas from geth (ethereum#276) * fix: add nil check when estimating gas to avoid panic during contract creation * fix: revert DoEstimateGas changes introduced as a temp fix in ethereum#22 * Tweak fudge factor for Geth gas estimation (ethereum#292) * experimenting with gas fudge factor * fix formatting * try using 1m gas constant * Add log statement for the gas estimate * Add more detail to gas estimate log * one more log edit * Try new formula * Bump base gas * Even more base gas * even more * Just 1m? * one more time * Final cleanup * Minor fix * Update internal/ethapi/api.go * don't use cap-1 * Make sure data is not nil Co-authored-by: Karl Floersch <karl@karlfloersch.com> Co-authored-by: Ben Jones <ben@pseudonym.party> Co-authored-by: smartcontracts <kelvinfichter@gmail.com> Co-authored-by: Karl Floersch <karl@karlfloersch.com>
weiihann
pushed a commit
to weiihann/go-ethereum
that referenced
this pull request
Nov 30, 2023
maoueh
pushed a commit
to streamingfast/go-ethereum
that referenced
this pull request
Mar 29, 2024
Postfix duplicate solidity function bindings with 4 byte signature
luanxu-mxc
pushed a commit
to MXCzkEVM/mxc-geth
that referenced
this pull request
Sep 2, 2024
s1na
pushed a commit
to s1na/go-ethereum
that referenced
this pull request
Dec 2, 2024
add standbynodes in GetMasternodesByNumber similar way to subnet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This integrates #275 (Discovery Protocol) and #271 (P2P Crypto) with the p2p stack.
This is still being worked on, submitting for feedback.