- 15 Feb, 2022 7 commits
-
-
Péter Szilágyi authored
trie: implement NodeBlob API for trie iterator
-
rjl493456442 authored
This PR adds an addtional API called `NewBatchWithSize` for db batcher. It turns out that leveldb batch memory allocation is super inefficient. The main reason is the allocation step of leveldb Batch is too small when the batch size is large. It can take a few second to build a leveldb batch with 100MB size. Luckily, leveldb also offers another API called MakeBatch which can pre-allocate the memory area. So if the approximate size of batch is known in advance, this API can be used in this case. It's needed in new state scheme PR which needs to commit a batch of trie nodes in a single batch. Implement the feature in a seperate PR.
-
Martin Holst Swende authored
-
Martin Holst Swende authored
-
zhiqiangxu authored
* add CallContractAtHash to ethclient * add docstring and test * optimize test * ethclient: nits Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
b1ackd0t authored
* Fixes #24368 Signed-off-by:
0x6f736f646f <blackd0t@protonmail.com> * Update internal/ethapi/api.go Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Gary Rong authored
This functionality is needed in new path-based storage scheme, but can be implemented in a seperate PR though. When an account is deleted, then all the storage slots should be nuked out from the disk as well. In hash-based storage scheme they are still left in the disk but in new scheme, they will be iterated and marked as deleted. But why the NodeBlob API is needed in this scenario? Because when the node is marked deleted, the previous value is also required to be recorded to construct the reverse diff.
-
- 14 Feb, 2022 2 commits
-
-
zhiqiangxu authored
dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to restrict its scope to the if clause.
-
Martin Holst Swende authored
-
- 08 Feb, 2022 2 commits
-
-
Felix Lange authored
This upgrade resolves a build issue on Android 7+ and removes a build warning on macOS >= 12.0.
-
Martin Holst Swende authored
Co-authored-by:
specerxi <xhxpecer@gmail.com>
-
- 07 Feb, 2022 1 commit
-
-
rjl493456442 authored
-
- 04 Feb, 2022 1 commit
-
-
Martin Holst Swende authored
This also contains some changes to the protocol handler to make the tests pass.
-
- 02 Feb, 2022 3 commits
-
-
aaronbuchwald authored
-
Péter Szilágyi authored
cmd: auto-enable beacon APIs if TTD is defined
-
Péter Szilágyi authored
-
- 01 Feb, 2022 3 commits
-
-
komika authored
This change makes it so WaitMined no longer logs an error when the receipt is unavailable. It also changes the simulated backend to return NotFound for unavailable receipts, just like ethclient does.
-
Sina Mahmoodi authored
* eth/tracers: clean-up tracer collection * Rm test for dropped tracer
-
Brandon Harden authored
I believe the sentence is attempting to explain that the URL is "[used] by upper layers to define a sorting order over all wallets from multiple backends."
-
- 31 Jan, 2022 4 commits
-
-
rjl493456442 authored
* all: seperate catalyst package * eth/catalyst: moved some methods, added docs * eth/catalyst, les/catalyst: add method docs * core, eth, les, miner: move common function to beacon package * eth/catalyst: goimported * cmd/utils, miner/stress/beacon: naming nitpicks Co-authored-by:
Marius van der Wijden <m.vanderwijden@live.de> Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
ligi authored
* build: append GOARM to arm lint download URL otherwise it fails with: downloading from https://github.com/golangci/golangci-lint/releases/download/v1.42.0/golangci-lint-1.42.0-linux-arm.tar.gz ci.go:347: download error: status 404 * build: increase timeout for lint Otherwise it times out on a pi * Increase timeout even further saw longer build times
-
Sina Mahmoodi authored
* eth/tracers: add initial native prestate tracer * fix balance hex * handle prestate for tx from and to * drop created contract from prestate * fix sender balance * use switch instead Co-authored-by:
Martin Holst Swende <martin@swende.se> * minor fix * lookup create2 account * mv code around a bit * check stackLen for create2 * fix transfer tx for js prestate tracer * fix create2 addr * track extcodehash in js prestate tracer Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
ligi authored
-
- 28 Jan, 2022 1 commit
-
-
Paweł Bylica authored
* tests: add ipsilon/evm-benchmarks git submodule * tests: plug-in evm-benchmarks
-
- 27 Jan, 2022 3 commits
-
-
Valentin Trinqué authored
When talking to an HTTP2 server, there are situations where it needs to "rewind" the Request.Body. To allow this, we have to set up the Request.GetBody function to return a brand new instance of the body. If not set, we can end up with the following error: http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error See this commit for more information: https://sourcegraph.com/github.com/golang/net/-/commit/cffdcf672aee934982473246bc7e9a8ba446aa9b?visible=2
-
Sina Mahmoodi authored
-
Sina Mahmoodi authored
-
- 25 Jan, 2022 4 commits
-
-
Martin Holst Swende authored
-
Marius van der Wijden authored
-
Péter Szilágyi authored
core/rawdb: do prefixed lookup first
-
Martin Holst Swende authored
-
- 24 Jan, 2022 7 commits
-
-
zhiqiangxu authored
Since len(nonIndexedArgs) is definitely 0 in this context, the code can be simplified.
-
Péter Szilágyi authored
cmd/utils: fix regression placing dev mode datadir readonly
-
Péter Szilágyi authored
-
rjl493456442 authored
* eth, miner: remove duplicated code * eth/catalyst: remove unneeded code * miner: keep update pending state even the Merge is happened * eth, miner: rebase * miner: fix tests * eth, miner: address comments from marius * miner: use empty zero randomness for pending blocks after the merge * eth/catalyst: gofmt * miner: add warning log for state recovery * miner: ignore uncles for post-merge blocks Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
ucwong authored
-
David Cai authored
-
Denver authored
Because there is no `fullTx` parameter at function signatures and uncle apis does not return txs also, those lines are un-necessary.
-
- 21 Jan, 2022 2 commits
-
-
Darioush Jalali authored
* trie/proof: edge case for VerifyRangeProof * more consistency with other tests in the file * trie: fix test todo Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Shihao Xia authored
* fix blocking and non-blocking issues * core: revert change in blockchain.go Co-authored-by:
Martin Holst Swende <martin@swende.se>
-