Martin Holst Swende
2af565b18b
eth/tracers/testing: lint nitpicks
2021-11-04 18:56:41 +01:00
Sina Mahmoodi
de953f5714
eth/tracers: minor comment fix
2021-11-04 17:42:35 +01:00
Martin Holst Swende
4e2de461d7
eth/tracers, core/vm: rename vm.Tracer to vm.EVMLogger for clarity
2021-11-03 20:58:50 +01:00
Martin Holst Swende
2a69a3707e
eth/tracers: make jstracer non-exported, avoid cast
2021-11-03 20:54:48 +01:00
Sina Mahmoodi
91a7c094b5
eth/tracers: more renamings
2021-11-03 17:26:10 +01:00
Sina Mahmoodi
89bac76e0c
renamings
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-11-03 17:03:55 +01:00
Sina Mahmoodi
60f5734e26
eth/tracers: add native noop tracer
2021-11-02 19:52:46 +01:00
Sina Mahmoodi
c242c82e07
eth/tracers: impl stop
2021-11-02 17:16:57 +01:00
Sina Mahmoodi
a9c2051d3f
eth/tracers: minor fix
2021-11-02 16:49:25 +01:00
Martin Holst Swende
360e3ba352
eth/tracers: move tracecall tests to subpackage
2021-10-28 11:47:53 +02:00
Martin Holst Swende
5db19c5922
eth/tracers: rework the model a bit
2021-10-26 14:51:26 +02:00
Sina Mahmoodi
0946623acc
eth/tracers: add license
2021-10-26 12:27:26 +02:00
Sina Mahmoodi
18c4c17ba5
eth/tracers: clean-up and comments
2021-10-13 17:14:06 +02:00
Sina Mahmoodi
a2b0d3d48e
eth/tracers: make callFrame private
2021-10-13 16:59:05 +02:00
Sina Mahmoodi
aff90d3f88
eth/tracers: rm extra make
2021-10-13 15:07:39 +02:00
Sina Mahmoodi
d9371f300f
eth/tracers: rm extra make
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-10-13 15:06:31 +02:00
Sina Mahmoodi
ca5427ade0
eth/tracers: fix
2021-10-13 15:03:38 +02:00
Sina Mahmoodi
7b105349c5
eth/tracers: test native call tracer
2021-10-13 14:57:05 +02:00
Sina Mahmoodi
75c6affab4
eth/tracers: fix benchTracer
2021-10-13 13:32:37 +02:00
Sina Mahmoodi
4ea0d15966
eth/tracers: fix
2021-10-12 12:52:11 +02:00
Sina Mahmoodi
bf165bba68
eth/tracers: minor fix
2021-10-12 12:48:23 +02:00
Sina Mahmoodi
340c773201
eth/tracers: fix call tracer json result
2021-10-12 12:43:34 +02:00
Sina Mahmoodi
c9c1dc9d5c
eth/tracers: add native call tracer
2021-10-11 18:20:45 +02:00
Sina Mahmoodi
57c993b6cb
eth/tracers: add GetResult to tracer interface
2021-10-11 17:13:54 +02:00
Sina Mahmoodi
af67e1def6
eth/tracers: add basic native loader
2021-10-11 17:09:41 +02:00
Sina Mahmoodi
48496e0675
internal/ethapi: use correct signer when serving old blocks ( #23683 )
...
Fixes #23681
After the fix I get the address 0x6d6d02e83c4ced98204e20126acf27e9d87b8af2 for the
tx mentioned in the ticket, which agrees with etherscan.
2021-10-07 15:51:14 +02:00
Martin Holst Swende
307156cc46
eth/api: add rpc method to obtain which states are accessible ( #23646 )
...
This PR adds a method to the debug namespace, to iterate over the blocks and check where we have the roots on disk.
2021-10-05 08:13:00 +02:00
Ferran Borreguero
0dbb3b1601
eth/protocols/eth: replace array with counter in txn broadcaster ( #23656 )
2021-10-04 16:10:51 +02:00
Miro
5a0e1d88f4
eth/filters: fix TestPendingLogsSubscription ( #23619 )
...
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.
2021-10-04 14:09:51 +02:00
Sina Mahmoodi
b522f5e091
eth/tracers: fix callTracer fault handling ( #23667 )
...
* eth/tracers: fix calltracer fault handling
* eth/tracers: fix calltracer indentation
2021-10-01 13:03:24 +02:00
Martin Holst Swende
3a6fe69f23
eth/protocols/snap, trie: better error-handling ( #23657 )
2021-09-29 15:19:40 +02:00
Ferran Borreguero
a541fbea18
eth/protocols/eth: simplify peer known block/txs caches ( #23649 )
...
* Simplify peer known block/txns cache
* Address minor changes
* Add more minor comments
* Minor changes from review
2021-09-28 13:44:07 +02:00
Martin Holst Swende
3531ca2246
eth/tracers: avoid unsyncronized mutations on trie database ( #23632 )
...
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.
2021-09-28 13:06:19 +02:00
Sina Mahmoodi
783e97ef1f
core/rawdb: avoid unnecessary receipt processing for log filtering ( #23147 )
...
* 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
2021-09-28 12:54:49 +02:00
Martin Holst Swende
ab2caaee11
eth/tracers: implement debug.intermediateRoots ( #23594 )
...
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).
2021-09-28 12:53:11 +02:00
Guillaume Ballet
443afc975c
core/state: move state account to core/types + abstracted "write account to trie" ( #23567 )
...
* 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>
2021-09-28 10:48:07 +02:00
Sina Mahmoodi
ac7baeab57
eth/tracers: re-write of 4byte tracer using enter/exit ( #23622 )
...
* eth/tracers: add re-write of 4byte tracer using enter/exit
* eth/tracers: fix 4byte indent
2021-09-27 18:44:16 +02:00
Sina Mahmoodi
401354976b
core,eth: call frame tracing ( #23087 )
...
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.
2021-09-17 09:31:22 +02:00
Martin Holst Swende
7ada89d4e6
eth/tracers: abort evm execution when trace is aborted ( #23580 )
2021-09-16 13:45:16 +02:00
Marius van der Wijden
b8d7c662cd
core, rpc: disable memory output by default in traces ( #23558 )
...
* 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>
2021-09-13 18:59:52 +02:00
Péter Szilágyi
9e17648d8c
les: duplicate downloader and fetcher to allow progressive refactoring
2021-09-10 11:11:59 +03:00
Martin Holst Swende
62ad17fb00
Revert "eth, internal/ethapi: make RPC block miner field show block sealer correctly ( #23312 )" ( #23466 )
...
This reverts commit 57feabea66 .
2021-08-26 08:35:37 +02:00
Péter Szilágyi
0db0b27754
Revert "Revert "eth: drop eth/65, the last non-reqid protocol version" ( #23426 )" ( #23456 )
...
This reverts commit c368f728c1 .
2021-08-24 21:52:58 +03:00
Felföldi Zsolt
f38abc55f1
eth/gasprice: feeHistory improvements ( #23422 )
...
* 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
2021-08-23 23:50:24 +02:00
Péter Szilágyi
c368f728c1
Revert "eth: drop eth/65, the last non-reqid protocol version" ( #23426 )
2021-08-20 15:14:21 +03:00
chuwt
5566e5d152
eth/downloader: fix typo in comment ( #23413 )
2021-08-18 13:03:41 +03:00
陈佳
57feabea66
eth, internal/ethapi: make RPC block miner field show block sealer correctly ( #23312 )
...
Makes the RPC block return the POA sealer for clique blocks on the 'miner' field (was previously zeroes)
2021-08-17 18:55:18 +02:00
Péter Szilágyi
fd604becbb
Merge pull request #23120 from karalabe/drop-eth-65
...
eth: drop eth/65, the last non-reqid protocol version
2021-08-13 11:52:47 +03:00
gary rong
6d175460df
cmd, core, eth, miner: deprecate miner.gastarget flag ( #23213 )
2021-08-10 11:28:33 +03:00
Martin Holst Swende
0658712f65
core: check if sender is EOA ( #23303 )
...
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.
2021-08-07 19:38:18 +02:00