| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
p2p/discover: fix out-of-bounds issue
|
|/ |
|
|
|
|
|
|
| |
* travis.yml: work around Go 1.9.4 issue
* travis: workaround the workaround
|
|
|
|
|
|
| |
Talk about "state" instead of "trie timing", "trie memory" and remove
the overzealous warning when the limit is just reached. Since the time
limit is always reached on slow machines, move the message to info level
so users don't freak out about internal details.
|
|\
| |
| | |
cmd/puppeth: unify discv4 and discv5 ports
|
| | |
|
|/ |
|
|\
| |
| | |
node, rpc: fix linter issues
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks
* p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d
* rpc: add wildcard support for rpcallowedhosts + go fmt
* cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check
* http, rpc, utils: make vhosts into map, address review concerns
* node: change log messages to use geth standard (not sprintf)
* rpc: fix spelling
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* p2p: add DialRatio for configuration of inbound vs. dialed connections
* p2p: add connection flags to PeerInfo
* p2p/netutil: add SameNet, DistinctNetSet
* p2p/discover: improve revalidation and seeding
This changes node revalidation to be periodic instead of on-demand. This
should prevent issues where dead nodes get stuck in closer buckets
because no other node will ever come along to replace them.
Every 5 seconds (on average), the last node in a random bucket is
checked and moved to the front of the bucket if it is still responding.
If revalidation fails, the last node is replaced by an entry of the
'replacement list' containing recently-seen nodes.
Most close buckets are removed because it's very unlikely we'll ever
encounter a node that would fall into any of those buckets.
Table seeding is also improved: we now require a few minutes of table
membership before considering a node as a potential seed node. This
should make it less likely to store short-lived nodes as potential
seeds.
* p2p/discover: fix nits in UDP transport
We would skip sending neighbors replies if there were fewer than
maxNeighbors results and CheckRelayIP returned an error for the last
one. While here, also resolve a TODO about pong reply tokens.
|
|\
| |
| | |
core: force import known but rolled back blocks
|
|/ |
|
| |
|
|\
| |
| | |
build: deprecate zesty, add bionic PPA
|
|/ |
|
|\
| |
| | |
eth: only disable fast sync after success
|
|/ |
|
|\
| |
| | |
eth/downloader: don't require state for ancestor lookups
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
* les, light: fix CHT trie retrievals
* les, light: minor polishes, test remote CHT retrievals
* les, light: deterministic nodeset rlp, bloombits test skeleton
* les: add an event emission to the les bloombits test
* les: drop dead tester code
|
|
|
|
|
|
|
|
|
|
| |
The bulk of the issue was to adapt to the new requirement
that a v6 filter has to either contain a symmertric key or
an asymmetric one.
This commits revert one of the fixes that I made to remove
a linter warning: unexporting NewSentMessage. This is not
really a problem as I have a cleanup in the pipe that will
solve this issue.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove --fast flag and clarify default
`--fast` is no longer a flag it's `--syncmode "fast"` and that is the default
* Remove --cache flag
--cache=512 is no longer required as of 1.8 as the default has been increased
* README: Minor cache amount fix, mention Rinkeby
|
|
|
|
|
|
| |
* whisper: bloom filter refactoring
* whisper: fixed full node
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* p2p/discv5: add query delay, fix node address update logic, retry refresh if empty
* p2p/discv5: remove unnecessary ping before topic query
* p2p/discv5: do not filter local address from topicNodes
* p2p/discv5: remove canQuery()
* p2p/discv5: gofmt
|
|
|
|
|
|
| |
* params: update ropsten bootnodes
* params: fix linter
|
|\
| |
| | |
eth, light: minor light client startup cleanups
|
| | |
|
|\ \
| |/
|/| |
whisper: improve a log message to analyze a travis issue
|
| | |
|
| |
| |
| | |
This commit reduces database I/O by not writing every state trie to disk.
|
|\ \
| | |
| | | |
github: Replaces Wiki link [ci skip]
|
|/ / |
|
| |
| |
| |
| |
| |
| | |
* les: limit number of LES connections
* eth, cmd/utils: light vs max peer configuration logic
|
|/
|
|
| |
set (#15992)
|
|\
| |
| | |
cmd/utils: fix #16006 by not lowering OS ulimit
|
| | |
|
|\ \
| |/
|/| |
params: fix bootnodes gofmt
|
|/ |
|
| |
|
|\
| |
| | |
core, eth, les, light: get rid of redundant methods
|
| | |
|
|\ \
| | |
| | | |
ethdb: reset the batch size too on reset
|
|/ / |
|
|/
|
|
|
|
| |
* leveldb: Update leveldb to 211f780 (poolfix)
* core, ethdb: reuse database batches
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#15870)
* whisper: message format changed
* whisper: tests fixed
* whisper: style fixes
* whisper: fixed names, fixed failing tests
* whisper: fix merge issue in #15870
Occured while using the github online merge tool. Lesson learned.
* whisper: fix a gofmt error for #15870
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* ethapi: add personal.signTransaction
* ethapi: refactor to minimize duplicate code
* ethapi: make nonce,gas,gasPrice obligatory in signTransaction
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* whisper: fixes warnings from the code linter
* whisper: more non-API-breaking changes
The remaining lint errors are because of auto-generated
files and one is because an exported function has a non-
exported return type. Changing this would break the API,
and will be part of another commit for easier reversal.
* whisper: un-export NewSentMessage to please the linter
This is an API change, which is why it's in its own commit.
This change was initiated after the linter complained that
the returned type wasn't exported. I chose to un-export
the function instead of exporting the type, because that
type is an implementation detail that I would like to
change in the near future to make the code more
readable and with an increased coverage.
* whisper: update gencodec output after upgrading it to new lint standards
|
|
|
|
|
|
|
|
|
|
|
|
| |
* whisper: fix empty topic
* whisper: add check to matchSingleTopic
* whisper: add tests
* whisper: fix gosimple
* whisper: added lastTopicByte const
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* rpc: Support specifying HTTP client in RPC dialing
Adds a minimal interface that captures http.Client and adds a new method
rpc.DialHTTPClient that takes a client using that interface. The existing
rpc.DialHTTP method is then alternatively implemented by using the new
rpc.DialHTTPClient method provided with a standard *http.Client.
* rpc: fix minor doc typos
|
|\
| |
| | |
accounts/abi/bind: support event filtering in abigen
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* dashboard: footer, deep state update
* dashboard: resolve asset path
* dashboard: prevent state update on every reconnection
* dashboard: fix linter issue
* dashboard, cmd: minor UI fix, include commit hash
* dashboard: gitCommit renamed to commit
* dashboard: move the geth version to the right, make commit optional
* dashboard: memory, traffic and CPU on footer
* dashboard: fix merge
* dashboard: CPU, diskIO on footer
* dashboard: rename variables, use group declaration
* dashboard: docs
|
| |
| |
| |
| |
| |
| | |
* core, light: fix chain indexer bug
* light: add new CHT
|
| | |
|
|\ \
| | |
| | | |
p2p/discv5: logs info about discv5 node info at bind time
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* consensus/ethash: add maxEpoch constant
* consensus/ethash: improve cache/dataset handling
There are two fixes in this commit:
Unmap the memory through a finalizer like the libethash wrapper did. The
release logic was incorrect and freed the memory while it was being
used, leading to crashes like in #14495 or #14943.
Track caches and datasets using simplelru instead of reinventing LRU
logic. This should make it easier to see whether it's correct.
* consensus/ethash: restore 'future item' logic in lru
* consensus/ethash: use mmap even in test mode
This makes it possible to shorten the time taken for TestCacheFileEvict.
* consensus/ethash: shuffle func calc*Size comments around
* consensus/ethash: ensure future cache/dataset is in the lru cache
* consensus/ethash: add issue link to the new test
* consensus/ethash: fix vet
* consensus/ethash: fix test
* consensus: tiny issue + nitpick fixes
|
|\ \
| | |
| | | |
core: sorted reorg insertion order for proper head header updating
|
| |/ |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit affects p2p/discv5 "topic discovery" by running it on
the same UDP port where the old discovery works. This is realized
by giving an "unhandled" packet channel to the old v4 discovery
packet handler where all invalid packets are sent. These packets
are then processed by v5. v5 packets are always invalid when
interpreted by v4 and vice versa. This is ensured by adding one
to the first byte of the packet hash in v5 packets.
DiscoveryV5Bootnodes is also changed to point to new bootnodes
that are implementing the changed packet format with modified
hash. Existing and new v5 bootnodes are both running on different
ports ATM.
|
|\
| |
| | |
core/vm: Fix comment typo
|
|/ |
|
|
|
|
|
|
|
|
| |
This commit:
- Adds a --msgfile option to read the message to sign from a file
instead of command line argument.
- Adds a unit test for signing subcommands.
- Removes some weird whitespace in the code.
|
|
|
|
|
| |
(#15889)
This reverts commit 0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* dashboard: footer, deep state update
* dashboard: resolve asset path
* dashboard: remove bundle.js
* dashboard: prevent state update on every reconnection
* dashboard: fix linter issue
* dashboard, cmd: minor UI fix, include commit hash
* remove geth binary
* dashboard: gitCommit renamed to commit
* dashboard: move the geth version to the right, make commit optional
* dashboard: commit limited to 7 characters
* dashboard: limit commit length on client side
* dashboard: run go generate
|
|\
| |
| | |
ethstats: Fix ethstats reporting while syncing
|
| | |
|
|\ \
| | |
| | | |
cmd/geth: user friendly light miner error
|
| | | |
|
|/ /
| |
| | |
This is the main feature of v6.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* common/fdlimit: Move fdlimit files to separate package
When go-ethereum is used as a library the calling program need to set
the FD limit.
This commit extract fdlimit files to a separate package so it can be
used outside of go-ethereum.
* common/fdlimit: Remove FdLimit from functions signature
* common/fdlimit: Rename fdlimit functions
|
| |
| |
| | |
This works around travis-ci/travis-ci#8703.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
transactions (#15828)
The first should address a long term issue where we recommend a gas
price that is greater than that required for 50% of transactions in
recent blocks, which can lead to gas price inflation as people take
this figure and add a margin to it, resulting in a positive feedback
loop.
|
| | |
|
| | |
|
| |
| |
| | |
Fixes #15777 because null is now allowed for hexutil.Bytes.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* core/types, core/vm, eth, tests: regenerate gencodec files
* Makefile: update devtools target
Install protoc-gen-go and print reminders about npm, solc and protoc.
Also switch to github.com/kevinburke/go-bindata because it's more
maintained.
* contracts/ens: update contracts and regenerate with solidity v0.4.19
The newer upstream version of the FIFSRegistrar contract doesn't set the
resolver anymore. The resolver is now deployed separately.
* contracts/release: regenerate with solidity v0.4.19
* contracts/chequebook: fix fallback and regenerate with solidity v0.4.19
The contract didn't have a fallback function, payments would be rejected
when compiled with newer solidity. References to 'mortal' and 'owned'
use the local file system so we can compile without network access.
* p2p/discv5: regenerate with recent stringer
* cmd/faucet: regenerate
* dashboard: regenerate
* eth/tracers: regenerate
* internal/jsre/deps: regenerate
* dashboard: avoid sed -i because it's not portable
* accounts/usbwallet/internal/trezor: fix go generate warnings
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* go-ethereum/dashboard: update assets.go
Use current rsc/go-bindata instead of jteeuwen/go-bindata, to get
balanced tree in very long string concatenations.
This works around problems in current Go distributions.
For golang/go#23222.
* dashboard: run last two go:generate steps for linter
|
| |
| |
| |
| | |
Also raise traceLimit once again and print the VM
error and output on failure.
|
| | |
|
| |
| |
| |
| |
| |
| | |
* cmd/utils/flags.go: Applying a String len guard for the gitCommit param of the NewApp()
* cmd/utils: remove redundant clause in if condition
|
|\ \
| | |
| | | |
all: switch gas limits from big.Int to uint64
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| | |
This reverts commits 85a1eda59e (#15792) and c495bca4ad (#15787)
because they introduce database writes during tracing.
|
| |
| |
| |
| |
| |
| | |
* eth: uncaptialize tracer preimage error message
* eth: improve very important error message
|
| |
| |
| | |
All inputs are saved into history, including 'invalid' inputs.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| | |
This avoids setting CC for the go run invocation, which fails on go1.10.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| | |
Fixes #15744
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
* accounts/abi: handle named ouputs prefixed with underscores
* accounts/abi: handle collinding outputs for struct unpacks
* accounts: handle purely underscore output names
|
| |
| |
| |
| | |
Initial implementation of ENR according to ethereum/EIPs#778
|
| | |
|
| | |
|
| |
| |
| | |
Fixes #15740
|
|\ \
| | |
| | | |
accounts/abi refactor
|
| | |
| | |
| | |
| | | |
+ lookup by id
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
+ Reworked Method Unpack tests into more readable components
+ Added Method Unpack into slice test
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
+ adding missing comments
+ small cleanups which won't significantly change
function body.
+ unify Method receiver name
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
+ The event slice unpacker doesn't correctly extract element from the
slice. The indexed arguments are not ignored as they should be
(the data offset should not include the indexed arguments).
+ The `Elem()` call in the slice unpack doesn't work.
The Slice related tests fails because of that.
+ the check in the loop are suboptimal and have been extracted
out of the loop.
+ extracted common code from event and method tupleUnpack
|
| | |
| | |
| | |
| | |
| | | |
Event.tupleUnpack doesn't handle correctly Indexed arguments,
hence it can't unpack an event with indexed arguments.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* accounts, consensus, core, eth: make chain maker consensus agnostic
* consensus, core: move CalcDifficulty to Engine interface
* consensus: add docs for calcDifficulty function
* consensus, core: minor comment fixups
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* dashboard: minor design change
* dashboard: Flow integration, message API
* dashboard: minor polishes, exclude misspell linter
|
|\ \ \
| | | |
| | | | |
cmd/puppeth: fix faucet 502 error due to non-exposed HTTP port
|
|/ / / |
|
|/ /
| |
| |
| | |
New Whisper-level message introduced (PoW requirement),
corresponding logic added, plus some tests.
|
|\ \
| | |
| | | |
accounts/abi: include fixed array size in offset for dynamic type
|
| | | |
|
| |\ \ |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
cmd/faucet: fix removal of Twitter zlib compression
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* cmd/utils: Add check on hard limit, skip test if below target
* cmd/utils: Cross platform compatible fd limit test
* cmd/utils: Remove syscall.Rlimit in test
* cmd/utils: comment fd utility method
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* swarm/api: url scheme bzz-hash to get hashes of swarm content (#15238)
Update URI to support bzz-hash scheme and handle such HTTP requests by
responding with hash of the content as a text/plain response.
* swarm/api: return hash of the content for bzz-hash:// requests
* swarm/api: revert "return hash of the content for bzz-hash:// requests"
Return hashes of the content that would be returned by bzz-raw
request.
* swarm/api/http: handle error in TestBzzGetPath
* swarm/api: remove extra blank line in comment
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* cmd, core, eth/tracers: support fancier js tracing
* eth, internal/web3ext: rework trace API, concurrency, chain tracing
* eth/tracers: add three more JavaScript tracers
* eth/tracers, vendor: swap ottovm to duktape for tracing
* core, eth, internal: finalize call tracer and needed extras
* eth, tests: prestate tracer, call test suite, rewinding
* vendor: fix windows builds for tracer js engine
* vendor: temporary duktape fix
* eth/tracers: fix up 4byte and evmdis tracer
* vendor: pull in latest duktape with my upstream fixes
* eth: fix some review comments
* eth: rename rewind to reexec to make it more obvious
* core/vm: terminate tracing using defers
|
|\ \ \ \
| | | | |
| | | | | |
params: add Rinkeby bootnode from Akasha
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ethkey is a new tool that serves as a command line interface to
the basic key management functionalities of geth. It currently
supports:
- generating keyfiles
- inspecting keyfiles (print public and private key)
- signing messages
- verifying signed messages
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This change inlines the logic of bytesAreProper at its sole
callsite, ABI.Unpack, and applies the multiple-of-32 test only in
the case of unpacking methods. Event data is not required to be a
multiple of 32 bytes long.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Changed the communication protocol for ordinary message,
according to EIP 627. Messages will be send in bundles, i.e.
array of messages will be sent instead of single message.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | | |
Fixes #15617
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* crypto: ensure that VerifySignature rejects malleable signatures
It already rejected them when using libsecp256k1, make sure the nocgo
version does the same thing.
* crypto: simplify check
* crypto: fix build
|
| | | | |
|
| |_|/
|/| |
| | |
| | |
| | | |
Fixes #15672 by creating the datadir when creating the
console. This prevents failing to save the history if no datadir
exists.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* swarm/api: url scheme bzz-list for getting list of files from manifest
Replace query parameter list=true for listing all files contained
in a swarm manifest with a new URL scheme bzz-list.
* swarm: replaace bzzr and bzzi schemes with bzz-raw and bzz-immutable
New URI Shemes are added and old ones are deprecated, but not removed.
Old Schemes bzzr and bzzi are functional for backward compatibility.
* swarm/api: completely remove bzzr and bzzi schemes
Remove old schemes in favour of bzz-raw and
bzz-immutable.
* swarm/api: revert "completely remove bzzr and bzzi schemes"
Keep bzzr and bzzi schemes for backward compatibility. At least
until 0.3 swarm release.
|
|\ \ \
| |_|/
|/| | |
contracts/release: do not print error log if les backend has no peers
|
| | | |
|
|\ \ \
| | | |
| | | | |
core/vm: Remove snapshot param from Interpreter.Run()
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The tx data field is called "input" in returned objects and "data" in
argument objects. Make it so "input" can be used, but bail if both
are set.
|
|\ \ \ \
| | | | |
| | | | | |
accounts/keystore: Improved error message
|
|/ / / /
| | | |
| | | |
| | | | |
* Fix for #15668
|
|\ \ \ \
| | | | |
| | | | | |
p2p/discover: fix leaked goroutine in data expiration
|
| | |/ /
| |/| | |
|
|\ \ \ \
| |/ / /
|/| | | |
cmd/geth: add support for geth --rinkeby attach
|
|/ / / |
|
| | |
| | |
| | |
| | | |
This adds the inverse to DecompressPubkey and improves a few minor
details in crypto/secp256k1.
|
|\ \ \
| | | |
| | | | |
crypto: Fix comment typo
|
|/ / / |
|
|/ /
| |
| |
| | |
Fixes #15408
Fixes #14432
|
|\ \
| | |
| | | |
consensus/ethash: relax requirements when determining future-blocks
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
This commit adds mocker functionality to p2p/simulations. A
mocker allows to starting/stopping of nodes via the HTTP API.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit adds a TOML configuration option to swarm. It reuses
the TOML configuration structure used in geth with swarm
customized items.
The commit:
* Adds a "dumpconfig" command to the swarm executable which
allows printing the (default) configuration to stdout, which
then can be redirected to a file in order to customize it.
* Adds a "--config <file>" option to the swarm executable which will
allow to load a configuration file in TOML format from the
specified location in order to initialize the Swarm node The
override priorities are like follows: environment variables
override command line arguments override config file override
default config.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
With this change,
key, err := crypto.HexToECDSA("000000...")
returns nil key and an error instead of a non-nil key with nil X
and Y inside. Issue found by @guidovranken.
|
| | |
| | |
| | | |
Issue found by @guidovranken
|
| | |
| | |
| | |
| | |
| | | |
Now that the AES salt has been moved to the payload, padding must
be adjusted to hide it, lest an attacker guesses that the packet
uses symmetric encryption.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|/ /
| |
| |
| | |
As per EIP-627, the salt for symmetric encryption is now
part of the payload. This commit does that.
|
| |
| |
| |
| |
| | |
Also remove installation steps for fuse and golang.org/x/tools/cmd/cover
because they're not required anymore.
|
| | |
|
| |
| |
| | |
Fixes #15196
|
| |
| |
| |
| |
| |
| |
| | |
We need those operations for p2p/enr.
Also upgrade github.com/btcsuite/btcd/btcec to the latest version
and improve BenchmarkSha3. The benchmark printed extra output
that confused tools like benchstat and ignored N.
|
| | |
|
| |
| |
| |
| |
| | |
Also unexport isHex, hasHexPrefix because IsHexAddress is the only caller.
Fixes #15550
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Generator in the current lib uses -2 as the y point when doing
ScalarBaseMult, this makes it so that points/signatures generated
from libs like py_ecc don't match/validate as pretty much all
other libs (including libsnark) have (1, 2) as the standard
generator.
This does not affect consensus as the generator is never used in
the VM, points are always explicitly defined and there is not
ScalarBaseMult op - it only makes it so that doing "import
github.com/ethereum/go-ethereum/crypto/bn256" doesn't generate
bad points in userland tools.
|
| |
| |
| |
| |
| | |
Updated use of Parallel and added some subtests to help isolate
them. Increased timeout in RequestHeadersByNumber so it
doesn't time out and causes other tests to break.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
p2p/simulations: introduce dialBan
- Refactor simulations/network connection getters to support
avoiding simultaneous dials between two peers If two peers dial
simultaneously, the connection will be dropped to help avoid
that, we essentially lock the connection object with a
timestamp which serves as a ban on dialing for a period of time
(dialBanTimeout).
- The connection getter InitConn can be wrapped and passed to the
nodes via adapters.NodeConfig#Reachable field and then used by
the respective services when they initiate connections. This
massively stablise the emerging connectivity when running with
hundreds of nodes bootstrapping a network.
p2p: add Inbound public method to p2p.Peer
p2p/simulations: Add server id to logs to support debugging
in-memory network simulations when multiple peers are logging.
p2p: SetupConn now returns error. The dialer checks the error and
only calls resolve if the actual TCP dial fails.
|
| | |
|
|\ \
| | |
| | | |
common: fix hex utils to handle 1 byte address conversions
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* core/vm: track 63/64 call gas off stack
Gas calculations in gasCall* relayed the available gas for calls by
replacing it on the stack. This lead to inconsistent traces, which we
papered over by copying the pre-execution stack in trace mode.
This change relays available gas using a temporary variable, off the
stack, and allows removing the weird copy.
* core/vm: remove stackCopy
* core/vm: pop call gas into pool
* core/vm: to -> addr
|
| | |
|
|\ \
| | |
| | | |
cmd/utils: bootstrap nodes in config file were not respected
|
| | |
| | |
| | |
| | | |
Signed-off-by: Maximilian Meister <mmeister@suse.de>
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* trie: make fullnode children hash calculation concurrently
* trie: thread out only on topmost fullnode
* trie: clean up full node children hash calculation
* trie: minor code fixups
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Disallow --lightserv in light mode
* Reformatted
* cmd/utils: reduce nesting levels a bit
|
|\ \
| | |
| | | |
core/state: copy trie too, not just content
|
| | | |
|
|\ \ \
| | | |
| | | | |
swarm/api: bug fix exact match for manifest
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
accounts/keystore: change modtime for test case files to be bigger than 1sec.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* cmd, consensus, eth: split ethash related config to it own
* eth, consensus: minor polish
* eth, consenus, console: compress pow testing config field to single one
* consensus, eth: document pow mode
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
internal/ethapi: avoid recreating JavaScript tracer wrappers
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* console: fix typo in comment
* contracts/release: fix typo in comment
* core: fix typo in comment
* eth: fix typo in comment
* miner: fix typo in comment
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* cmd: fix typo in comment
* cmd/puppeth: tiny comment fixup
|
|\ \ \ \
| | | | |
| | | | | |
cmd/puppeth: new version as presented at devcon3
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
build: fix typo in comment
|
|/ / / / / |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
les: clean up tx journal file after testing
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(#15512)
* eth, internal: Implement using trie diffs
* eth, internal: Changes in response to review
* eth: More fixes to getModifiedAccountsBy*
* eth: minor polishes on error capitalization
|
|\ \ \ \ \
| | | | | |
| | | | | | |
accounts/keystore: Ignore initial trigger of rescan-event
|
|/ / / / / |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
accounts: fix two races in the account manager
|
| | | | | |
|