s7v7nislands
5d21a7c7c8
cmd/ethkey: use accounts.TextHash ( #25069 )
2022-10-28 09:03:21 +08:00
Rajaram Gaunker
978790b0b6
core/types: remove unused field 'td' in Block ( #25010 )
2022-10-28 09:03:21 +08:00
Seungbae.yu
d3f26984b5
accounts: increase parseURL test coverage ( #25033 )
...
accounts/url: add test logic what check null string to parseURL()
2022-10-28 09:03:21 +08:00
Martin Holst Swende
7bfcc7ef31
p2p/discover: fix panicky test ( #25038 )
2022-10-28 09:03:21 +08:00
Sina Mahmoodi
a429a50be5
eth/filters: fix getLogs for pending block ( #24949 )
...
* eth/filters: fix pending for getLogs
* add pending method to test backend
* fix block range validation
2022-10-28 09:03:21 +08:00
aaronbuchwald
ea52f6c440
trie: move locking into trieDB insert method ( #25030 )
...
Move locking into trieDB insert function
2022-10-28 09:03:21 +08:00
Paweł Bylica
2904f20dfc
core/vm: optimize jumpdest analysis ( #23500 )
...
core/vm: optimize PUSH opcode discrimination
2022-10-28 09:03:21 +08:00
Boqin Qin(秦 伯钦)
0e17e627ee
eth/filters: use buffered channel to avoid goroutine leak ( #24928 )
2022-10-28 09:03:21 +08:00
Marius van der Wijden
f863682795
core: use less memory during reorgs ( #24616 )
...
This PR significantly reduces the memory consumption of a long reorg
2022-10-28 09:03:21 +08:00
Martin Holst Swende
a1fc0d8144
eth/filters: change filter block to be by-ref ( #26054 )
...
This PR changes the block field in the filter to be a pointer, to disambiguate between empty hash and no hash
2022-10-27 15:25:01 +02:00
Martin Holst Swende
9d795d0836
core/vm: use optimized bigint ( #26021 )
2022-10-27 10:39:01 +02:00
Jakub Freebit
4984c4e63f
build: make ios work again ( #26052 )
2022-10-27 11:23:11 +03:00
Guillaume Ballet
0c66d971e7
accounts/scwallet: fix keycard data signing error ( #25331 )
...
accounts/scwallet: fix keycard data signing
2022-10-27 10:06:28 +02:00
Péter Szilágyi
7496ad8edc
Merge pull request #26049 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.19.2
2022-10-27 11:01:12 +03:00
Marius Kjærstad
1d0c4e27bf
build: upgrade -dlgo version to Go 1.19.2
2022-10-26 14:49:12 +02:00
Péter Szilágyi
c4a662176e
core, eth: for types with accurate size calcs, return uint64, not float ( #26046 )
...
* core, eth: for types with accurate size calcs, return uint64, not float
* core/types: proper tx size tests
* core/types: extend tx size test with decoded sizes, fix error
* core/txpool: fix linter
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-26 15:23:07 +03:00
Péter Szilágyi
5bed24dd77
Merge pull request #26044 from karalabe/rename-typed-tx-files
...
core/types: rename tx files to group them better together
2022-10-26 13:51:46 +03:00
Péter Szilágyi
68ba845bb5
core/types: rename tx files to group them better together
2022-10-26 13:30:51 +03:00
Péter Szilágyi
a2b7481b78
Merge pull request #26038 from karalabe/split-txpool
...
all: refactor txpool into it's own package in prep for 4844
2022-10-24 20:30:33 +03:00
Péter Szilágyi
a6dda03644
all: refactor txpool into it's own package in prep for 4844
2022-10-24 16:35:53 +03:00
Martin Holst Swende
5f70f9fd37
eth/tracers: simplify test framework ( #25973 )
...
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2022-10-21 17:55:15 +02:00
Delweng
a404195c7b
eth/tracers: fix the issue prestate missing existing contract state ( #25996 )
...
The prestate tracer did not report accounts that existed at a given address prior to a contract being created at that address.
Signed-off-by: Delweng <delweng@gmail.com>
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2022-10-21 11:48:53 +02:00
Seungbae.yu
d9229e5c6b
common: increase StorageSize test coverage ( #25188 )
2022-10-21 14:28:18 +08:00
Andre Patta
4ce9680212
cmd/utils: fix applying bootstrap nodes from config file ( #25174 )
2022-10-21 14:27:34 +08:00
aaronbuchwald
8c90dc946a
core/rawdb: simplify TestDiskSeek to use memorydb ( #25182 )
2022-10-21 14:23:12 +08:00
Sina Mahmoodi
0ca5dd727a
eth/tracers: optimize goja buffer conversion ( #25156 )
...
This changes the []byte <-> Uint8Array conversion to use an
ArrayBuffer, avoiding inefficient copying of the slice data in Goja.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-10-21 14:03:42 +08:00
rjl493456442
aedd5aaba1
eth, miner: retrieve mining state from live database ( #25139 )
...
* miner: retrieve mining state from live database
* eth/catalyst: ignore stale fcu events from cl
2022-10-21 14:01:52 +08:00
Zachinquarantine
660f920cde
README,rpc: remove mention of "shh" RPC API ( #25137 )
2022-10-21 12:42:41 +08:00
aaronbuchwald
fafc29f922
trie: fix size accounting in cleaner ( #25007 )
...
Decrease children size instead of dirties size when marking dirties as cleaned up in trie cleaner
2022-10-21 12:42:18 +08:00
Sina Mahmoodi
ce9dae2517
internal/ethapi: remove SignAndSendTransaction ( #25111 )
2022-10-21 12:41:13 +08:00
Martin Holst Swende
237c31870e
tests/fuzzers/rlp: avoid very large input ( #25109 )
...
The oss-fuzz engine crashes due to stack overflow decoding a large nested
structure into a interface{}. This PR limits the size of the input data, so
should avoid such crashes.
2022-10-21 12:40:50 +08:00
s7v7nislands
9b9a1b677d
internal/ethapi, accounts/abi/backends: use error defined in core ( #26012 )
...
Co-authored-by: seven <seven@nodereal.io>
2022-10-20 12:56:12 +02:00
rjl493456442
b9ba6f6e4d
core/rawdb: open meta file in read only mode ( #26009 )
2022-10-19 21:15:43 +02:00
s7v7nislands
d86fe26f67
core/rawdb: refactor db key prefix ( #26000 )
...
Co-authored-by: seven <seven@nodereal.io>
2022-10-19 09:53:09 +02:00
Martin Holst Swende
6069d8294e
cmd/utils: enable snapshot generation in import-mode ( #25990 )
...
This PR fixes a regression causing snapshots not to be generated in "geth --import" mode. It also fixes the geth export command to be truly readonly, and adds a new test for geth export.
2022-10-19 08:20:39 +02:00
Martin Holst Swende
15b7e0b254
common/math, tests/fuzzers: use big.Int clone ( #26006 )
...
* common/math, tests/fuzzers: use big.Int clone
* common/math: license
2022-10-18 15:42:16 +02:00
Martin Holst Swende
fb75f11e87
Revert "go.mod: upgrade github.com/dop251/goja" ( #25975 )
...
Revert "go.mod: upgrade github.com/dop251/goja (#25955 )"
This reverts commit 9207e348f0d3c2bd2b65f6c52b20a37de76350ae.
2022-10-12 20:08:36 +02:00
Delweng
c776a98c83
eth/tracers: fix the issue of panic in prestate with diffmode ( #25957 )
...
In some cases, inner contract creation may not be successful, and an inner contract was not created. This PR fixes a crash that could occur when doing tracing in such situations.
2022-10-12 12:50:01 +02:00
ucwong
9207e348f0
go.mod: upgrade github.com/dop251/goja ( #25955 )
...
This upgrade pulls in a fix to handling of 'continue' in loops.
2022-10-12 12:03:45 +02:00
lmittmann
5b1a04b9c7
eth/filters, ethclient/gethclient: add fullTx option to pending tx filter ( #25186 )
...
This PR adds a way to subscribe to the _full_ pending transactions, as opposed to just being notified about hashes.
In use cases where client subscribes to newPendingTransactions and gets txhashes only to then request the actual transaction, the caller can now shortcut that flow and obtain the transactions directly.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-10-12 11:54:52 +02:00
Jens W
010f47f76a
eth/protocols/eth: fix typo in log message ( #25969 )
2022-10-12 11:15:19 +02:00
Martin Holst Swende
eaf095ccd4
accounts/keystore: faster tests ( #25827 )
...
This PR removes some optimistic tests -- a'la "do something,
wait a while, and hope it has trickled through and continue" -- and
instead uses some introspection to ensure that prerequisites are met.
2022-10-12 10:53:01 +02:00
Sina Mahmoodi
3630cafb34
node: drop support for static & trusted node list files ( #25610 )
...
This changes the node setup to ignore datadir files
static-nodes.json
trusted-nodes.json
When these files are present, it an error will be printed to the log.
2022-10-12 10:50:12 +02:00
Felix Lange
e257b3add7
tests/fuzzers/modexp: gofmt ( #25972 )
2022-10-12 10:39:21 +02:00
Martin Holst Swende
bed3b10086
common/math: optimized modexp (+ fuzzer) ( #25525 )
...
This adds a
* core/vm, tests: optimized modexp + fuzzer
* common/math: modexp optimizations
* core/vm: special case base 1 in big modexp
* core/vm: disable fastexp
2022-10-12 10:34:52 +02:00
Marius van der Wijden
a007ab786c
core/types: add more context around ErrInvalidChainID ( #25367 )
...
This changes the error message for mismatching chain ID to show
the given and expected value. Callers expecting this error must be
changed to use errors.Is.
2022-10-12 10:27:39 +02:00
Martin Holst Swende
28d076d37e
core/rawdb: provide more info on 'gap in the chain' error ( #25938 )
2022-10-12 09:35:09 +02:00
Paul
1c737e8b6d
cmd/geth, core: fix typo in comment ( #25954 )
...
* fix typo on comment
* typo "can't accept"
2022-10-11 09:37:33 +02:00
Martin Holst Swende
5a02b2d6d0
all: fix spelling mistakes ( #25961 )
2022-10-11 09:37:00 +02:00
jin
7eafbec741
accounts/usbwallet: support Ledger Nano S Plus and FTS ( #25933 )
...
* usbwallet support Ledger Nano S Plus
* accounts/usbwallet: add definitions + ref to ledger docs
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-11 09:31:32 +02:00