- Oct 14, 2021
-
-
Ferran Borreguero authored
-
- Oct 13, 2021
-
-
jwasinger authored
-
Iskander (Alex) Sharipov authored
This doesn't fix all go-critic warnings, just the most serious ones. Co-authored-by:
Felix Lange <fjl@twurst.com> Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- Oct 12, 2021
-
-
noam-alchemy authored
* eth,rpc: allow for flag configured timeouts for eth_call * lint: account for package-local import order * cr: rename `rpc.calltimeout` to `rpc.evmtimeout`
-
- Oct 11, 2021
-
-
Martin Holst Swende authored
This removes some code: - The clique engine calculated the snapshot twice when verifying headers/blocks. - The method GetBlockHashesFromHash in Header/Block/Lightchain was only used by tests. It is now removed from the API. - The method GetTdByHash internally looked up the number before calling GetTd(hash, num). In many cases, callers already had the number, and used this method just because it has a shorter name. I have removed the method to make the API surface smaller.
-
Marius van der Wijden authored
* params: changed CatalystBlock to TerminalTotalDifficulty * eth/catalyst: comment out unused code
-
- Oct 10, 2021
-
-
aaronbuchwald authored
Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- Oct 08, 2021
-
-
Marius van der Wijden authored
This fixes a data race on worker.current by moving the call to StopPrefetcher into the main loop. The commit also contains fixes for two other races in unit tests of unrelated packages.
-
Martin Holst Swende authored
This ensures that all miner goroutines have exited before stopping the blockchain. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- Oct 07, 2021
-
-
Sina Mahmoodi authored
Fixes #23681 After the fix I get the address 0x6d6d02e83c4ced98204e20126acf27e9d87b8af2 for the tx mentioned in the ticket, which agrees with etherscan.
-
- Oct 05, 2021
-
-
Martin Holst Swende authored
This PR adds a method to the debug namespace, to iterate over the blocks and check where we have the roots on disk.
-
- Oct 04, 2021
-
-
Ferran Borreguero authored
-
Miro authored
The test did not synchronize with per-case goroutines, and thus didn't notice that some tests were just hanging. This change adds missing synchronization and fixes the broken tests.
-
- Oct 01, 2021
-
-
Sina Mahmoodi authored
* eth/tracers: fix calltracer fault handling * eth/tracers: fix calltracer indentation
-
- Sep 29, 2021
-
-
Martin Holst Swende authored
-
- Sep 28, 2021
-
-
Ferran Borreguero authored
* Simplify peer known block/txns cache * Address minor changes * Add more minor comments * Minor changes from review
-
Martin Holst Swende authored
This PR fixes an issue in traceChain, where the statedb Commit operation was performed asynchronously with dereference-operations agains the underlying trie.Database instance. Due to how the reference counting works within the trie database (where parent count is recursively updated when new parents are added), doing dereferencing in the middle of Commit can cause the refcount to become wrong, leading to an inconsistent state. This was fixed by doing Commit/Deref from the same routine.
-
Sina Mahmoodi authored
* core/types: rm extranous check in test * core/rawdb: add lightweight types for block logs * core/rawdb,eth: use lightweight accessor for log filtering * core/rawdb: add bench for decoding into rlpLogs
-
Martin Holst Swende authored
This PR implements a new debug method, which I've talked briefly about to some other client developers. It allows the caller to obtain the intermediate state roots for a block (which might be either a canon block or a 'bad' block).
-
Guillaume Ballet authored
* core/state: abstracted "write account to trie" method * fix appveyor build * Apply suggestions from code review Co-authored-by:
Martin Holst Swende <martin@swende.se> * review feedback * core/state/accounts: move Account to core/types * core/types: rename Account -> StateAccount * core/state: restore EncodeRLP for stateObject * core/types: add the missing file * more review feedback * more review feedback Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- Sep 27, 2021
-
-
Sina Mahmoodi authored
* eth/tracers: add re-write of 4byte tracer using enter/exit * eth/tracers: fix 4byte indent
-
- Sep 20, 2021
-
-
Ferran Borreguero authored
-
- Sep 17, 2021
-
-
Sina Mahmoodi authored
This change introduces 2 new optional methods; `enter()` and `exit()` for js tracers, and makes `step()` optiona. The two new methods are invoked when entering and exiting a call frame (but not invoked for the outermost scope, which has it's own methods). Currently these are the data fields passed to each of them: enter: type (opcode), from, to, input, gas, value exit: output, gasUsed, error The PR also comes with a re-write of the callTracer. As a backup we keep the previous tracing script under the name `callTracerLegacy`. Behaviour of both tracers are equivalent for the most part, although there are some small differences (improvements), where the new tracer is more correct / has more information.
-
- Sep 16, 2021
-
-
Martin Holst Swende authored
-
- Sep 13, 2021
-
-
Marius van der Wijden authored
* core: cmd: invert disableMemory * core: fix missed inversion * cmd/evm: preserve Flags but change default value * Apply suggestions from code review Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- Sep 10, 2021
-
-
Péter Szilágyi authored
-
- Aug 31, 2021
-
-
Ikko Ashimine authored
Constuct -> Construct
-
- Aug 26, 2021
-
-
Martin Holst Swende authored
Revert "eth, internal/ethapi: make RPC block miner field show block sealer correctly (#23312)" (#23466) This reverts commit 57feabea.
-
- Aug 24, 2021
-
-
Péter Szilágyi authored
This reverts commit c368f728.
-
Jaynti Kanani authored
-
- Aug 23, 2021
-
-
Zsolt Felföldi authored
* eth/gasprice: cache feeHistory results * eth/gasprice: changed feeHistory block count limitation * eth/gasprice: do not use embedded struct in blockFees * eth/gasprice: fee processing logic cleanup * eth/gasprice: purge feeHistory cache at chain reorgs
-
- Aug 20, 2021
-
-
Péter Szilágyi authored
-
- Aug 18, 2021
-
-
chuwt authored
-
- Aug 17, 2021
-
-
陈佳 authored
Makes the RPC block return the POA sealer for clique blocks on the 'miner' field (was previously zeroes)
-
- Aug 10, 2021
-
-
Gary Rong authored
-
- Aug 07, 2021
-
-
Martin Holst Swende authored
This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices.
-
- Jul 29, 2021
-
-
Denis Ermolin authored
-
- Jul 27, 2021
-
-
lightclient authored
* internal/ethapi/api: use hexutil.uint for blockCount parameter instead of int for feeHistory * return hex value for oldestBlock instead of number * return uint64 from oracle.resolveBlockRange * eth/gasprice: fixed test Co-authored-by:
Zsolt Felfoldi <zsfelfoldi@gmail.com>
-
- Jul 22, 2021
-
-
Marius van der Wijden authored
When processing a transaction with London fork rules, EIP-1559 mandates checking that the sender must have sufficient balance to cover gas * gasFeeCap. In the EIP's pseudocode, this check happens after the value transferred by the transaction has already been deducted. However, in go-ethereum, the balance has not yet been updated when the check happens, and therefore needs to be added explicitly. Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- Jul 15, 2021
-
-
aaronbuchwald authored
-