Commit Graph

13712 Commits

Author SHA1 Message Date
Felix Lange 9ad6094a5d build/bot: try installing gcc-multilib in linux container 2022-09-29 00:51:51 +02:00
Felix Lange c591acb765 build/bot: remove linux upload 2022-09-29 00:40:04 +02:00
Felix Lange 60c6c4a3f3 build/bot: remove signify 2022-09-29 00:37:40 +02:00
Felix Lange 3421d0773f build: ensure GOMODCACHE is not set in dependency download for deb 2022-09-29 00:34:33 +02:00
Felix Lange 51b6733055 define HOME in ppa container 2022-09-29 00:24:34 +02:00
Felix Lange 33be0abec2 build/bot: configure go cache 2022-09-29 00:16:31 +02:00
Felix Lange 12a1050704 fix go image 2022-09-29 00:04:14 +02:00
Felix Lange 78f1dfd7d8 build/bot: add linux build 2022-09-28 23:43:59 +02:00
Felix Lange ea0e822b00 print env 2022-09-28 23:14:52 +02:00
Felix Lange e5f655382b build: print PPA key 2022-09-28 23:10:55 +02:00
Felix Lange 1daea03078 build/bot: fix git error 2022-09-28 22:54:59 +02:00
Felix Lange 71d3198eb6 add git in ppa image 2022-09-28 22:49:26 +02:00
Felix Lange c2720b2cb8 update ppa script 2022-09-28 22:48:10 +02:00
Felix Lange d169b9726d fix entrypoint 2022-09-28 22:41:02 +02:00
Felix Lange a38ee8a8d3 print hi 2022-09-28 22:36:56 +02:00
Felix Lange b0eb3f6496 print env 2022-09-28 22:35:10 +02:00
Felix Lange 7b0b4ad2e6 build: add BUILD_ prefix 2022-09-28 22:26:57 +02:00
Felix Lange 040edfec20 build: dump env 2022-09-28 21:35:51 +02:00
ligi 7e7868666e Add apt update to make apt install work 2022-09-28 21:35:32 +02:00
Felix Lange 84964eba55 build/bot: docker PPA buildd 2022-09-28 21:35:32 +02:00
Felix Lange 9b19c6b4be build/bot: remove gpg config 2022-09-28 21:35:32 +02:00
Felix Lange 625b48ad73 build/bot: configure gpg for non-interactive use 2022-09-28 21:35:32 +02:00
Felix Lange 48cc4a2f54 build/bot: dump PPA key 2022-09-28 21:35:32 +02:00
Felix Lange 8b913e5e01 build/bot: disable PPA upload 2022-09-28 21:35:31 +02:00
Felix Lange 29685bbe91 internal/build: parse buildbot tag better 2022-09-28 21:35:31 +02:00
Felix Lange c78ea526b8 internal/build: clarify term refspec 2022-09-28 21:35:31 +02:00
Felix Lange 23dd9668d2 build: enable archives on buildbot-testing 2022-09-28 21:35:31 +02:00
Felix Lange 3603225f82 internal/build: add buildbot env 2022-09-28 21:35:31 +02:00
Janko Simonovic 1a63a76fcc
ethclient/gethclient: fix bugs in override object encoding (#25616)
This fixes a bug where contract code would be overridden to empty code ("0x")
when the Code field of OverrideAccount was left nil. The change also cleans up
the encoding of overrides to only send necessary fields, and improves documentation.

Fixes #25615

Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-27 19:23:53 +02:00
Martin Holst Swende 80cc34ac3c
eth/downloader: make flakey test less flakey (#25879) 2022-09-27 15:49:52 +02:00
zhiqiangxu 13e6985929
eth: return state error via GetEVM (#25876)
* make vmError more useful

* fix for review

* Update api.go

* revert calling site

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2022-09-27 13:16:54 +02:00
rjl493456442 bff84a99fe
cmd, core, eth, les, light: track deleted nodes (#25757)
* cmd, core, eth, les, light: track deleted nodes

* trie: add docs

* trie: address comments

* cmd, core, eth, les, light, trie: trie id

* trie: add tests

* trie, core: updates

* trie: fix imports

* trie: add utility print-method for nodeset

* trie: import err

* trie: fix go vet warnings

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-27 10:01:02 +02:00
Sina Mahmoodi fc3e6d0162
eth/tracers: use gencodec for native tracers (#25637)
The call tracer and prestate tracer store data JSON-encoded in memory. In order to support alternative encodings (specifically RLP), it's better to keep data a native format during tracing. This PR does marshalling at the end, using gencodec.

OBS! 
This PR changes the call tracer result slightly:

-  Order of type and value fields are changed (should not matter). 
-  Output fields are completely omitted when they're empty (no more output: "0x"). Previously, this was only _sometimes_ omitted (e.g. when call ended in a non-revert error) and otherwise 0x when the output was actually empty.
2022-09-26 18:35:44 +02:00
meowsbits 3ec6fe6101
tests: fix state test error checking (#25702)
Some tests define an 'expectException' error but the tests runner does not check for conditions where this test value is filled (error expected) but in which no error is returned by the test runner.

An example of this scenario is GeneralStateTests/stTransactionTest/HighGasPrice.json, which expects a 'TR_NoFunds' error, but the test runner does not return any error.

Signed-off-by: meows <b5c6@protonmail.com>
2022-09-26 16:00:56 +02:00
jwasinger 7227c9ef07
cmd/geth: make dumpgenesis load genesis datadir if it exists (#25135)
`geth dumpgenesis` currently does not respect the content of the data directory. Instead, it outputs the genesis block created by command-line flags. This PR fixes it to read the genesis from the database, if the database already exists.


Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-26 13:55:18 +02:00
Leon c55c56cf0a
core/vm: better handle error on eip activation check (#25131)
* core/vm: correct logic for eip check of NewEVMInterpreter

* refactor
2022-09-26 13:20:38 +02:00
zhiqiangxu b32d20324e
eth/downloader, les/downloader: fix subtle flaw in queue delivery (#25861)
* fix queue.deliver

* les/downloader: fix queue.deliver

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-26 12:33:21 +02:00
Martin Holst Swende e004e7d256
core: fix datarace in txpool, fixes #25870 and #25869 (#25872)
core: fix datarace in txpool pendingnoce, fixes #25870
2022-09-26 11:34:15 +02:00
omahs a3c6d1d9b6
cmd/faucet: fix readme typos (#25867)
* Fix: typos

Fix: typos

* Undo change

Undo change
2022-09-26 11:30:50 +02:00
Sina Mahmoodi 4dc212d4f1
eth/tracers: pad memory slice on OOB case (#25213)
* eth/tracers: pad memory slice on oob case

* eth/tracers/js: fix testfailure due to err msg capitalization

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-26 09:56:45 +02:00
zhiqiangxu 367e60549a
core/types: improve accuracy of header.Size() (#25859)
The header.Size() method did not take the basefee into account.
2022-09-26 09:10:39 +02:00
Zachinquarantine 15b4a4bf2e
cmd/puppeth, cmd/utils: finalize removal of gasTarget flag (#24370)
This PR fully removes the --miner.gastarget flag, as previously it was only hidden from the geth --help command, but could still be used.
2022-09-23 22:32:10 +02:00
rjl493456442 3da42f85d9
all: clean up the configs for pruner and snapshotter (#22396)
This PR cleans up the configurations for pruner and snapshotter by passing a config struct.

And also, this PR disables the snapshot background generation if the chain is opened in "read-only" mode. The read-only mode is necessary in some cases. For example, we have a list of commands to open the etheruem node in "read-only" mode, like export-chain. In these cases, the snapshot background generation is non expected and should be banned explicitly.
2022-09-23 20:20:36 +02:00
Zachinquarantine 9b35f3f5b1
tests, les, eth: remove mentions of deprecated Morden testnet (#23570)
* remove morden

* Update commons.go

* Update handler.go

* empty commit to make appveyor happy
2022-09-23 19:33:15 +02:00
Sebastian Stammler e87806727d
cmd/abigen: change --exc to exclude by type name (#22620)
The abigen exclusion pattern, previously on the form "path:type", now supports wildcards. Examples "*:type" to exclude a named type in all files, or "/path/to/foo.sol:*" all types in foo.sol.
2022-09-23 19:04:02 +02:00
Felix Lange 65f3c1b46f
internal/version: use gitCommit injection in version handling code (#25851)
This changes the CI build to store the git commit and date into package
internal/version instead of package main. Doing this essentially merges our
two ways of tracking the go-ethereum version into a single place, achieving
two objectives:

- Bad block reports, which use version.Info(), will now have the git commit
  information even when geth is built in an environment such as
  launchpad.net where git access is unavailable.

- For geth builds created by `go build ./cmd/geth` (i.e. not using `go run
  build/ci.go install`), git information stored by the go tool is now used
  in the p2p node name as well as in `geth version` and `geth
  version-check`.
2022-09-23 14:08:25 +02:00
Boqin@MetaSecureLabs e6d4aedb8c
p2p: add channel buffers to avoid goroutine leaks in tests (#24929) 2022-09-23 10:51:12 +02:00
Sina Mahmoodi 220bdd3277
.github: add CL client to issue template (#25814) 2022-09-23 10:25:16 +02:00
Martin Holst Swende fb500d12d5
eth/protocols/snap: make log messages more clear that sync is ongoing (#25837)
* eth/protocols/snap: make log messages more clear that sync is ongoing

* Update sync.go

Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-23 11:11:41 +03:00
Delweng 6215b92523
cmd/utils: make --authrpc.jwtsecret a DirectoryFlag (#25849)
Signed-off-by: Delweng <delweng@gmail.com>
2022-09-22 15:43:47 +02:00