| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* accounts/abi, cmd/abigen: support tuple
accounts/abi/bind, cmd/abigen: add objc back
accounts/abi/bind: use byte[24] as function indicator
accounts/abi/bind: resolve struct slice or array
accounts/abi/bind: remove sort logic
accounts: fix issues in abi
* accounts/abi: address comment
|
| |
|
|
|
|
|
|
|
| |
This PR fixes an issue in chain indexer. Currently chain indexer will
validate whether the stored data is canonical by comparing section head
and canonical hash. But the header of the checkpoint may not exist in
the database. We should skip validation for sections below the
checkpoint.
|
|
|
|
|
|
| |
* core: fix chain indexer reorg bug
* core: prevent reverting valid section when reorg happens
|
|\
| |
| | |
cmd, eth, les, param: drop --override.constantinople
|
|/ |
|
|
|
|
|
|
|
|
| |
* cmd/clef, signer: refresh tutorial, fix noticed issues
* cmd/clef, signer: support removing stored keys (delpw + rules)
* cmd/clef: polishes + Geth integration in the tutorial
|
|
|
|
|
|
|
|
|
|
|
|
| |
* accounts/abi/bind: Accept function ptr parameter
They are translated as [24]byte
* Add Java template version
* accounts/abi/bind: fix merge issue
* Fix CI
|
|
|
|
|
|
|
|
|
| |
* accounts/abi: Fix method overwritten by same name methods.
* accounts/abi: Fix method overwritten by same name methods.
* accounts/abi: avoid possible name conflict
Co-authored-by: Guillaume Ballet <gballet@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* all: implement simple checkpoint syncing
cmd, les, node: remove callback mechanism
cmd, node: remove callback definition
les: simplify the registrar
les: expose checkpoint rpc services in the light client
les, light: don't store untrusted receipt
cmd, contracts, les: discard stale checkpoint
cmd, contracts/registrar: loose restriction of registeration
cmd, contracts: add replay-protection
all: off-chain multi-signature contract
params: deploy checkpoint contract for rinkeby
cmd/registrar: add raw signing mode for registrar
cmd/registrar, contracts/registrar, les: fixed messages
* cmd/registrar, contracts/registrar: fix lints
* accounts/abi/bind, les: address comments
* cmd, contracts, les, light, params: minor checkpoint sync cleanups
* cmd, eth, les, light: move checkpoint config to config file
* cmd, eth, les, params: address comments
* eth, les, params: address comments
* cmd: polish up the checkpoint admin CLI
* cmd, contracts, params: deploy new version contract
* cmd/checkpoint-admin: add another flag for clef mode signing
* cmd, contracts, les: rename and regen checkpoint oracle with abigen
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* mobile: fix mobile interface
* mobile, accounts: generate correct java binding
* accounts: fix java type binding
* mobile: support integer slice
* accounts/abi/bind, cmd/abigen: implement java binding tests
|
|
|
|
|
|
| |
* eth: fix sync bloom panic
* eth: delete useless test cases
|
|
|
|
|
|
| |
* whisper: PoW calculations as specified in EIP-627
* Fix unit tests
|
|
|
|
|
|
| |
* cmd/evm: evm input minor fixes, handle prefix, validate length, fixes #18041
* cmd/evm: remove whitespace
|
|
|
|
|
|
|
|
|
|
|
|
| |
* core/state, cmd/geth: streaming json output dump cmd + optional code+storage
* dump: add option to continue even if preimages are missing
* core, evm: lint nits
* cmd: use local flags for dump, omit empty code/storage
* core/state: fix state dump test
|
|
|
|
|
|
|
| |
This function searches for an event+parameters in the ABI and returns it if found.
Co-authored-by: Victor Tran <vu.tran54@gmail.com>
Co-authored-by: Guillaume Ballet <gballet@gmail.com>
|
|
|
|
|
|
| |
This PR updates a comment about the maximum client subscription buffer
to reflect changes made previously, and fixes a test that wouldn't fail
when wantError == true but execution did not return an error.
|
|
|
|
|
|
| |
* graphql: check the integrity of the cdn files
* graphql: omit go-bindata
|
|
|
|
| |
(#19737)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* core: move TxPool reorg and events to background goroutine
This change moves internal queue re-shuffling work in TxPool to a
background goroutine, TxPool.runReorg. Requests to execute runReorg are
accumulated by the new scheduleReorgLoop. The new loop also accumulates
transaction events.
The motivation for this change is making sends to txFeed synchronous
instead of sending them in one-off goroutines launched by 'add' and
'promoteExecutables'. If a downstream consumer of txFeed is blocked for
a while, reorg requests and events will queue up.
* core: remove homestead check in TxPool
This change removes tracking of the homestead block number from TxPool.
The homestead field was used to enforce minimum gas of 53000 for
contract creations after the homestead fork, but not before it. Since
nobody would want configure a non-homestead chain nowadays and contract
creations usually take more than 53000 gas, the extra correctness is
redundant and can be removed.
* core: fixes for review comments
* core: remove BenchmarkPoolInsert
This is useless now because there is no separate code path for
individual transactions anymore.
* core: fix pending counter metric
* core: fix pool tests
* core: dedup txpool announced events, discard stales
* core: reorg tx promotion/demotion to avoid weird pending gaps
|
| |
|
|\
| |
| | |
params: add new bootnodes
|
| | |
|
|\ \
| | |
| | | |
cmd, graphql, node: graphql flag polishes, les integration
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When cancelling the context for a call on a HTTP-based client while the
call is running, the select in requestOp.wait may hit the <-context.Done()
case instead of the <-op.resp case. This doesn't happen often -- our
cancel test hasn't caught this even though it ran thousands of times
on CI since the RPC client was added.
Fixes #19714
|
| | |
| | |
| | |
| | |
| | |
| | | |
* miner: don't update pending state when no transactions are added
* miner: avoid transaction processing when pending block is already full
|
| | | |
|
|\ \ \
| | | |
| | | | |
accounts/abi/bind/backends: use EIP155 on the simulated chain
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
accounts/keystore: fix #19707, avoid keyword as variable name
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
metrics: gather and export threads and goroutines
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
* appveyor: bump to Go 1.12.6
* vendor/vendor.json: govendor fetch github.com/karalabe/usb/^
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* les: reject client connection if it makes too much invalid req
* les: address comments
* les: use uint32
* les: fix variable name
* les: add invalid counter for duplicate invalid req
|
| | |
| | |
| | |
| | | |
renamed NewKeyStoreFromTransactor to NewKeystoreTransactor
fixed godoc
|
|\ \ \
| | | |
| | | | |
les/handler: avoid lookup missing state
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
eth: enforce stricter known limits on idle peers
|
|/ / / |
|
| | | |
|
|/ / |
|
| |
| |
| |
| | |
EIP-695 was written in 2017. Parity and Infura have support for this
method and we should, too.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The dialer limits itself to one attempt every 30s. Apply the same limit
in Server and reject peers which try to connect too eagerly. The check
against the limit happens right after accepting the connection.
Further changes in this commit ensure we pass the Server logger
down to Peer instances, discovery and dialState. Unit test logging now
works in all Server tests.
|
| |
| |
| |
| |
| |
| | |
* eth, les: reject stale request
* les: reuse local head number
|
|\ \
| | |
| | | |
core, ethdb, metrics, p2p: expose various counter metrics for grafana
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Fix file system access for Windows
* Encapsulate file accesses
* Style fixes
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* vendor: remove unused dependencies
These were used by swarm code, which has now migrated to its own repository.
* travis.yml: remove sudo requirement for test builders
These needed sudo to run FUSE tests for swarm.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* p2p/enr: add entries for for IPv4/IPv6 separation
This adds entry types for "ip6", "udp6", "tcp6" keys. The IP type stays
around because removing it would break a lot of code and force everyone
to care about the distinction.
* p2p/enode: track IPv4 and IPv6 address separately
LocalNode predicts the local node's UDP endpoint and updates the record.
This change makes it predict IPv4 and IPv6 endpoints separately since
they can now be in the record at the same time.
* p2p/enode: implement base64 text format
* all: switch to enode.Parse(...)
This allows passing base64-encoded node records to all the places that
previously accepted enode:// URLs. The URL format is still supported.
* cmd/bootnode, p2p: log node URL instead of ENR
...and return the base64 record in NodeInfo.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* p2p/discover: export Ping and RequestENR
These two are useful for checking the status of a node.
* cmd/devp2p: add devp2p debug tool
This is a new tool for debugging p2p issues. It supports a few
basic tasks for now, but many more things can and will be added
in the near future.
devp2p enrdump -- prints ENRs readably
devp2p discv4 ping -- checks if a node is up
devp2p discv4 requestenr -- gets a node's record
devp2p discv4 resolve -- finds a node through the DHT
|
| | |
|
|\ \
| |/
|/| |
vendor: pull in USB fix for docker (alpine/musl)
|
|/ |
|
|
|
|
|
| |
Github has started supporting SECURITY.md to contain a project's security policy. Adding this information to the repository makes it easier to determine how to disclosure a vulnerability as SECURITY.md becomes a standard.
The pgp fingerprint and key is taken from bounty.ethereum.org.
|
|\
| |
| | |
vendor: pull fixed usb library for nocgo builds
|
| | |
|
|/
|
| |
This makes the test work if NetworkId is changed in forks of go-ethereum.
|
|\
| |
| | |
account/usbwallet: abort usb enumeration after failures
|
| | |
|
| |
| |
| |
| |
| |
| | |
* cmd/clef: Enable smartcard hub
* clef: don't error is pcsc is not installed
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
retesteth) (#19631)
* Add retesteth command
* Remove label and insert full version
* mineBlock - break the inner loop when the block is full
* Fixes for touched non-reward accounts, gas limit issues
* Not fail when SendTx has transaction with incorrect RLP
* Fix linter (unnecessary conversion)
* retesteth: add usage string to flag
|
|/ |
|
| |
|
|
|
|
|
|
|
|
| |
* scwallet: don't error when pcsc socket is missing
* review feedback
* more review feedback
|
|\
| |
| | |
accounts/usbwallet: add webusb trezor support
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
TransactionInBlock crashed if json was nil and there was an error
because it tried to access fields `From` and `BlockHash` of the nil object.
|
|/
|
|
|
|
|
|
| |
* core/signer, clef: improve ui-test flow, fix errors in uint handling for eip-712
* core/signer: add fuzzer testcases + crashfixes
* signer: address review concerns, check sign in integer parsing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* accounts/scwallet: Add a switch to enable smartcard support
* accounts: change the meaning of the switch
* disable card support in windows until tested
* only activate account if pcscd socket file is present
* the switch is now the path to the socket file
* accounts/scwallet: holiman's review feedback
* accounts/scwallet: send the path to go-pcsclite
* accounts/scwallet: add default, per platform path
* accounts/scwallet: fix error log warning
* accounts/scwallet: update pcsc lib to latest
* accounts/scwallet: use default path from pcsclite
* scwallet: forgot to change switch name
* cmd: minor style cleanups (error handling first, then happy path)
|
| |
|
| |
|
|
|
| |
les, les/flowcontrol: implement LES/3
|
|
|
|
|
|
|
|
| |
* Update codeowners
* Add karalabe to clique
* remove codeowner for consensus/clique
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
parameters (#19577)
* Removed comment section referring to Cloudflare's bn curve parameters
* Added comment to clarify the nature of the parameters
* Changed value of xi to i+9
|
| |
|
|\
| |
| | |
internal/build: fix Travis and AppVeyor commit string injection
|
|/ |
|
|\
| |
| | |
vendor: update go-duktape to v2.3.0
|
| | |
|
|\ \
| |/
|/| |
accounts/scwallet: Display PUK retry count
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
| |
* core: reinit chain from freezer in batches
* core/rawdb: concurrent database reinit from freezer dump
* core/rawdb: reinit from freezer in sequential order
|
|
|
|
| |
Without this, accounts/keystore fails to build for Darwin with
CGO_ENABLED=0.
|
|\
| |
| | |
core/rawdb: keep genesis in key-value store for full sync too
|
|/ |
|
| |
|
|
|
|
|
|
|
|
| |
* eth, les: reject light client connection is server is not synced
* eth, les: rename function and variables
* les: format
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* p2p: remove direct import of cgo-library
* accounts, rpc: more nocgo alternatives
* rpc: move unix path constant into separate file
* accounts/scwallet: address review concerns, remove copy-pasta
|
|
|
|
|
|
| |
* Added checks for nil pointers in Marshal functions
* Set nil pointer to identity in GT before marshaling
|
| |
|
|
|
|
|
|
| |
* tests: make transaction tests run again, fix #19033
* tests: refactor transaction tests
|
|
|
|
|
|
| |
* log: Do not pad too long values
* log: gofmt
|
| |
|
|
|
| |
* les: avoid fetcher deadlock on requestChn
|
| |
|
| |
|
| |
|
|\
| |
| | |
core/rawdb, eth/downloader: align 64bit atomic fields
|
| | |
|
|/
|
|
|
|
|
|
| |
* build: disable swarm packages
* build: remove allCrossCompiledArchiveFiles; inline allToolsArchiveFiles
* build: get rid of some superfluous comments
|
|\
| |
| | |
cmd, core, eth, les, node: chain freezer on top of db rework
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* core, eth: some fixes for freezer
* vendor, core/rawdb, cmd/geth: add db inspector
* core, cmd/utils: check ancient store path forceily
* cmd/geth, common, core/rawdb: a few fixes
* cmd/geth: support windows file rename and fix rename error
* core: support ancient plugin
* core, cmd: streaming file copy
* cmd, consensus, core, tests: keep genesis in leveldb
* core: write txlookup during ancient init
* core: bump database version
|
| |
| |
| |
| |
| |
| |
| |
| | |
* freezer: disable compression on hashes and difficulties
* core/rawdb: address review concerns
* core/rawdb: address review concerns
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* all: freezer style syncing
core, eth, les, light: clean up freezer relative APIs
core, eth, les, trie, ethdb, light: clean a bit
core, eth, les, light: add unit tests
core, light: rewrite setHead function
core, eth: fix downloader unit tests
core: add receipt chain insertion test
core: use constant instead of hardcoding table name
core: fix rollback
core: fix setHead
core/rawdb: remove canonical block first and then iterate side chain
core/rawdb, ethdb: add hasAncient interface
eth/downloader: calculate ancient limit via cht first
core, eth, ethdb: lots of fixes
* eth/downloader: print ancient disable log only for fast sync
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* freezer: implement split files for data
* freezer: add tests
* freezer: close old head-file when opening next
* freezer: fix truncation
* freezer: more testing around close/open
* rawdb/freezer: address review concerns
* freezer: fix minor review concerns
* freezer: fix remaining concerns + testcases around truncation
* freezer: docs
* freezer: implement multithreading
* core/rawdb: fix freezer nitpicks + change offsets to uint32
* freezer: preopen files, simplify lock constructs
* freezer: delete files during truncation
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* swarm/network: bump network id for 0.4 release
* swarm/network: bump bzz protocol version
* swarm/docs: migration document v0.3 to v0.4
* swarm/storage/feed: gofmt lookup_test.go
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This change implements EIP-868. The UDPv4 transport announces support
for the extension in ping/pong and handles enrRequest messages.
There are two uses of the extension: If a remote node announces support
for EIP-868 in their pong, node revalidation pulls the node's record.
The Resolve method requests the record unconditionally.
|
|
|
|
|
|
|
|
|
|
| |
These changes fix two corner cases related to internal handling of types
in package rlp: The "tail" struct tag can only be applied to the last field.
The check for this was wrong and didn't allow for private fields after the
field with the tag. Unsupported types (e.g. structs containing int) which
implement either the Encoder or Decoder interface but not both
couldn't be encoded/decoded.
Also fixes #19367
|
| |
|
|\
| |
| | |
cmd/faucet: remove Google+ mention from web assets too
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
* core, eth, trie: bloom filter for trie node dedup during fast sync
* eth/downloader, trie: address review comments
* core, ethdb, trie: restart fast-sync bloom construction now and again
* eth/downloader: initialize fast sync bloom on startup
* eth: reenable eth/62 until we properly remove it
|
|
|
|
|
|
|
|
|
|
|
|
| |
* les, light: implement ODR transaction lookup by hash
* les: delete useless file
* internal/ethapi: always use backend to find transaction
* les, eth, internal/ethapi: renamed GetCanonicalTransaction to GetTransaction
* light: add canonical header verification to GetTransaction
|
| |
|
| |
|
|\
| |
| | |
p2p/discover: fix nil-dereference due to race
|
| |
| |
| |
| | |
from constructor
|
| |
| |
| |
| |
| |
| |
| |
| | |
* move error variable to error.go
* Update error.go
Edit "Genesis" to "genesis"
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* core: fix import errors on clique crashes + empty blocks
* cosensus/clique, core: add test for the mirrored state issue
* core: address todo question wrt log count
* core: raise a louder warning for non-clique known blocks
|
|\ \
| | |
| | | |
swarm v0.4-rc1
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
swarm/storage: remove traces for put/get/set (#1389)
* swarm/storage: remove traces for put/get/set
* swarm/storage: remove Has traces
|
| | |
| | |
| | |
| | | |
swarm/storage/localstore: add gc metrics, disable flaky test
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
swarm/storage/localstore: fix broken metric (#1373)
p2p/protocols: count different messages (#1374)
cmd/swarm: disable snapshot create test due to constant flakes (#1376)
swarm/network: remove redundant goroutine (#1377)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
swarm/network: add want delay timer to syncing (#1367)
swarm/network: synchronise peer.close() (#1369)
|
| | |
| | |
| | |
| | |
| | |
| | | |
swarm/api: integrate tags to count chunks being split and stored
swarm/api/http: integrate tags in middleware for HTTP `POST` calls and assert chunks being calculated and counted correctly
swarm: remove deprecated and unused code, add swarm hash to DoneSplit signature, remove calls to the api client from the http package
|
| | | |
|
| | |
| | |
| | |
| | | |
* swarm/chunk: add tags backend to chunk package
|
| | |
| | |
| | |
| | | |
swarm/network: measure how many chunks a node delivers (#1358)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* swarm/shed: remove metrics fields from DB struct
* swarm/schunk: add String methods to modes
* swarm/storage/localstore: add metrics and traces
* swarm/chunk: unknown modes without spaces in String methods
* swarm/storage/localstore: remove bin number from pull subscription metrics
* swarm/storage/localstore: add resetting time metrics and code improvements
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
cmd/swarm/swarm-smoke: improve smoke tests (#1337)
swarm/network: remove dead code (#1339)
swarm/network: remove FetchStore and SyncChunkStore in favor of NetStore (#1342)
|
|/ / |
|
|\ \
| | |
| | | |
cmd/faucet: embed git commit hash/date, disable Google+
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
versions (#19522)
* add-date-to unstable
* fields-insteadof-split
* internal/build: support building with missing git
* docker: add git history back to support commit date in version
* internal/build: use PR commits hashes for PR builds
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* core: import known blocks if they can be inserted as canonical blocks
* core: insert knowns blocks
* core: remove useless
* core: doesn't process head block in reorg function
|
|\ \
| | |
| | | |
eth/downloader: fix header delays during chain dedup
|
| | | |
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* accounts: add note about backing up the keystore
* cmd, accounts: move the printout to accountCreate
* internal, signer: add info when new account is created via rpc
* cmd, internal, signer: split logs
* cmd/geth: make account new output a bit more verbose
|
| |
| |
| |
| |
| |
| | |
* core: add tests for canonicality confusion
* core: delete stale future canon number mappings during reorg to shorter+heavier chain
|
|/
|
|
|
|
|
|
| |
* trie: fix merkle proof
* trie: use hasher instead of allocate keccack256 every time
* trie: add comments
|
| |
|
|\
| |
| | |
p2p/discover: split out discv4 code
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change restructures the internals of p2p/discover to make room for
the discv5 code which will soon be added to this package.
- packet type names now have a "V4" suffix.
- ListenUDP returns *UDPv4 instead of *Table. This technically breaks
the API but the only caller in go-ethereum is package p2p, which uses
a compatible interface and doesn't need changes.
- The internal transport interface is changed to make Table reusable for v5.
- The 'lookup' code moves from table to transport. This required
updating the lookup unit test to use udpTest instead of a custom transport.
|
| | |
|
| |
| |
| |
| |
| |
| | |
This change makes getBalance, getCode, getStorageAt, getProof,
call, getTransactionCount return an error if the block number in
the request doesn't exist. getHeaderByNumber still returns null
for missing headers.
|
| |
| |
| |
| |
| |
| |
| |
| | |
* consensus,core,miner: avoid overhead of creating a new block
* consensus: nitpick dot
* consensus: fix some comment formatting nits
|
|\ \
| | |
| | | |
eth: enforce chain above CHT before accepting txs into the pool
|
| | | |
|
| |/
|/| |
|
|/
|
|
|
|
| |
* typo fix
* change to stores
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* swarm/network: fix data races in TestInitialPeersMsg test
* swarm/network: add Kademlia.Saturation method with lock
* swarm/network: add Hive.Peer method to safely retrieve a bzz peer
* swarm/network: remove duplicate comment
* p2p/testing: prevent goroutine leak in ProtocolTester
* swarm/network: fix data race in newBzzBaseTesterWithAddrs
* swarm/network: fix goroutone leaks in testInitialPeersMsg
* swarm/network: raise number of peer check attempts in testInitialPeersMsg
* swarm/network: use Hive.Peer in Hive.PeerInfo function
* swarm/network: reduce the scope of mutex lock in newBzzBaseTesterWithAddrs
* swarm/storage: disable TestCleanIndex with race detector
|
|\
| |
| | |
cmd/utils, node: switch over default peer count to 50
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* core: lookup txs by block number instead of block hash
Transaction hashes now store a reference to their corresponding
block number as opposed to their hash. In benchmarks this was
shown to reduce storage by over 12 GB.
The main limitation of this approach is that transactions on
non-canonical blocks could never be looked up, however that is
currently not supported.
The database version has been upgraded to version 5 and the
transaction lookup process is backwards-compatible with the
prior two transaction lookup formats prexisting in the
database instance. Tests have been added to ensure this.
* core/rawdb: tiny review nit fixes
|
|\ \
| |/
|/| |
accounts: switch Ledger derivation path to canonical one
|
| | |
|
| |
| |
| |
| | |
This reverts commit 5b30aa59d63fcb7ef8111ec89a6f06509b5ce687.
|
| |
| |
| |
| |
| |
| | |
* eth/downloader: enable unsync-protection for light client
* eth/downloader: fix tests
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* cmd, eth, miner: disable advance sealing if user require
* cmd, console, miner, les, eth: wrap the miner config
* eth: remove todo
* cmd, miner: revert noadvance flag
The reason for this is: if the transaction execution is even longer
than block time, then this kind of transactions is DoS attack.
|
| | |
|
|\ \
| | |
| | | |
trie: approximate the wasted cache metaspace closer
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
eth, les, light: enforce CHT checkpoints on fast-sync too
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
appveyor.yml: Upgraded to Go 1.12.4
|
|/ / / / |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
core, eth, les, light: avoid storing computable receipt metadata
|
| | | | |
|
| | | | |
|
| |/ / |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
fix bad hint lookup bug (#19353)
* swarm/storage/feed/lookup: Add context handling/forwarding
* swarm/storage/feed/lookup: Add test to catch bad hint
* swarm/storage/feed/lookup: Added context cancellation test
|
| |
| |
| | |
This makes geth fails instead of falling back to local keystore, if the command line flag `--signer` is used
|
| |
| |
| |
| |
| |
| | |
* cmd/clef, signer: make fourbytes its own package, break dep cycle
* signer/fourbyte: pull in a sanitized 4byte database
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* swarm/api: fix file descriptor leak in NewTestSwarmServer
Swarm storage (localstore) was not closed. That resulted a
"too many open files" error if `TestClientUploadDownloadRawEncrypted`
was run with `-count 1000`.
* cmd/swarm: speed up StartNewNodes() by parallelization
Reduce cluster startup time from 13s to 7s.
* swarm/api: disable flaky TestClientUploadDownloadRawEncrypted with -race
* swarm/storage: disable flaky TestLDBStoreCollectGarbage (-race)
With race detection turned on the disabled cases often fail with:
"ldbstore_test.go:535: expected surplus chunk 150 to be missing, but got no error"
* cmd/swarm: fix process leak in TestACT and TestSwarmUp
Each test run we start 3 nodes, but we did not terminate them. So
those 3 nodes continued eating up 1.2GB (3.4GB with -race) after test
completion.
6b6c4d1c2754f8dd70172ab58d7ee33cf9058c7d changed how we start clusters
to speed up tests. The changeset merged together test cases
and introduced a global cluster. But "forgot" about termination.
Let's get rid of "global cluster" so we have a clear owner of
termination (some time sacrifice), while leaving subtests to use the
same cluster.
|
| |
| |
| |
| |
| |
| |
| |
| | |
* clef: bundle 4byte db into clef, fix #19048
* clef: add go-generate directive, remove internal abidb parser tool
* cmd/clef: extend go generate to format asset file
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* metrics/prometheus: added prometheus http server and metrics collector
* metrics/prometheus: minor cleanups
* metrics/prometheus: named keys instead name in tag
* metrics/prometheus: minor typo cleanups, sorted report
|
| |
| |
| |
| |
| |
| | |
* clef: update warning-text
* Update cmd/clef/main.go
|
| | |
|
|/ |
|
|
|
|
| |
Update the app download link to the latest version, as requested in #19418
|
| |
|
| |
|
|\
| |
| | |
vendor: fix some vendor config leftover
|
|/ |
|
|
|
|
|
|
| |
* vendor: remove leftover trace
* Upgrade go-libpcsclite to the latest version
|
|\
| |
| | |
appveyor.yml: Upgraded to Go 1.12.3
|
|/ |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* accounts, core, internal, node: Add support for smartcard wallets
* accounts, internal: Changes in response to review
* vendor: pull in missing go-echd library
* accounts/scwallet, console: user friendly card opening
* accounts/scwallet: ordered wallets, tighter events, derivation logs
* accounts, console: frendly card errors, support pin unblock
* accounts/scwallet: fix crypto API change
* accounts/scwallet: rebase and update
* Fix some linter issues
* Remove the direct dependency on libpcsclite
Instead, use a go library that communicates with pcscd over a socket.
Also update the changes introduced by @gravityblast since this PR's
inception
* Temporary fix to the ADBU status call
* fix wallet status update
This is a temporary fix, better checks need to
be performed once the whole process has been
validated.
* Fix key derivation
* Add some documentation
* Update a comment to reflect the workings of the updated system
* Vendor keycard-go/derivationpath
* Formatting fixes
* Add instructions on how to install the card
* Achieve full transaction signature+sending
* PK derivation has to be supported by the card
* Fix linter issues
* Upgrade to keycard app v2.1.1
* Set gballet as codeowner of the smartcard wallet dir
* fix unnecessary condition linter warning
* refuse to overwrite the master key of a previously initialized card
* refresh the account list when initializing the card
* Update the card preparation instructions based on review feedback
* 'sanitize' JSON input
Co-Authored-By: gballet <gballet@gmail.com>
* Apply suggestions from code review
Co-Authored-By: gballet <gballet@gmail.com>
* fix a serialization error
* more review feedback
* More review feedback
* Can now specify the number of empty accounts to derive
* Fix rebase error: include norm package
* Update bip-39 ref and remove ebfe/scard from vendor
* Add missing dependency
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| | |
Co-Authored-By: gballet <gballet@gmail.com>
|
| |
| |
| | |
Co-Authored-By: gballet <gballet@gmail.com>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|