-
Notifications
You must be signed in to change notification settings - Fork 167
Merge/foundation release/1.10.26 #510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
21b557f
b62c2b9
f67dd63
3d75380
9002f71
10d5f56
310ca59
88aedee
84be258
0b2ba69
d0dc349
3b41be6
972007a
8f61fc8
69568c5
d2be567
550af1e
7497d46
d390462
701eeb8
85e469f
937ea49
a32e69a
99bbb33
27600a5
211dbb7
e5eb32a
bf0a7d7
7aa2b85
2d01869
ad28143
429275b
191325a
1f6cc75
57109a9
097e0ef
eddf072
ea4f934
3835269
b2c886b
d42b9b2
c051c24
2a9508c
273a566
7d9c444
194f06f
9363a2a
95daecd
6e1a0dd
c67278b
98e2d49
c984765
475e1e4
a66e4ce
1eec2d8
d7c936d
8272cb8
3588f61
098e8f0
2373279
03efbe9
1306be8
51fc880
f686f2f
4a4a307
75da3ca
88307b1
fbef1fb
e11ae45
9d3899a
b909e85
c1a614e
dcc3ef2
77496f0
6604b71
f443631
7ce7c47
12f3472
86fc9cc
5e3c673
14b5a21
79d4135
0c9830a
4f4ab7f
44581a0
012aafa
2e13b82
cfed3ef
cc2883f
ca284eb
2ba4218
5150515
460091f
ca5dd04
7c9fc18
fda1e51
cc9b4ee
fb25c30
abc814b
20bbcab
6e567fa
df01b67
5161c8d
4b2cf83
8675b2a
3539eb3
e8d7f23
be95e71
7273876
4d572a8
0e79bc9
c4b7520
94ee05f
2697490
6b9997e
f195f35
633eae8
9a48b9c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Developer helper | ||
on: pull_request | ||
env: | ||
# GENERATE_EXCEPTIONS are exceptions made to the 'go generate' command. | ||
# These patterns are matched (negatively) against 'go list' output. | ||
# | ||
# - trezor: Ignore generating trezor package based on this comment: | ||
# https://github.com/ethereum/go-ethereum/blob/master/accounts/usbwallet/trezor/trezor.go#L21-L43 | ||
GENERATE_EXCEPTIONS: | | ||
trezor | ||
jobs: | ||
go-generate-check: | ||
name: Check if "go generate" has been run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
id: go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16 | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install deps | ||
id: install-deps | ||
run: | | ||
SOLC_BIN=solc-linux-amd64-v0.6.0+commit.26b70077 | ||
curl -OL https://binaries.soliditylang.org/linux-amd64/$SOLC_BIN | ||
sudo mv $SOLC_BIN /usr/bin/solc | ||
sudo chmod +x /usr/bin/solc | ||
|
||
shell: bash | ||
- name: Install devtools | ||
id: install-devtools | ||
run: make devtools | ||
- name: Run go:generate | ||
id: go-generate | ||
run: | | ||
list="$(go list ./...)" | ||
for pattern in ${GENERATE_EXCEPTIONS[@]}; do | ||
list="$(grep -v "$pattern" <<< "$list")" | ||
done | ||
go generate "$list" | ||
- name: Revert custom generated files modifications before comparing them | ||
id: revert-custom-generated-modifications | ||
run: | | ||
# NOTE to developers checking what triggered this alert. | ||
# This script is meant to alert you if some files have to be regenerated using `go generate`. | ||
# If this happens, you have to run `go generate ./...` and then check the below commits that are being reverted and reapply them, after considering if they are needed. | ||
|
||
git config user.name github-actions | ||
git config user.email [email protected] | ||
|
||
# Intentionally revert this commit which has a custom modification to the genesis unmarshaling, | ||
# with regards reading different genesis formats origniating from different clients | ||
# This way, this script can alert us on any code changes that have to be applied on if file gets changed. | ||
git revert --no-edit 4b2cf83737ffe7c46c334a11414d151de049e0b3 | ||
|
||
- name: Check for modified files | ||
id: git-check | ||
run: | | ||
if ! git diff-index --quiet HEAD --; then | ||
echo "🔴 ERROR: There are modified files after running 'go generate'" | ||
git status | ||
exit 1 | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
[submodule "tests"] | ||
path = tests/testdata | ||
url = https://github.com/etclabscore/tests | ||
url = https://github.com/ethereum/tests | ||
shallow = true | ||
[submodule "evm-benchmarks"] | ||
path = tests/evm-benchmarks | ||
url = https://github.com/ipsilon/evm-benchmarks | ||
shallow = true | ||
[submodule "tests-etc"] | ||
path = tests/testdata-etc | ||
url = https://github.com/etclabscore/tests-etc | ||
url = https://github.com/etclabscore/tests | ||
shallow = true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ ios: | |
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library." | ||
|
||
test: | ||
$(GORUN) build/ci.go test | ||
$(GORUN) build/ci.go test -timeout 20m | ||
|
||
# DEPRECATED. | ||
# No attempt will be made after the Istanbul fork to maintain | ||
|
@@ -48,24 +48,16 @@ test-coregeth: \ | |
hera: | ||
./build/hera.sh | ||
|
||
ssvm: | ||
./build/ssvm.sh | ||
|
||
evmone: | ||
./build/evmone.sh | ||
|
||
aleth-interpreter: | ||
./build/aleth-interpreter.sh | ||
|
||
# Test EVMC support against various external interpreters. | ||
test-evmc: hera ssvm evmone aleth-interpreter | ||
test-evmc: hera evmone | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📓 EVMC support/development tooling for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you say that we can bring them soon with #507? |
||
go test -count 1 ./tests -run TestState -evmc.ewasm=$(ROOT_DIR)/build/_workspace/hera/build/src/libhera.so | ||
go test -count 1 ./tests -run TestState -evmc.ewasm=$(ROOT_DIR)/build/_workspace/SSVM/build/tools/ssvm-evmc/libssvmEVMC.so | ||
go test -count 1 ./tests -run TestState -evmc.evm=$(ROOT_DIR)/build/_workspace/evmone/lib/libevmone.so | ||
go test -count 1 ./tests -run TestState -evmc.evm=$(ROOT_DIR)/build/_workspace/aleth/lib/libaleth-interpreter.so | ||
|
||
clean-evmc: | ||
rm -rf ./build/_workspace/hera ./build/_workspace/SSVM ./build/_workspace/evmone ./build/_workspace/aleth | ||
rm -rf ./build/_workspace/hera ./build/_workspace/evmone | ||
|
||
test-coregeth-features: \ | ||
test-coregeth-features-coregeth \ | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ import ( | |
"path" | ||
"strings" | ||
|
||
"github.com/ethereum/go-ethereum/cmd/utils" | ||
"github.com/ethereum/go-ethereum/common" | ||
"github.com/ethereum/go-ethereum/common/hexutil" | ||
"github.com/ethereum/go-ethereum/core/state" | ||
|
@@ -178,9 +179,20 @@ func Transition(ctx *cli.Context) error { | |
prestate.Env = *inputData.Env | ||
|
||
vmConfig := vm.Config{ | ||
Tracer: tracer, | ||
Debug: (tracer != nil), | ||
Tracer: tracer, | ||
Debug: (tracer != nil), | ||
EVMInterpreter: ctx.String(utils.EVMInterpreterFlag.Name), | ||
EWASMInterpreter: ctx.String(utils.EWASMInterpreterFlag.Name), | ||
} | ||
|
||
if vmConfig.EVMInterpreter != "" { | ||
vm.InitEVMCEVM(vmConfig.EVMInterpreter) | ||
} | ||
|
||
if vmConfig.EWASMInterpreter != "" { | ||
vm.InitEVMCEwasm(vmConfig.EWASMInterpreter) | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📓 Support for EVMC is added to |
||
// Construct the chainconfig | ||
var chainConfig ctypes.ChainConfigurator | ||
if cConf, extraEips, err := tests.GetChainConfig(ctx.String(ForknameFlag.Name)); err != nil { | ||
|
Uh oh!
There was an error while loading. Please reload this page.