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
Sina Mahmoodi
c55a903e77
cmd/geth: load native tracers
2021-11-02 16:45:03 +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
edb1937cf7
core: improve shutdown synchronization in BlockChain ( #22853 )
...
This change removes misuses of sync.WaitGroup in BlockChain. Before this change,
block insertion modified the WaitGroup counter in order to ensure that Stop would wait
for pending operations to complete. This was racy and could even lead to crashes
if Stop was called at an unfortunate time. The issue is resolved by adding a specialized
'closable' mutex, which prevents chain modifications after stopping while also
synchronizing writers with each other.
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-10-07 15:47:50 +02:00
aaronbuchwald
4e599ee469
core/types: copy tx recipient address ( #23376 )
...
This resolves a long-standing TODO. The point of copying the address is
to ensure that all data referenced by types.Transaction is independent of the
data passed into the constructor.
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-10-06 13:12:52 +02:00
Felix Lange
57ff2dee06
go.mod: upgrade github.com/karalable/usb ( #23684 )
...
This update includes fixes for the *BSD build and go module vendoring.
2021-10-05 18:33:53 +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
hsyodyssey
12f971fb2d
core/state: fix typo in comment ( #23665 )
2021-10-04 12:16:50 +02:00
Péter Szilágyi
01fdca53e1
Merge pull request #23677 from karalabe/canon-rlp-fetcher
...
internal/ethapi: make header/block rlp retrieval canonical
2021-10-03 17:45:12 +03:00
Péter Szilágyi
5240725041
internal/ethapi: make header/block rlp retrieval canonical
2021-10-03 16:47:51 +03: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
Péter Szilágyi
a47b8cf6f5
Merge pull request #23670 from karalabe/get-header-rlp
...
internal/ethapi: support retrieving header RLPs too
2021-10-01 12:14:32 +03:00
Péter Szilágyi
07a5bc1b0b
internal/ethapi: support retrieving header RLPs too
2021-10-01 11:47:29 +03:00
Ikko Ashimine
f2491c5ed7
core: fix typo in comment ( #23658 )
2021-09-29 21:28:47 +02:00
Felix Lange
06082fe267
params: begin v1.10.10 release cycle
2021-09-29 20:00:31 +02:00
Felix Lange
eae3b1946a
params: release go-ethereum v1.10.9 stable
2021-09-29 19:59:41 +02:00
Martin Holst Swende
3a6fe69f23
eth/protocols/snap, trie: better error-handling ( #23657 )
2021-09-29 15:19:40 +02:00
Martin Holst Swende
42bc1944a1
graphql: add storage slots to access list ( #23650 )
...
Fixes #23640
2021-09-29 00:28:17 +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
Yihau Chen
92c5d104d0
accounts/abi/bind: check event signature before parsing ( #23230 )
...
* accounts/abi/bind: check event signature before parsing
* remove redundant break line
2021-09-28 12:56:03 +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
Zachinquarantine
12674d493e
cmd/puppeth: remove shh from Dockerfile ( #23634 )
2021-09-27 18:42:48 +02:00
Jordan Krage
51ececb64e
rpc: set pong read deadline ( #23556 )
...
This PR adds a 30s timeout for the remote part to answer a ping message, thus detecting (silent) disconnnects
2021-09-27 16:31:45 +02:00
gary rong
57a3fab8a7
accounts/abi: fix resolving single struct argument ( #23573 )
2021-09-22 10:18:18 +02:00
Sina Mahmoodi
ca9bce9a45
rpc: set scheme for ws and ipc conns to the server ( #23615 )
...
* rpc: set scheme for ws and ipc conns to the server
* rpc: review fixes
* rpc: bugfix
* rpc: empty default scheme
2021-09-21 22:26:35 +02:00
Marius van der Wijden
b61ef24cce
consensus/clique: prevent 0 len extradata from panicing ( #23538 )
...
Closes #23522
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-09-21 10:46:08 +02:00
Thad Guidry
d8211c7ec7
console: add note about typing exit to exit ( #23602 )
...
* add explicit note about typing exit in console
* Add note about typing exit as alternative
2021-09-21 11:19:46 +03:00