From 4a571beefc90678f3b41a4e8e71b336ccdacc867 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Thu, 14 Aug 2025 16:39:47 +0300 Subject: [PATCH 01/13] build(pre-commit): integrate pre-commit hooks with upstream files filtering - Add .pre-commit-config.yaml. - Configured hooks: - Baseline golangci-lint (v1) at pre-commit using .golangci.yml at pre-commit stage. - [COMMENTED OUT] Extra golangci-lint via scripts/lint.sh at pre-commit stage. - Full repo suite at pre-push stage. - Standard pre-commit-hooks: - trailing-whitespace - end-of-file-fixer - check-merge-conflict - check-yaml - check-toml - check-json - mdformat with mdformat-gfm and mdformat-frontmatter - Exclude intentionally invalid fixtures: rpc/testdata/invalid-*.json. - Add support for filtering filenames based on scripts/upstream_files.txt (non-negated entries). - Add support for skipping directories, non-text files (file/grep heuristic), and .bin files. - Update scripts/shellcheck.sh and scripts/actionlint.sh to avoid unbound vars under set -u. resolves #1120 Signed-off-by: Tsvetan Dimitrov (tsvetan.dimitrov@avalabs.org) --- .github/CODEOWNERS | 1 - .github/CONTRIBUTING.md | 66 ++++---- .github/ISSUE_TEMPLATE/bug_report.md | 1 - .github/ISSUE_TEMPLATE/feature_request.md | 1 - .pre-commit-config.yaml | 98 ++++++++++++ README.md | 24 +-- RELEASES.md | 5 +- SECURITY.md | 1 - Taskfile.yml | 2 +- accounts/abi/bind/bind_test.go | 40 ++--- accounts/abi/packing_test.go | 24 +-- cmd/simulator/README.md | 2 +- docs/releasing/README.md | 128 ++++++++------- license_header.yml | 2 +- license_header_for_upstream.yml | 2 +- plugin/evm/ExampleWarp.abi | 2 +- plugin/evm/api.md | 4 +- .../evm/atomic/vm/fuji_ext_data_hashes.json | 2 +- .../atomic/vm/mainnet_ext_data_hashes.json | 2 +- plugin/evm/config/config.md | 41 +++-- precompile/contracts/warp/README.md | 20 +-- predicate/Predicate.md | 4 +- predicate/Results.md | 8 +- rpc/testdata/invalid-syntax.json | 1 - rpc/testdata/reqresp-namedparam.js | 2 +- rpc/testdata/revcall2.js | 1 - scripts/actionlint.sh | 8 +- scripts/build_test.sh | 2 +- scripts/eth-allowed-packages.txt | 2 +- scripts/filter_precommit_files.sh | 149 ++++++++++++++++++ scripts/known_flakes.txt | 2 +- scripts/lint.sh | 67 ++++++-- scripts/run_task.sh | 2 +- scripts/shellcheck.sh | 6 +- scripts/upstream_files.txt | 2 +- sync/README.md | 48 +++--- 36 files changed, 550 insertions(+), 222 deletions(-) create mode 100644 .pre-commit-config.yaml create mode 100755 scripts/filter_precommit_files.sh diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index fa1f6ca249..398f633c78 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -9,4 +9,3 @@ * @ava-labs/platform-evm /.github/ @maru-ava @ava-labs/platform-evm /triedb/firewood/ @alarso16 @ava-labs/platform-evm - diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 9e89d2d0da..a64b3a6169 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,14 +1,14 @@ # Contributing -Thank you for considering to help out with the source code! We welcome -contributions from anyone on the internet, and are grateful for even the +Thank you for considering to help out with the source code! We welcome +contributions from anyone on the internet, and are grateful for even the smallest of fixes! -If you'd like to contribute to coreth, please fork, fix, commit and send a +If you'd like to contribute to coreth, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base. If -you wish to submit more complex changes though, please check up with the core -devs first on [Discord](https://chat.avalabs.org) to -ensure those changes are in line with the general philosophy of the project +you wish to submit more complex changes though, please check up with the core +devs first on [Discord](https://chat.avalabs.org) to +ensure those changes are in line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple. @@ -16,38 +16,41 @@ well as our review and merge procedures quick and simple. Please make sure your contributions adhere to our coding guidelines: - * Code must adhere to the official Go -[formatting](https://go.dev/doc/effective_go#formatting) guidelines -(i.e. uses [gofmt](https://pkg.go.dev/cmd/gofmt)). - * Code must be documented adhering to the official Go -[commentary](https://go.dev/doc/effective_go#commentary) guidelines. - * Pull requests need to be based on and opened against the `master` branch. - * Pull reuqests should include a detailed description - * Commits are required to be signed. See [here](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) - for information on signing commits. - * Commit messages should be prefixed with the package(s) they modify. - * E.g. "eth, rpc: make trace configs optional" +- Code must adhere to the official Go + [formatting](https://go.dev/doc/effective_go#formatting) guidelines + (i.e. uses [gofmt](https://pkg.go.dev/cmd/gofmt)). +- Code must be documented adhering to the official Go + [commentary](https://go.dev/doc/effective_go#commentary) guidelines. +- Pull requests need to be based on and opened against the `master` branch. +- Pull reuqests should include a detailed description +- Commits are required to be signed. See [here](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) + for information on signing commits. +- Commit messages should be prefixed with the package(s) they modify. + - E.g. "eth, rpc: make trace configs optional" ## Can I have feature X -Before you submit a feature request, please check and make sure that it isn't +Before you submit a feature request, please check and make sure that it isn't possible through some other means. ## Mocks Mocks are auto-generated using [mockgen](https://pkg.go.dev/go.uber.org/mock/mockgen) and `//go:generate` commands in the code. -* To **re-generate all mocks**, use the command below from the root of the project: +- To **re-generate all mocks**, use the command below from the root of the project: - ```sh - go generate -run "go.uber.org/mock/mockgen" ./... - ``` + ```sh + go generate -run "go.uber.org/mock/mockgen" ./... + ``` + +- To **add** an interface that needs a corresponding mock generated: + + - if the file `mocks_generate_test.go` exists in the package where the interface is located, either: + + - modify its `//go:generate go run go.uber.org/mock/mockgen` to generate a mock for your interface (preferred); or + - add another `//go:generate go run go.uber.org/mock/mockgen` to generate a mock for your interface according to specific mock generation settings -* To **add** an interface that needs a corresponding mock generated: - * if the file `mocks_generate_test.go` exists in the package where the interface is located, either: - * modify its `//go:generate go run go.uber.org/mock/mockgen` to generate a mock for your interface (preferred); or - * add another `//go:generate go run go.uber.org/mock/mockgen` to generate a mock for your interface according to specific mock generation settings - * if the file `mocks_generate_test.go` does not exist in the package where the interface is located, create it with content (adapt as needed): + - if the file `mocks_generate_test.go` does not exist in the package where the interface is located, create it with content (adapt as needed): ```go // Copyright (C) 2025-2025, Ava Labs, Inc. All rights reserved. @@ -59,10 +62,13 @@ Mocks are auto-generated using [mockgen](https://pkg.go.dev/go.uber.org/mock/moc ``` Notes: + 1. Ideally generate all mocks to `mocks_test.go` for the package you need to use the mocks for and do not export mocks to other packages. This reduces package dependencies, reduces production code pollution and forces to have locally defined narrow interfaces. 1. Prefer using reflect mode to generate mocks than source mode, unless you need a mock for an unexported interface, which should be rare. -* To **remove** an interface from having a corresponding mock generated: + +- To **remove** an interface from having a corresponding mock generated: + 1. Edit the `mocks_generate_test.go` file in the directory where the interface is defined 1. If the `//go:generate` mockgen command line: - * generates a mock file for multiple interfaces, remove your interface from the line - * generates a mock file only for the interface, remove the entire line. If the file is empty, remove `mocks_generate_test.go` as well. + - generates a mock file for multiple interfaces, remove your interface from the line + - generates a mock file only for the interface, remove the entire line. If the file is empty, remove `mocks_generate_test.go` as well. diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 049810cd57..d41f4838f5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,7 +4,6 @@ about: Create a report to help us improve title: '' labels: bug assignees: '' - --- **Describe the bug** diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7d61..2f28cead03 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,7 +4,6 @@ about: Suggest an idea for this project title: '' labels: '' assignees: '' - --- **Is your feature request related to a problem? Please describe.** diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000..7fe57a33a2 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,98 @@ +# Usage: +# 1) Install the hooks: +# pre-commit install && pre-commit install --hook-type pre-push +# 2) [Optional] Run the hooks on demand before committing: +# pre-commit run --all-files +# 3) [Optional] Run the hooks on demand before pushing changes: +# pre-commit run --hook-stage pre-push --all-files +# +# NOTE: 2) and 3) are only needed to run the hooks manually. +# The hooks are automatically run by git when committing or pushing changes. +# +# If you want to temporarily disable the hooks without uninstalling them, you can use: +# git commit --no-verify +# git push --no-verify +# +# If you want to uninstall the hooks, you can use: +# pre-commit uninstall +# +# If you want to re-install the hooks, you can run 1) again. + +minimum_pre_commit_version: "3.6.0" + +repos: + # Fast feedback at commit time: baseline golangci-lint (v1) + - repo: https://github.com/golangci/golangci-lint + rev: v1.63.4 + hooks: + - id: golangci-lint + name: golangci-lint (baseline) + args: ["--config=.golangci.yml"] + stages: [pre-commit] + + # Local utility scripts and full repo checks + - repo: local + hooks: + # TODO: Re-enable this once we have a way to run the extra lints in CI. + # See https://github.com/ava-labs/coreth/pull/1117 + # # Stricter extra lints (golangci-lint v2) on staged changes at pre-commit + # - id: extra-golangci-lint + # name: golangci-lint (extra via scripts/lint.sh) + # entry: bash -lc 'TESTS="extra_golangci_lint" scripts/lint.sh' + # language: system + # stages: [pre-commit] + # pass_filenames: false + + - id: actionlint + name: actionlint + entry: scripts/actionlint.sh + language: system + files: ^\.github/workflows/.*\.(yml|yaml)$ + stages: [pre-commit] + pass_filenames: false + + - id: shellcheck + name: shellcheck + entry: scripts/shellcheck.sh + language: system + files: \.sh$ + stages: [pre-commit] + pass_filenames: false + + # General purpose housekeeping hooks + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: trailing-whitespace + name: trailing-whitespace (filtered) + entry: scripts/filter_precommit_files.sh trailing-whitespace-fixer -- + pass_filenames: true + args: [--markdown-linebreak-ext=md] + - id: end-of-file-fixer + name: end-of-file-fixer (filtered) + entry: scripts/filter_precommit_files.sh end-of-file-fixer -- + pass_filenames: true + - id: check-merge-conflict + - id: check-yaml + name: check-yaml (filtered) + entry: scripts/filter_precommit_files.sh check-yaml -- + pass_filenames: true + - id: check-toml + name: check-toml (filtered) + entry: scripts/filter_precommit_files.sh check-toml -- + pass_filenames: true + - id: check-json + name: check-json (filtered) + entry: scripts/filter_precommit_files.sh check-json -- + pass_filenames: true + # Exclude intentionally invalid JSON fixtures used by tests + exclude: ^rpc/testdata/invalid-.*\.json$ + + # Markdown formatter + - repo: https://github.com/hukkin/mdformat + rev: 0.7.22 + hooks: + - id: mdformat + additional_dependencies: + - mdformat-gfm==0.4.1 + - mdformat-frontmatter==2.0.8 diff --git a/README.md b/README.md index 385f7f4e3b..174c0f2c3d 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,11 @@ test run, require binary dependencies. One way of making these dependencies avai to use a nix shell which will give access to the dependencies expected by the test tooling: - - Install [nix](https://nixos.org/). The [determinate systems - installer](https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#install-nix) - is recommended. - - Use `./scripts/dev_shell.sh` to start a nix shell - - Execute the dependency-requiring command (e.g. `./scripts/tests.e2e.sh --start-collectors`) +- Install [nix](https://nixos.org/). The [determinate systems + installer](https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#install-nix) + is recommended. +- Use `./scripts/dev_shell.sh` to start a nix shell +- Execute the dependency-requiring command (e.g. `./scripts/tests.e2e.sh --start-collectors`) This repo also defines a `.envrc` file to configure [devenv](https://direnv.net/). With `devenv` and `nix` installed, a shell at the root of the repo will automatically start a nix @@ -50,7 +50,7 @@ The C-Chain supports the following API namespaces: - `txpool` - `debug` -Only the `eth` namespace is enabled by default. +Only the `eth` namespace is enabled by default. To enable the other namespaces see the instructions for passing the C-Chain config to AvalancheGo [here.](https://docs.avax.network/nodes/configure/chain-config-flags#enabling-evm-apis) Full documentation for the C-Chain's API can be found [here.](https://docs.avax.network/reference/avalanchego/c-chain/api) @@ -82,15 +82,15 @@ To support these changes, there have been a number of changes to the C-Chain blo ### Block Body -* `Version`: provides version of the `ExtData` in the block. Currently, this field is always 0. -* `ExtData`: extra data field within the block body to store atomic transaction bytes. +- `Version`: provides version of the `ExtData` in the block. Currently, this field is always 0. +- `ExtData`: extra data field within the block body to store atomic transaction bytes. ### Block Header -* `ExtDataHash`: the hash of the bytes in the `ExtDataHash` field -* `BaseFee`: Added by EIP-1559 to represent the base fee of the block (present in Ethereum as of EIP-1559) -* `ExtDataGasUsed`: amount of gas consumed by the atomic transactions in the block -* `BlockGasCost`: surcharge for producing a block faster than the target rate +- `ExtDataHash`: the hash of the bytes in the `ExtDataHash` field +- `BaseFee`: Added by EIP-1559 to represent the base fee of the block (present in Ethereum as of EIP-1559) +- `ExtDataGasUsed`: amount of gas consumed by the atomic transactions in the block +- `BlockGasCost`: surcharge for producing a block faster than the target rate ## Releasing diff --git a/RELEASES.md b/RELEASES.md index df8e4ac3da..c47cdbeba9 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -17,7 +17,6 @@ ## [v0.15.2](https://github.com/ava-labs/coreth/releases/tag/v0.15.2) - ## [v0.15.1](https://github.com/ava-labs/coreth/releases/tag/v0.15.1) - Major refactor to use [`libevm`](https://github.com/ava-labs/libevm) for EVM execution, database access, types & chain configuration. This improves maintainability and enables keeping up with upstream changes more easily. @@ -29,11 +28,15 @@ ## [v0.15.0](https://github.com/ava-labs/coreth/releases/tag/v0.15.0) - Bump golang version to v1.23.6 + - Bump golangci-lint to v1.63 and add linters + - Implement ACP-176 + - Add `GasTarget` to the chain config to allow modifying the chain's `GasTarget` based on the ACP-176 rules - Added `eth_suggestPriceOptions` API to suggest gas prices (slow, normal, fast) based on the current network conditions + - Added `"price-options-slow-fee-percentage"`, `"price-options-fast-fee-percentage"`, `"price-options-max-base-fee"`, and `"price-options-max-tip"` config flags to configure the new `eth_suggestPriceOptions` API ## [v0.14.1](https://github.com/ava-labs/coreth/releases/tag/v0.14.1) diff --git a/SECURITY.md b/SECURITY.md index 90dd1fb37f..62057a3490 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -17,4 +17,3 @@ Please refer to the [Bug Bounty Page](https://hackenproof.com/avalanche) for the ## Supported Versions Please use the [most recently released version](https://github.com/ava-labs/coreth/releases/latest) to perform testing and to validate security issues. - diff --git a/Taskfile.yml b/Taskfile.yml index 6bc26ba3f5..37e8381286 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -118,4 +118,4 @@ tasks: update-avalanchego-version: desc: Update AvalancheGo version in go.mod and sync GitHub Actions workflow custom action version - cmd: bash -x ./scripts/update_avalanchego_version.sh # ci.yml \ No newline at end of file + cmd: bash -x ./scripts/update_avalanchego_version.sh # ci.yml diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go index 1779627be1..b17389f3a0 100644 --- a/accounts/abi/bind/bind_test.go +++ b/accounts/abi/bind/bind_test.go @@ -552,7 +552,7 @@ var bindTests = []struct { struct A { bytes32 B; } - + function F() public view returns (A[] memory a, uint256[] memory c, bool[] memory d) { A[] memory a = new A[](2); a[0].B = bytes32(uint256(1234) << 96); @@ -560,7 +560,7 @@ var bindTests = []struct { bool[] memory d; return (a, c, d); } - + function G() public view returns (A[] memory a) { A[] memory a = new A[](2); a[0].B = bytes32(uint256(1234) << 96); @@ -582,10 +582,10 @@ var bindTests = []struct { // Generate a new random account and a funded simulator key, _ := crypto.GenerateKey() auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) - + sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(1000000000000000000)}}, 10000000) defer sim.Close() - + // Deploy a structs method invoker contract and execute its default method _, _, structs, err := DeployStructs(auth, sim) if err != nil { @@ -1733,13 +1733,13 @@ var bindTests = []struct { `NewFallbacks`, ` pragma solidity >=0.6.0 <0.7.0; - + contract NewFallbacks { event Fallback(bytes data); fallback() external { emit Fallback(msg.data); } - + event Received(address addr, uint value); receive() external payable { emit Received(msg.sender, msg.value); @@ -1751,7 +1751,7 @@ var bindTests = []struct { ` "bytes" "math/big" - + "github.com/ava-labs/coreth/accounts/abi/bind" "github.com/ava-labs/coreth/accounts/abi/bind/backends" "github.com/ava-labs/libevm/core/types" @@ -1760,22 +1760,22 @@ var bindTests = []struct { ` key, _ := crypto.GenerateKey() addr := crypto.PubkeyToAddress(key.PublicKey) - + sim := backends.NewSimulatedBackend(types.GenesisAlloc{addr: {Balance: big.NewInt(1000000000000000000)}}, 1000000) defer sim.Close() - + opts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) _, _, c, err := DeployNewFallbacks(opts, sim) if err != nil { t.Fatalf("Failed to deploy contract: %v", err) } sim.Commit(false) - + // Test receive function opts.Value = big.NewInt(100) c.Receive(opts) sim.Commit(false) - + var gotEvent bool iter, _ := c.FilterReceived(nil) defer iter.Close() @@ -1792,14 +1792,14 @@ var bindTests = []struct { if !gotEvent { t.Fatal("Expect to receive event emitted by receive") } - + // Test fallback function gotEvent = false opts.Value = nil calldata := []byte{0x01, 0x02, 0x03} c.Fallback(opts, calldata) sim.Commit(false) - + iter2, _ := c.FilterFallback(nil) defer iter2.Close() for iter2.Next() { @@ -1893,7 +1893,7 @@ var bindTests = []struct { `NewErrors`, ` pragma solidity >0.8.4; - + contract NewErrors { error MyError(uint256); error MyError1(uint256); @@ -1909,7 +1909,7 @@ var bindTests = []struct { ` "context" "math/big" - + "github.com/ava-labs/coreth/accounts/abi/bind" "github.com/ava-labs/coreth/accounts/abi/bind/backends" "github.com/ava-labs/libevm/core/types" @@ -1922,7 +1922,7 @@ var bindTests = []struct { sim = backends.NewSimulatedBackend(types.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, 10000000) ) defer sim.Close() - + _, tx, contract, err := DeployNewErrors(user, sim) if err != nil { t.Fatal(err) @@ -1947,12 +1947,12 @@ var bindTests = []struct { name: `ConstructorWithStructParam`, contract: ` pragma solidity >=0.8.0 <0.9.0; - + contract ConstructorWithStructParam { struct StructType { uint256 field; } - + constructor(StructType memory st) {} } `, @@ -1980,7 +1980,7 @@ var bindTests = []struct { t.Fatalf("DeployConstructorWithStructParam() got err %v; want nil err", err) } sim.Commit(true) - + if _, err = bind.WaitDeployed(context.Background(), sim, tx); err != nil { t.Logf("Deployment tx: %+v", tx) t.Errorf("bind.WaitDeployed(nil, %T, ) got err %v; want nil err", sim, err) @@ -2029,7 +2029,7 @@ var bindTests = []struct { t.Fatalf("DeployNameConflict() got err %v; want nil err", err) } sim.Commit(true) - + if _, err = bind.WaitDeployed(context.Background(), sim, tx); err != nil { t.Logf("Deployment tx: %+v", tx) t.Errorf("bind.WaitDeployed(nil, %T, ) got err %v; want nil err", sim, err) diff --git a/accounts/abi/packing_test.go b/accounts/abi/packing_test.go index e5881d503e..28fee6bb29 100644 --- a/accounts/abi/packing_test.go +++ b/accounts/abi/packing_test.go @@ -842,9 +842,9 @@ var packUnpackTests = []packUnpackTest{ }, { // static tuple - def: `[{"components": [{"name":"a","type":"int64"}, - {"name":"b","type":"int256"}, - {"name":"c","type":"int256"}, + def: `[{"components": [{"name":"a","type":"int64"}, + {"name":"b","type":"int256"}, + {"name":"c","type":"int256"}, {"name":"d","type":"bool"}, {"name":"e","type":"bytes32[3][2]"}], "type":"tuple"}]`, unpacked: struct { @@ -866,9 +866,9 @@ var packUnpackTests = []packUnpackTest{ "0500000000000000000000000000000000000000000000000000000000000000", // struct[e] array[1][2] }, { - def: `[{"components": [{"name":"a","type":"string"}, - {"name":"b","type":"int64"}, - {"name":"c","type":"bytes"}, + def: `[{"components": [{"name":"a","type":"string"}, + {"name":"b","type":"int64"}, + {"name":"c","type":"bytes"}, {"name":"d","type":"string[]"}, {"name":"e","type":"int256[]"}, {"name":"f","type":"address[]"}], "type":"tuple"}]`, @@ -906,8 +906,8 @@ var packUnpackTests = []packUnpackTest{ "0000000000000000000000000200000000000000000000000000000000000000", // common.Address{2} }, { - def: `[{"components": [{ "type": "tuple","components": [{"name": "a","type": "uint256"}, - {"name": "b","type": "uint256[]"}], + def: `[{"components": [{ "type": "tuple","components": [{"name": "a","type": "uint256"}, + {"name": "b","type": "uint256[]"}], "name": "a","type": "tuple"}, {"name": "b","type": "uint256[]"}], "type": "tuple"}]`, unpacked: struct { @@ -936,8 +936,8 @@ var packUnpackTests = []packUnpackTest{ }, { - def: `[{"components": [{"name": "a","type": "int256"}, - {"name": "b","type": "int256[]"}], + def: `[{"components": [{"name": "a","type": "int256"}, + {"name": "b","type": "int256[]"}], "name": "a","type": "tuple[]"}]`, unpacked: []struct { A *big.Int @@ -962,8 +962,8 @@ var packUnpackTests = []packUnpackTest{ "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", // tuple[1].B[1] value }, { - def: `[{"components": [{"name": "a","type": "int256"}, - {"name": "b","type": "int256"}], + def: `[{"components": [{"name": "a","type": "int256"}, + {"name": "b","type": "int256"}], "name": "a","type": "tuple[2]"}]`, unpacked: [2]struct { A *big.Int diff --git a/cmd/simulator/README.md b/cmd/simulator/README.md index 1f602f61fa..79d5eb7dc5 100644 --- a/cmd/simulator/README.md +++ b/cmd/simulator/README.md @@ -43,7 +43,7 @@ WARNING: The `--sybil-protection-enabled=false` flag is only suitable for local testing. Disabling staking serves two functions explicitly for testing purposes: 1. Ignore stake weight on the P-Chain and count each connected peer as having a stake weight of 1 -2. Automatically opts in to validate every Subnet +1. Automatically opts in to validate every Subnet Once you have AvalancheGo running locally, it will be running an HTTP Server on the default port `9650`. This means that the RPC Endpoint for the C-Chain will be http://127.0.0.1:9650/ext/bc/C/rpc and ws://127.0.0.1:9650/ext/bc/C/ws for WebSocket connections. diff --git a/docs/releasing/README.md b/docs/releasing/README.md index 742e0d21b7..0afff7b8ce 100644 --- a/docs/releasing/README.md +++ b/docs/releasing/README.md @@ -15,52 +15,55 @@ export VERSION=v0.15.0 1. Create your branch, usually from the tip of the `master` branch: - ```bash - git fetch origin master:master - git checkout master - git checkout -b "releases/$VERSION_RC" - ``` + ```bash + git fetch origin master:master + git checkout master + git checkout -b "releases/$VERSION_RC" + ``` 1. Update the [RELEASES.md](../../RELEASES.md) file by renaming the "Pending" section to the new release version `$VERSION` and creating a new "Pending" section at the top. + 1. Modify the [plugin/evm/version.go](../../plugin/evm/version.go) `Version` global string variable and set it to the desired `$VERSION`. + 1. Because AvalancheGo and coreth depend on each other, and that we create releases of AvalancheGo before coreth, you can use a recent commit hash or recent release candidate of AvalancheGo in your `go.mod` file. Coreth releases should be tightly coordinated with AvalancheGo releases. + 1. Commit your changes and push the branch - ```bash - git add . - git commit -S -m "chore: release $VERSION_RC" - git push -u origin "releases/$VERSION_RC" - ``` + ```bash + git add . + git commit -S -m "chore: release $VERSION_RC" + git push -u origin "releases/$VERSION_RC" + ``` 1. Create a pull request (PR) from your branch targeting master, for example using [`gh`](https://cli.github.com/): - ```bash - gh pr create --repo github.com/ava-labs/coreth --base master --title "chore: release $VERSION_RC" - ``` + ```bash + gh pr create --repo github.com/ava-labs/coreth --base master --title "chore: release $VERSION_RC" + ``` 1. Wait for the PR checks to pass with - ```bash - gh pr checks --watch - ``` + ```bash + gh pr checks --watch + ``` 1. Squash and merge your release branch into `master`, for example: - ```bash - gh pr merge "releases/$VERSION" --squash --delete-branch --subject "chore: release $VERSION" --body "\n- Update AvalancheGo from v1.12.3 to v1.13.0" - ``` + ```bash + gh pr merge "releases/$VERSION" --squash --delete-branch --subject "chore: release $VERSION" --body "\n- Update AvalancheGo from v1.12.3 to v1.13.0" + ``` 1. Create and push a tag from the `master` branch: - ```bash - git fetch origin master:master - git checkout master - # Double check the tip of the master branch is the expected commit - # of the squashed release branch - git log -1 - git tag -s "$VERSION_RC" - git push origin "$VERSION_RC" - ``` + ```bash + git fetch origin master:master + git checkout master + # Double check the tip of the master branch is the expected commit + # of the squashed release branch + git log -1 + git tag -s "$VERSION_RC" + git push origin "$VERSION_RC" + ``` 1. Once the release candidate tag is created, create a pull request on the AvalancheGo repository, bumping the coreth dependency to use this release candidate. Once proven stable, an AvalancheGo release should be created, after which you can create a coreth release. @@ -72,43 +75,30 @@ Following the previous example in the [Release candidate section](#release-candi 1. Create and push a tag from the `master` branch: - ```bash - git checkout master - git pull origin - # Double check the tip of the master branch is the expected commit - # of the squashed release branch - git log -1 - git tag -s "$VERSION" - git push origin "$VERSION" - ``` + ```bash + git checkout master + git pull origin + # Double check the tip of the master branch is the expected commit + # of the squashed release branch + git log -1 + git tag -s "$VERSION" + git push origin "$VERSION" + ``` 1. Create a new release on Github, either using: - - the [Github web interface](https://github.com/ava-labs/coreth/releases/new) - 1. In the "Choose a tag" box, select the tag previously created `$VERSION` (`v0.15.0`) - 1. Pick the previous tag, for example as `v0.14.0`. - 1. Set the "Release title" to `$VERSION` (`v0.15.0`) - 1. Set the description using this format: - - ```markdown - This is the Coreth version used in AvalancheGo@v1.13.1 - # Breaking changes + - the [Github web interface](https://github.com/ava-labs/coreth/releases/new) - # Features + 1. In the "Choose a tag" box, select the tag previously created `$VERSION` (`v0.15.0`) - # Fixes + 1. Pick the previous tag, for example as `v0.14.0`. - # Documentation + 1. Set the "Release title" to `$VERSION` (`v0.15.0`) - ``` + 1. Set the description using this format: - 1. Only tick the box "Set as the latest release" - 1. Click on the "Create release" button - - the Github CLI `gh`: - - ```bash - PREVIOUS_VERSION=v0.14.0 - NOTES="This is the Coreth version used in AvalancheGo@v1.13.1 + ```markdown + This is the Coreth version used in AvalancheGo@v1.13.1 # Breaking changes @@ -118,8 +108,28 @@ Following the previous example in the [Release candidate section](#release-candi # Documentation - " - gh release create "$VERSION" --notes-start-tag "$PREVIOUS_VERSION" --notes-from-tag "$VERSION" --title "$VERSION" --notes "$NOTES" --verify-tag ``` + 1. Only tick the box "Set as the latest release" + + 1. Click on the "Create release" button + + - the Github CLI `gh`: + + ```bash + PREVIOUS_VERSION=v0.14.0 + NOTES="This is the Coreth version used in AvalancheGo@v1.13.1 + + # Breaking changes + + # Features + + # Fixes + + # Documentation + + " + gh release create "$VERSION" --notes-start-tag "$PREVIOUS_VERSION" --notes-from-tag "$VERSION" --title "$VERSION" --notes "$NOTES" --verify-tag + ``` + Note this release will likely never be used in AvalancheGo, which should always be using release candidates to accelerate the development process. However it is still useful to have a release to indicate the last stable version of coreth. diff --git a/license_header.yml b/license_header.yml index 7693376369..a9668c5717 100644 --- a/license_header.yml +++ b/license_header.yml @@ -1,3 +1,3 @@ header: | // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. - // See the file LICENSE for licensing terms. \ No newline at end of file + // See the file LICENSE for licensing terms. diff --git a/license_header_for_upstream.yml b/license_header_for_upstream.yml index ccb97b8dc6..9d88d4e5b4 100644 --- a/license_header_for_upstream.yml +++ b/license_header_for_upstream.yml @@ -9,4 +9,4 @@ header: | // original code from which it is derived. // // Much love to the original authors for their work. - // ********** \ No newline at end of file + // ********** diff --git a/plugin/evm/ExampleWarp.abi b/plugin/evm/ExampleWarp.abi index 9d4b442caa..0642d8793f 100644 --- a/plugin/evm/ExampleWarp.abi +++ b/plugin/evm/ExampleWarp.abi @@ -102,4 +102,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +] diff --git a/plugin/evm/api.md b/plugin/evm/api.md index 9bd0c51a9b..2ced4de401 100644 --- a/plugin/evm/api.md +++ b/plugin/evm/api.md @@ -1,6 +1,6 @@ --- title: C-Chain API -description: "This page is an overview of the C-Chain API associated with AvalancheGo." +description: This page is an overview of the C-Chain API associated with AvalancheGo. --- @@ -46,7 +46,7 @@ For example, to interact with the C-Chain's Ethereum APIs via websocket on local ws://127.0.0.1:9650/ext/bc/C/ws ``` -} > +\} > On localhost, use `ws://`. When using the [Public API](/docs/tooling/rpc-providers) or another host that supports encryption, use `wss://`. diff --git a/plugin/evm/atomic/vm/fuji_ext_data_hashes.json b/plugin/evm/atomic/vm/fuji_ext_data_hashes.json index dac86c0ec4..0635aa035f 100644 --- a/plugin/evm/atomic/vm/fuji_ext_data_hashes.json +++ b/plugin/evm/atomic/vm/fuji_ext_data_hashes.json @@ -2242,4 +2242,4 @@ "0xffca061763aa6efa63beb050d9a6df86783fdc3130e64c91a86f8d3465dfb1c1": "0x4687fe565539d3dfa8f44bd1c110209d990570ba112b1757125c105c6f0d0fee", "0xfff1eb38ce0478dfa9d38495d58959f23717558c9419ad6bf132f3d479d397a2": "0x64c4778480bb0c1dc6691928ddd316dc4f972b44e84037abfb14feabb380ca50", "0xfff2e6d17597e3482a772c1d6d3d67ad13eae97fb99b74d0e4ed62a295845410": "0xb3dce642c4fdfb90fc18a0b42d68bcee26b022b1c3e6cc90d4a74e9fe7a1b7e6" -} \ No newline at end of file +} diff --git a/plugin/evm/atomic/vm/mainnet_ext_data_hashes.json b/plugin/evm/atomic/vm/mainnet_ext_data_hashes.json index d14f22c7ef..67f100cc5e 100644 --- a/plugin/evm/atomic/vm/mainnet_ext_data_hashes.json +++ b/plugin/evm/atomic/vm/mainnet_ext_data_hashes.json @@ -63290,4 +63290,4 @@ "0xfffc67b57a37f88bf7d9fd77cbc78bde0360a4bb1ab16e8c313170c870764525": "0xe3f8380582d31e2106fee82d861bb588d1f6f3dc7f2b26ab9b6e4faf7fc1d4ff", "0xfffd5d18f951f6af41b443d288a76f18279a7f3ef981087ab68eb729993b1d83": "0xa9cf2edc42ca08fb16046a4d758263ce59e19b8359d3d19a808d1fb9d9a08fe7", "0xfffdfb0eb1bde9b50a621c78c21d92a9878cbe0d338a902285b1101975971852": "0x621fda6c7a0eae8611f2a6511db192b0b7e757866a1b4fab9dc7984b33c28796" -} \ No newline at end of file +} diff --git a/plugin/evm/config/config.md b/plugin/evm/config/config.md index 748e577312..b4d6e38c87 100644 --- a/plugin/evm/config/config.md +++ b/plugin/evm/config/config.md @@ -104,7 +104,7 @@ Enables the Warp API. Defaults to `false`. ### Enabling EVM APIs -### `eth-apis` (\[\]string) +### `eth-apis` ([]string) Use the `eth-apis` field to specify the exact set of below services to enable on your node. If this field is not set, then the default list will be: `["eth","eth-filter","net","web3","internal-eth","internal-blockchain","internal-transaction"]`. @@ -113,22 +113,22 @@ The names used in this configuration flag have been updated in Coreth `v0.8.14`. The mapping of deprecated values and their updated equivalent follows: -|Deprecated |Use instead | -|--------------------------------|--------------------| -|public-eth |eth | -|public-eth-filter |eth-filter | -|private-admin |admin | -|private-debug |debug | -|public-debug |debug | -|internal-public-eth |internal-eth | -|internal-public-blockchain |internal-blockchain | -|internal-public-transaction-pool|internal-transaction| -|internal-public-tx-pool |internal-tx-pool | -|internal-public-debug |internal-debug | -|internal-private-debug |internal-debug | -|internal-public-account |internal-account | -|internal-private-personal |internal-personal | - +| Deprecated | Use instead | +| -------------------------------- | -------------------- | +| public-eth | eth | +| public-eth-filter | eth-filter | +| private-admin | admin | +| private-debug | debug | +| public-debug | debug | +| internal-public-eth | internal-eth | +| internal-public-blockchain | internal-blockchain | +| internal-public-transaction-pool | internal-transaction | +| internal-public-tx-pool | internal-tx-pool | +| internal-public-debug | internal-debug | +| internal-private-debug | internal-debug | +| internal-public-account | internal-account | +| internal-private-personal | internal-personal | +| | | If you populate this field, it will override the defaults so you must include every service you wish to enable. @@ -187,6 +187,7 @@ Adds the following RPC calls to the `debug_*` namespace. Defaults to `false`. - `debug_getAccessibleState` The following RPC calls are disabled for any nodes with `state-scheme = firewood`: + - `debug_storageRangeAt` - `debug_getModifiedAccountsByNumber` - `debug_getModifiedAccountsByHash` @@ -367,7 +368,7 @@ The maximum gas to be consumed by an RPC Call (used in `eth_estimateGas` and `et _Integer_ -Global transaction fee (price \* `gaslimit`) cap (measured in AVAX) for send-transaction variants. Defaults to `100`. +Global transaction fee (price * `gaslimit`) cap (measured in AVAX) for send-transaction variants. Defaults to `100`. ### `api-max-duration` @@ -425,7 +426,7 @@ If `true`, the APIs will allow transactions that are not replay protected (EIP-1 ### `allow-unprotected-tx-hashes` -_\[\]TxHash_ +_[]TxHash_ Specifies an array of transaction hashes that should be allowed to bypass replay protection. This flag is intended for node operators that want to explicitly allow specific transactions to be issued through their API. Defaults to an empty list. @@ -633,8 +634,6 @@ _Integer_ Size of the snapshot disk layer clean cache (in MBs). Should be a multiple of `64`. Defaults to `256`. - - ### `acceptor-queue-limit` _Integer_ diff --git a/precompile/contracts/warp/README.md b/precompile/contracts/warp/README.md index 2164f237b1..257dfee0fa 100644 --- a/precompile/contracts/warp/README.md +++ b/precompile/contracts/warp/README.md @@ -17,11 +17,11 @@ For more details on Avalanche Warp Messaging, see the AvalancheGo [Warp README]( The Avalanche Warp Precompile enables this flow to send a message from blockchain A to blockchain B: 1. Call the Warp Precompile `sendWarpMessage` function with the arguments for the `UnsignedMessage` -2. Warp Precompile emits an event / log containing the `UnsignedMessage` specified by the caller of `sendWarpMessage` -3. Network accepts the block containing the `UnsignedMessage` in the log, so that validators are willing to sign the message -4. An off-chain relayer queries the validators for their signatures of the message and aggregates the signatures to create a `SignedMessage` -5. The off-chain relayer encodes the `SignedMessage` as the [predicate](#predicate-encoding) in the AccessList of a transaction to deliver on blockchain B -6. The transaction is delivered on blockchain B, the signature is verified prior to executing the block, and the message is accessible via the Warp Precompile's `getVerifiedWarpMessage` during the execution of that transaction +1. Warp Precompile emits an event / log containing the `UnsignedMessage` specified by the caller of `sendWarpMessage` +1. Network accepts the block containing the `UnsignedMessage` in the log, so that validators are willing to sign the message +1. An off-chain relayer queries the validators for their signatures of the message and aggregates the signatures to create a `SignedMessage` +1. The off-chain relayer encodes the `SignedMessage` as the [predicate](#predicate-encoding) in the AccessList of a transaction to deliver on blockchain B +1. The transaction is delivered on blockchain B, the signature is verified prior to executing the block, and the message is accessible via the Warp Precompile's `getVerifiedWarpMessage` during the execution of that transaction ### Warp Precompile @@ -57,7 +57,7 @@ To use this function, the transaction must include the signed Avalanche Warp Mes This leads to the following advantages: 1. The EVM execution does not need to verify the Warp Message at runtime (no signature verification or external calls to the P-Chain) -2. The EVM can deterministically re-execute and re-verify blocks assuming the predicate was verified by the network (e.g., in bootstrapping) +1. The EVM can deterministically re-execute and re-verify blocks assuming the predicate was verified by the network (e.g., in bootstrapping) This pre-verification is performed using the ProposerVM Block header during [block verification](../../../plugin/evm/block.go#L355) & [block building](../../../miner/worker.go#L200). @@ -89,9 +89,9 @@ Sending messages from the C-Chain remains unchanged. However, when L1 XYZ receives a message from the C-Chain, it changes the semantics to the following: 1. Read the `SourceChainID` of the signed message (C-Chain) -2. Look up the `SubnetID` that validates C-Chain: Primary Network -3. Look up the validator set of L1 XYZ (instead of the Primary Network) and the registered BLS Public Keys of L1 XYZ at the P-Chain height specified by the ProposerVM header -4. Continue Warp Message verification using the validator set of L1 XYZ instead of the Primary Network +1. Look up the `SubnetID` that validates C-Chain: Primary Network +1. Look up the validator set of L1 XYZ (instead of the Primary Network) and the registered BLS Public Keys of L1 XYZ at the P-Chain height specified by the ProposerVM header +1. Continue Warp Message verification using the validator set of L1 XYZ instead of the Primary Network This means that C-Chain to L1 communication only requires a threshold of stake on the receiving L1 to sign the message instead of a threshold of stake for the entire Primary Network. @@ -118,7 +118,7 @@ As a result, we require that the block itself provides a deterministic hint whic To provide that hint, we've explored two designs: 1. Include a predicate in the transaction to ensure any referenced message is valid -2. Append the results of checking whether a Warp Message is valid/invalid to the block data itself +1. Append the results of checking whether a Warp Message is valid/invalid to the block data itself The current implementation uses option (1). diff --git a/predicate/Predicate.md b/predicate/Predicate.md index b35cbfd145..ed625933e6 100644 --- a/predicate/Predicate.md +++ b/predicate/Predicate.md @@ -7,5 +7,5 @@ This package contains the predicate data structure and its encoding and helper f A byte slice of size N is encoded as: 1. Slice of N bytes -2. Delimiter byte `0xff` -3. Appended 0s to the nearest multiple of 32 bytes +1. Delimiter byte `0xff` +1. Appended 0s to the nearest multiple of 32 bytes diff --git a/predicate/Results.md b/predicate/Results.md index 67e6465030..846d29a4cd 100644 --- a/predicate/Results.md +++ b/predicate/Results.md @@ -9,6 +9,7 @@ For more information on the motivation for encoding the results of predicate ver Note: PredicateResults are encoded using the AvalancheGo codec, which serializes a map by serializing the length of the map as a uint32 and then serializes each key-value pair sequentially. PredicateResults: + ``` +---------------------+----------------------------------+-------------------+ | codecID : uint16 | 2 bytes | @@ -23,6 +24,7 @@ PredicateResults: - `results` is a map of transaction hashes to the corresponding `TxPredicateResults` TxPredicateResults + ``` +--------------------+---------------------+------------------------------------+ | txPredicateResults : map[[20]byte][]byte | 4 + size(txPredicateResults) bytes | @@ -55,7 +57,7 @@ TxPredicateResults 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // TxPredicateResults (value in results map) // TxPredicateResults length 0x00, 0x00, 0x00, 0x01, @@ -81,7 +83,7 @@ TxPredicateResults 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // TxPredicateResults (value in results map) // TxPredicateResults length 0x00, 0x00, 0x00, 0x01, @@ -98,7 +100,7 @@ TxPredicateResults 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // TxPredicateResults (value in results map) // TxPredicateResults length 0x00, 0x00, 0x00, 0x01, diff --git a/rpc/testdata/invalid-syntax.json b/rpc/testdata/invalid-syntax.json index b194299603..d387a9b5ee 100644 --- a/rpc/testdata/invalid-syntax.json +++ b/rpc/testdata/invalid-syntax.json @@ -2,4 +2,3 @@ --> 'f <-- {"jsonrpc":"2.0","id":null,"error":{"code":-32700,"message":"invalid character '\\'' looking for beginning of value"}} - diff --git a/rpc/testdata/reqresp-namedparam.js b/rpc/testdata/reqresp-namedparam.js index 9a9372b0a7..b9d3b8cae8 100644 --- a/rpc/testdata/reqresp-namedparam.js +++ b/rpc/testdata/reqresp-namedparam.js @@ -1,5 +1,5 @@ // This test checks that an error response is sent for calls -// with named parameters. +// with named parameters. --> {"jsonrpc":"2.0","method":"test_echo","params":{"int":23},"id":3} <-- {"jsonrpc":"2.0","id":3,"error":{"code":-32602,"message":"non-array args"}} diff --git a/rpc/testdata/revcall2.js b/rpc/testdata/revcall2.js index acab46551e..b88689a473 100644 --- a/rpc/testdata/revcall2.js +++ b/rpc/testdata/revcall2.js @@ -4,4 +4,3 @@ <-- {"jsonrpc":"2.0","id":2,"result":null} <-- {"jsonrpc":"2.0","id":1,"method":"foo","params":[1]} --> {"jsonrpc":"2.0","id":1,"result":"my result"} - diff --git a/scripts/actionlint.sh b/scripts/actionlint.sh index 2f0b27b536..f8093f7706 100755 --- a/scripts/actionlint.sh +++ b/scripts/actionlint.sh @@ -2,7 +2,11 @@ set -euo pipefail -go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.1 "${@}" +if [[ $# -gt 0 ]]; then + go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.1 "$@" +else + go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.1 +fi echo "Checking use of scripts/* in GitHub Actions workflows..." SCRIPT_USAGE= @@ -21,4 +25,4 @@ done if [[ -n "${SCRIPT_USAGE}" ]]; then echo "Error: the lines listed above must be converted to use scripts/run_task.sh to ensure local reproducibility." exit 1 -fi \ No newline at end of file +fi diff --git a/scripts/build_test.sh b/scripts/build_test.sh index b2390e53ea..6b21fc0b0a 100755 --- a/scripts/build_test.sh +++ b/scripts/build_test.sh @@ -33,7 +33,7 @@ do if [[ ${command_status:-0} == 0 ]]; then rm test.out exit 0 - else + else unset command_status # Clear the error code for the next run fi diff --git a/scripts/eth-allowed-packages.txt b/scripts/eth-allowed-packages.txt index e8d62708db..484566e7ee 100644 --- a/scripts/eth-allowed-packages.txt +++ b/scripts/eth-allowed-packages.txt @@ -38,4 +38,4 @@ "github.com/ava-labs/libevm/trie/triestate" "github.com/ava-labs/libevm/trie/utils" "github.com/ava-labs/libevm/triedb" -"github.com/ava-labs/libevm/triedb/database" \ No newline at end of file +"github.com/ava-labs/libevm/triedb/database" diff --git a/scripts/filter_precommit_files.sh b/scripts/filter_precommit_files.sh new file mode 100755 index 0000000000..43f69fdbe7 --- /dev/null +++ b/scripts/filter_precommit_files.sh @@ -0,0 +1,149 @@ +#!/usr/bin/env bash + +set -euo pipefail + +# Filters a list of filenames (from pre-commit) to exclude any paths that match +# directories listed (non-negated) in scripts/upstream_files.txt, and skips +# non-text files. Designed to be used as: +# scripts/filter_precommit_files.sh [cmd-args ...] -- +# with pass_filenames: true so pre-commit appends filenames after '--'. + +SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) +REPO_ROOT=$(cd -- "${SCRIPT_DIR}/.." &>/dev/null && pwd) +UPSTREAM_FILE="${REPO_ROOT}/scripts/upstream_files.txt" + +die() { + echo "error: $*" >&2 + exit 2 +} + +require_upstream_file() { + [[ -f "${UPSTREAM_FILE}" ]] || die "not found: ${UPSTREAM_FILE}" +} + +build_dirs_regex() { + # Build a regex like ^(core/|eth/|internal/|node/) from non-negated entries + # in scripts/upstream_files.txt. Returns empty string if no entries. + require_upstream_file + local topdirs_list=() + while IFS= read -r line; do + # strip leading/trailing whitespace + line="${line%%[[:space:]]*}" + line="${line##[[:space:]]}" + [[ -z "${line}" ]] && continue + [[ "${line}" = \!* ]] && continue + first_segment="${line%%/*}" + [[ -z "${first_segment}" ]] && continue + [[ "${first_segment}" = "." || "${first_segment}" = "*" ]] && continue + topdirs_list+=("${first_segment}") + done < "${UPSTREAM_FILE}" + + if [[ ${#topdirs_list[@]} -eq 0 ]]; then + printf '%s' "" + return 0 + fi + + local unique_topdirs + unique_topdirs=$(printf '%s\n' "${topdirs_list[@]}" | sort -u) + local parts=() + while IFS= read -r d; do + [[ -z "$d" ]] && continue + parts+=("${d}/") + done <<< "${unique_topdirs}" + + if [[ ${#parts[@]} -eq 0 ]]; then + printf '%s' "" + return 0 + fi + + local joined_parts + joined_parts=$(printf '%s|' "${parts[@]}") + joined_parts=${joined_parts%|} + printf '^(%s)' "$joined_parts" +} + +is_text_file() { + # Return 0 if the given path appears to be a text file, 1 if binary. + local f="$1" + [[ -f "$f" ]] || return 1 + [[ ! -s "$f" ]] && return 0 + if command -v file >/dev/null 2>&1; then + local mime + mime=$(file -b --mime "$f" || true) + case "$mime" in + *charset=binary*) return 1 ;; + esac + fi + if LC_ALL=C grep -Iq . "$f" 2>/dev/null; then + return 0 + fi + return 1 +} + +should_skip_path() { + # Args: + local p="$1" + local re="${2-}" + # Skip directories + [[ -d "$p" ]] && return 0 + # Skip obvious binaries by extension + case "$p" in + *.bin) return 0 ;; + esac + # Skip non-text + is_text_file "$p" || return 0 + # Skip upstream directories if regex provided + if [[ -n "$re" ]] && [[ "$p" =~ $re ]]; then + return 0 + fi + return 1 +} + +parse_args() { + # Populate CMD[] and FILES[] from argv using '--' as delimiter + CMD=() + FILES=() + local found_delim=false + for arg in "$@"; do + if ! $found_delim; then + if [[ "$arg" == "--" ]]; then + found_delim=true + continue + fi + CMD+=("$arg") + else + FILES+=("$arg") + fi + done + if [[ ${#CMD[@]} -eq 0 ]]; then + die "usage: $0 [args...] -- [files...]" + fi +} + +main() { + parse_args "$@" + local dirs_regex + dirs_regex="$(build_dirs_regex)" + + # If no filenames provided, run the command as-is + if [[ ${#FILES[@]} -eq 0 ]]; then + exec "${CMD[@]}" + fi + + local filtered=() + for p in "${FILES[@]}"; do + if should_skip_path "$p" "$dirs_regex"; then + continue + fi + filtered+=("$p") + done + + # Nothing left to process + if [[ ${#filtered[@]} -eq 0 ]]; then + exit 0 + fi + + exec "${CMD[@]}" "${filtered[@]}" +} + +main "$@" diff --git a/scripts/known_flakes.txt b/scripts/known_flakes.txt index 260e38e647..bff3652766 100644 --- a/scripts/known_flakes.txt +++ b/scripts/known_flakes.txt @@ -11,4 +11,4 @@ TestUpdatedKeyfileContents TestVMShutdownWhileSyncing TestWaitDeployedCornerCases TestWalletNotifications -TestWebsocketLargeRead \ No newline at end of file +TestWebsocketLargeRead diff --git a/scripts/lint.sh b/scripts/lint.sh index ac8beb42d1..310f49c2b4 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -7,16 +7,60 @@ if ! [[ "$0" =~ scripts/lint.sh ]]; then exit 255 fi + +# Ensure bash>=4 for mapfile support; on macOS, re-exec with Homebrew bash if available +if ! declare -F mapfile >/dev/null 2>&1; then + if [[ "$(uname -s)" == "Darwin" ]]; then + if command -v brew >/dev/null 2>&1; then + HB_BASH="$(brew --prefix bash 2>/dev/null)/bin/bash" + if [[ -x "${HB_BASH}" ]]; then + exec "${HB_BASH}" "$0" "$@" + fi + fi + for p in /opt/homebrew/bin/bash /usr/local/bin/bash; do + if [[ -x "$p" ]]; then + exec "$p" "$0" "$@" + fi + done + echo >&2 "error: bash>=4 required. Install with: brew install bash" + exit 255 + fi +fi + # The -P option is not supported by the grep version installed by # default on macos. Since `-o errexit` is ignored in an if # conditional, triggering the problem here ensures script failure when # using an unsupported version of grep. -grep -P 'lint.sh' scripts/lint.sh &>/dev/null || ( - echo >&2 "error: This script requires a recent version of gnu grep." - echo >&2 " On macos, gnu grep can be installed with 'brew install grep'." - echo >&2 " It will also be necessary to ensure that gnu grep is available in the path." - exit 255 -) +if ! grep -P 'lint.sh' scripts/lint.sh &>/dev/null; then + if [[ "$(uname -s)" == "Darwin" ]]; then + # On macOS, try Homebrew gnubin path and re-check + if command -v brew >/dev/null 2>&1; then + GNUGREP_PATH="$(brew --prefix grep)/libexec/gnubin" + if [[ -d "${GNUGREP_PATH}" ]]; then + export PATH="${GNUGREP_PATH}:${PATH}" + fi + fi + if ! grep -P 'lint.sh' scripts/lint.sh &>/dev/null; then + echo >&2 "error: This script requires a recent version of gnu grep." + echo >&2 " On macOS, install with: brew install grep" + echo >&2 " Ensure GNU grep is in PATH (e.g., \"\$(brew --prefix grep)/libexec/gnubin\")." + exit 255 + fi + fi +fi + +# Prefer pre-installed binaries and only fall back to `go run` if missing. +# This avoids repeated module downloads/compilation in pre-commit/pre-push subshells. +run_or_go() { + local _tool="$1" + local _module_at_version="$2" + shift 2 + if command -v "${_tool}" >/dev/null 2>&1; then + "${_tool}" "$@" + else + go run "${_module_at_version}" "$@" + fi +} # Read excluded directories into arrays DEFAULT_FILES=() @@ -24,7 +68,8 @@ UPSTREAM_FILES=() function read_dirs { local upstream_folders_file="./scripts/upstream_files.txt" # Read the upstream_folders file into an array - mapfile -t upstream_folders <"$upstream_folders_file" + local -a upstream_folders=() + mapfile -t upstream_folders < "$upstream_folders_file" # Shared find filters local -a find_filters=( @@ -43,6 +88,8 @@ function read_dirs { local -a upstream_find_args=() local -a upstream_exclude_args=() for line in "${upstream_folders[@]}"; do + # Skip empty or whitespace-only lines to avoid matching the entire repo + [[ -z "${line//[[:space:]]/}" ]] && continue if [[ "$line" == !* ]]; then # Excluding files with ! upstream_exclude_args+=(! -path "./${line:1}") @@ -77,7 +124,7 @@ function read_dirs { TESTS=${TESTS:-"golangci_lint license_header require_error_is_no_funcs_as_params single_import interface_compliance_nil require_no_error_inline_func import_testing_only_in_tests"} function test_golangci_lint { - go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63 run --config .golangci.yml + run_or_go "golangci-lint" "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63" run --config .golangci.yml } # automatically checks license headers @@ -89,7 +136,7 @@ function test_license_header { if [[ ${#UPSTREAM_FILES[@]} -gt 0 ]]; then echo "Running license tool on upstream files with header for upstream..." # shellcheck disable=SC2086 - go run github.com/palantir/go-license@v1.25.0 \ + run_or_go "go-license" "github.com/palantir/go-license@v1.25.0" \ --config=./license_header_for_upstream.yml \ ${_addlicense_flags} \ "${UPSTREAM_FILES[@]}" \ @@ -99,7 +146,7 @@ function test_license_header { if [[ ${#DEFAULT_FILES[@]} -gt 0 ]]; then echo "Running license tool on remaining files with default header..." # shellcheck disable=SC2086 - go run github.com/palantir/go-license@v1.25.0 \ + run_or_go "go-license" "github.com/palantir/go-license@v1.25.0" \ --config=./license_header.yml \ ${_addlicense_flags} \ "${DEFAULT_FILES[@]}" \ diff --git a/scripts/run_task.sh b/scripts/run_task.sh index a6ed1f4f84..beec43e21c 100755 --- a/scripts/run_task.sh +++ b/scripts/run_task.sh @@ -7,4 +7,4 @@ if command -v task > /dev/null 2>&1; then exec task "${@}" else go run github.com/go-task/task/v3/cmd/task@v3.39.2 "${@}" -fi +fi diff --git a/scripts/shellcheck.sh b/scripts/shellcheck.sh index f57b853362..3897e5d2ce 100755 --- a/scripts/shellcheck.sh +++ b/scripts/shellcheck.sh @@ -52,4 +52,8 @@ for file in ${IGNORED_FILES}; do IGNORED_CONDITIONS+=(-path "${REPO_ROOT}/${file}" -prune) done -find "${REPO_ROOT}" \( "${IGNORED_CONDITIONS[@]}" \) -o -type f -name "*.sh" -print0 | xargs -0 "${SHELLCHECK}" "${@}" +if [[ $# -gt 0 ]]; then + find "${REPO_ROOT}" \( "${IGNORED_CONDITIONS[@]}" \) -o -type f -name "*.sh" -print0 | xargs -0 "${SHELLCHECK}" "$@" +else + find "${REPO_ROOT}" \( "${IGNORED_CONDITIONS[@]}" \) -o -type f -name "*.sh" -print0 | xargs -0 "${SHELLCHECK}" +fi diff --git a/scripts/upstream_files.txt b/scripts/upstream_files.txt index 565331c561..805464f0ca 100644 --- a/scripts/upstream_files.txt +++ b/scripts/upstream_files.txt @@ -24,4 +24,4 @@ internal/* !eth/gasprice/fee_info_provider_test.go !internal/ethapi/api.coreth.go !internal/ethapi/api.coreth_test.go -!internal/ethapi/api_extra.go \ No newline at end of file +!internal/ethapi/api_extra.go diff --git a/sync/README.md b/sync/README.md index d0a676e113..2fcf50eb43 100644 --- a/sync/README.md +++ b/sync/README.md @@ -1,33 +1,38 @@ # State sync ## Overview + Normally, a node joins the network through bootstrapping: First it fetches all blocks from genesis to the chain's last accepted block from peers, then it applies the state transition specified in each block to reach the state necessary to join consensus. State sync is an alternative in which a node downloads the state of the chain from its peers at a specific _syncable_ block height. Then, the node processes the rest of the chain's blocks (from syncable block to tip) via normal bootstrapping. -Blocks at heights divisible by `defaultSyncableInterval` (= 16,384 or 2**14) are considered syncable. +Blocks at heights divisible by `defaultSyncableInterval` (= 16,384 or 2\*\*14) are considered syncable. _Note: `defaultSyncableInterval` must be divisible by `CommitInterval` (= 4096). This is so the state corresponding to syncable blocks is available on nodes with pruning enabled._ State sync is faster than bootstrapping and uses less bandwidth and computation: + - Nodes joining the network do not process all the state transitions. - The amount of data sent over the network is proportionate to the amount of state not the chain's length _Note: nodes joining the network through state sync will not have historical state prior to the syncable block._ ## What is the chain state? + The node needs the following data from its peers to continue processing blocks from a syncable block: + - Accounts trie & storage tries for all accounts (at the state root corresponding to the syncable block), - State of the cross-chain shared memory (this data is fetched from peers as a merkelized trie containing add/remove operations from Import and Export Txs, known as the _atomic trie_), - Contract code referenced in the account trie, - 256 parents of the syncable block (required for the BLOCKHASH opcode) ## Code structure + State sync code is structured as follows: - `sync/handlers`: Nodes that have joined the network are expected to respond to valid requests for the chain state: - `LeafsRequestHandler`: handles requests for trie data (leafs) - `CodeRequestHandler`: handles requests for contract code - `BlockRequestHandler`: handles requests for blocks - - _Note: There are response size and time limits in place so peers joining the network do not overload peers providing data. Additionally, the engine tracks the CPU usage of each peer for such messages and throttles inbound requests accordingly._ + - _Note: There are response size and time limits in place so peers joining the network do not overload peers providing data. Additionally, the engine tracks the CPU usage of each peer for such messages and throttles inbound requests accordingly._ - `sync/client`: Validates responses from peers and provides support for syncing tries. - `sync/statesync`: Uses `sync/client` to sync EVM related state: Accounts, storage tries, and contract code. - `plugin/evm/syncer`: Uses `sync/client` to sync the atomic trie. @@ -37,8 +42,8 @@ State sync code is structured as follows: - `peer`: Contains abstractions used by `sync/statesync` to send requests to peers (`AppRequest`) and receive responses from peers (`AppResponse`). - `message`: Contains structs that are serialized and sent over the network during state sync. - ## Sync summaries & engine involvement + When a new node wants to join the network via state sync, it will need a few pieces of information as a starting point so it can make valid requests to its peers: - Number (height) and hash of the latest available syncable block, @@ -47,16 +52,17 @@ When a new node wants to join the network via state sync, it will need a few pie The above information is called a _state summary_, and each syncable block corresponds to one such summary (see `message.Summary`). The engine and VM interact as follows to find a syncable state summary: - -1. The engine calls `StateSyncEnabled`. The VM returns `true` to initiate state sync, or `false` to start bootstrapping. In `coreth`, this is controlled by the `state-sync-enabled` flag. -1. The engine calls `GetOngoingSyncStateSummary`. If the VM has a previously interrupted sync to resume it returns that summary. Otherwise, it returns `ErrNotFound`. By default, `coreth` will resume an interrupted sync. +1. The engine calls `StateSyncEnabled`. The VM returns `true` to initiate state sync, or `false` to start bootstrapping. In `coreth`, this is controlled by the `state-sync-enabled` flag. +1. The engine calls `GetOngoingSyncStateSummary`. If the VM has a previously interrupted sync to resume it returns that summary. Otherwise, it returns `ErrNotFound`. By default, `coreth` will resume an interrupted sync. 1. The engine samples peers for their latest available summaries, then verifies the correctness and availability of each sampled summary with validators. The messaging flow is documented [here](https://github.com/ava-labs/avalanchego/blob/master/snow/engine/snowman/block/README.md). 1. The engine calls `Accept` on the chosen summary. The VM may return `false` to skip syncing to this summary (`coreth` skips state sync for less than `defaultStateSyncMinBlocks = 300_000` blocks). If the VM decides to perform the sync, it must return `true` without blocking and fetch the state from its peers asynchronously. 1. The VM sends `common.StateSyncDone` on the `toEngine` channel on completion. 1. The engine calls `VM.SetState(Bootstrapping)`. Then, blocks after the syncable block are processed one by one. ## Syncing state + The following steps are executed by the VM to sync its state from peers (see `stateSyncClient.StateSync`): + 1. Wipe snapshot data 1. Sync 256 parents of the syncable block (see `BlockRequest`), 1. Sync the atomic trie, @@ -64,6 +70,7 @@ The following steps are executed by the VM to sync its state from peers (see `st 1. Update in-memory and on-disk pointers. Steps 3 and 4 involve syncing tries. To sync trie data, the VM will send a series of `LeafRequests` to its peers. Each request specifies: + - Type of trie (`NodeType`): - `statesync.StateTrieNode` (account trie and storage tries share the same database) - `atomic.TrieNode` (atomic trie has an independent database) @@ -73,18 +80,20 @@ Steps 3 and 4 involve syncing tries. To sync trie data, the VM will send a serie Peers responding to these requests send back trie leafs (key/value pairs) beginning at `Start` and up to `End` (or a maximum number of leafs). The response must also contain include a merkle proof for the range of leafs it contains. Nodes serving state sync data are responsible for constructing these proofs (see `sync/handlers/leafs_request.go`) `client.GetLeafs` handles sending a single request and validating the response. This method will retry the request from a different peer up to `maxRetryAttempts` (= 32) times if the peer's response is: + - malformed, - does not contain a valid merkle proof, - or is not received in time. - -If there are more leafs in a trie than can be returned in a single response, the client will make successive requests to continue fetching data (with `Start` set to the last key received) until the trie is complete. `CallbackLeafSyncer` manages this process and does a callback on each batch of received leafs. +If there are more leafs in a trie than can be returned in a single response, the client will make successive requests to continue fetching data (with `Start` set to the last key received) until the trie is complete. `CallbackLeafSyncer` manages this process and does a callback on each batch of received leafs. ### EVM state: Account trie, code, and storage tries + `sync/statesync.stateSyncer` uses `CallbackLeafSyncer` to sync the account trie. When the leaf callback is invoked, each leaf represents an account: + - If the account has contract code, it is requested from peers using `client.GetCode` - If the account has a storage root, it is added to the list of trie roots returned from the callback. `CallbackLeafSyncer` has `defaultNumThreads` (= 4) goroutines to fetch these tries concurrently. -If the account trie encounters a new storage trie task and there are already 4 in-progress trie tasks (1 for the account trie and 3 for in-progress storage trie tasks), then the account trie worker will block until one of the storage trie tasks finishes and it can create a new task. + If the account trie encounters a new storage trie task and there are already 4 in-progress trie tasks (1 for the account trie and 3 for in-progress storage trie tasks), then the account trie worker will block until one of the storage trie tasks finishes and it can create a new task. When an account leaf is received, it is converted to `SlimRLP` format and written to the snapshot. To reconstruct the trie, `stateSyncer` inserts leafs as they arrive in a `StackTrie`. Since leafs arrive sorted by increasing key order, the `StackTrie` can create intermediary trie nodes as soon as all possible children for a given path are known (by hashing the children). This allows the sync process to recreate the trie locally, without the need to transmit non-leaf nodes over the network. @@ -93,13 +102,16 @@ When the trie is complete, an `OnFinish` callback is called and we hash any rema When a storage trie leaf is received, it is stored in the account's storage snapshot. A `StackTrie` is used here to reconstruct intermediary trie nodes & root as well. ### Atomic trie + `plugin/evm.syncer` uses `CallbackLeafSyncer` to sync the atomic trie. In this trie, each leaf represents a set of put or remove shared memory operations and is structured as follows: + - Key: block height + peer blockchain ID - Value: codec serialized `atomic.Requests` (includes `PutRequests` and `RemoveRequests`) -For each 4096 blocks (`commitHeightInterval`) inserted in the atomic trie, a root is constructed and the trie is persisted. There is no concurrency in sycing this trie. +For each 4096 blocks (`commitHeightInterval`) inserted in the atomic trie, a root is constructed and the trie is persisted. There is no concurrency in sycing this trie. ### Updating in-memory and on-disk pointers + `plugin/evm.stateSyncClient.StateSyncSetLastSummaryBlock` is the last step in state sync. Once the tries have been synced, this method: @@ -109,8 +121,8 @@ Once the tries have been synced, this method: - Updates VM's last accepted block. - Applies the atomic operations from the atomic trie to shared memory. (Note: the VM will resume applying these operations even if the VM is shutdown prior to completing this step) - ## Resuming a partial sync operation + While state sync is faster than normal bootstrapping, the process may take several hours to complete. In case the node is shut down in the middle of a state sync, progress on syncing the account trie and storage tries is preserved: - When starting a sync, `stateSyncClient` persists the state summary to disk. This is so if the node is shut down while the sync is ongoing, this summary can be found and returned to the engine from `GetOngoingSyncStateSummary` upon node restart. @@ -121,10 +133,10 @@ While state sync is faster than normal bootstrapping, the process may take sever ## Configuration flags -| flag | type | description | default | -|------|------|-------------|---------| -| `state-sync-enabled` | `bool` | set to true to enable state sync | `false` | -| `state-sync-skip-resume` | `bool` | set to true to avoid resuming an ongoing sync | `false` | -| `state-sync-min-blocks` | `uint64` | Minimum number of blocks the chain must be ahead of local state to prefer state sync over bootstrapping | `300,000` | -| `state-sync-server-trie-cache` | `int` | Size of trie cache to serve state sync data in MB. Should be set to multiples of `64`. | `64` | -| `state-sync-ids` | `string` | a comma separated list of `NodeID-` prefixed node IDs to sync data from. If not provided, peers are randomly selected. | | +| flag | type | description | default | +| ------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------- | --------- | +| `state-sync-enabled` | `bool` | set to true to enable state sync | `false` | +| `state-sync-skip-resume` | `bool` | set to true to avoid resuming an ongoing sync | `false` | +| `state-sync-min-blocks` | `uint64` | Minimum number of blocks the chain must be ahead of local state to prefer state sync over bootstrapping | `300,000` | +| `state-sync-server-trie-cache` | `int` | Size of trie cache to serve state sync data in MB. Should be set to multiples of `64`. | `64` | +| `state-sync-ids` | `string` | a comma separated list of `NodeID-` prefixed node IDs to sync data from. If not provided, peers are randomly selected. | | From c310875b075b69a8fe1b0cc4cd51a9eeafde427c Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Fri, 15 Aug 2025 16:13:04 +0300 Subject: [PATCH 02/13] fix: revert scripts/lint.sh due to not being practical to run locally as a pre-push hook --- scripts/lint.sh | 67 ++++++++----------------------------------------- 1 file changed, 10 insertions(+), 57 deletions(-) diff --git a/scripts/lint.sh b/scripts/lint.sh index 310f49c2b4..ac8beb42d1 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -7,60 +7,16 @@ if ! [[ "$0" =~ scripts/lint.sh ]]; then exit 255 fi - -# Ensure bash>=4 for mapfile support; on macOS, re-exec with Homebrew bash if available -if ! declare -F mapfile >/dev/null 2>&1; then - if [[ "$(uname -s)" == "Darwin" ]]; then - if command -v brew >/dev/null 2>&1; then - HB_BASH="$(brew --prefix bash 2>/dev/null)/bin/bash" - if [[ -x "${HB_BASH}" ]]; then - exec "${HB_BASH}" "$0" "$@" - fi - fi - for p in /opt/homebrew/bin/bash /usr/local/bin/bash; do - if [[ -x "$p" ]]; then - exec "$p" "$0" "$@" - fi - done - echo >&2 "error: bash>=4 required. Install with: brew install bash" - exit 255 - fi -fi - # The -P option is not supported by the grep version installed by # default on macos. Since `-o errexit` is ignored in an if # conditional, triggering the problem here ensures script failure when # using an unsupported version of grep. -if ! grep -P 'lint.sh' scripts/lint.sh &>/dev/null; then - if [[ "$(uname -s)" == "Darwin" ]]; then - # On macOS, try Homebrew gnubin path and re-check - if command -v brew >/dev/null 2>&1; then - GNUGREP_PATH="$(brew --prefix grep)/libexec/gnubin" - if [[ -d "${GNUGREP_PATH}" ]]; then - export PATH="${GNUGREP_PATH}:${PATH}" - fi - fi - if ! grep -P 'lint.sh' scripts/lint.sh &>/dev/null; then - echo >&2 "error: This script requires a recent version of gnu grep." - echo >&2 " On macOS, install with: brew install grep" - echo >&2 " Ensure GNU grep is in PATH (e.g., \"\$(brew --prefix grep)/libexec/gnubin\")." - exit 255 - fi - fi -fi - -# Prefer pre-installed binaries and only fall back to `go run` if missing. -# This avoids repeated module downloads/compilation in pre-commit/pre-push subshells. -run_or_go() { - local _tool="$1" - local _module_at_version="$2" - shift 2 - if command -v "${_tool}" >/dev/null 2>&1; then - "${_tool}" "$@" - else - go run "${_module_at_version}" "$@" - fi -} +grep -P 'lint.sh' scripts/lint.sh &>/dev/null || ( + echo >&2 "error: This script requires a recent version of gnu grep." + echo >&2 " On macos, gnu grep can be installed with 'brew install grep'." + echo >&2 " It will also be necessary to ensure that gnu grep is available in the path." + exit 255 +) # Read excluded directories into arrays DEFAULT_FILES=() @@ -68,8 +24,7 @@ UPSTREAM_FILES=() function read_dirs { local upstream_folders_file="./scripts/upstream_files.txt" # Read the upstream_folders file into an array - local -a upstream_folders=() - mapfile -t upstream_folders < "$upstream_folders_file" + mapfile -t upstream_folders <"$upstream_folders_file" # Shared find filters local -a find_filters=( @@ -88,8 +43,6 @@ function read_dirs { local -a upstream_find_args=() local -a upstream_exclude_args=() for line in "${upstream_folders[@]}"; do - # Skip empty or whitespace-only lines to avoid matching the entire repo - [[ -z "${line//[[:space:]]/}" ]] && continue if [[ "$line" == !* ]]; then # Excluding files with ! upstream_exclude_args+=(! -path "./${line:1}") @@ -124,7 +77,7 @@ function read_dirs { TESTS=${TESTS:-"golangci_lint license_header require_error_is_no_funcs_as_params single_import interface_compliance_nil require_no_error_inline_func import_testing_only_in_tests"} function test_golangci_lint { - run_or_go "golangci-lint" "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63" run --config .golangci.yml + go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63 run --config .golangci.yml } # automatically checks license headers @@ -136,7 +89,7 @@ function test_license_header { if [[ ${#UPSTREAM_FILES[@]} -gt 0 ]]; then echo "Running license tool on upstream files with header for upstream..." # shellcheck disable=SC2086 - run_or_go "go-license" "github.com/palantir/go-license@v1.25.0" \ + go run github.com/palantir/go-license@v1.25.0 \ --config=./license_header_for_upstream.yml \ ${_addlicense_flags} \ "${UPSTREAM_FILES[@]}" \ @@ -146,7 +99,7 @@ function test_license_header { if [[ ${#DEFAULT_FILES[@]} -gt 0 ]]; then echo "Running license tool on remaining files with default header..." # shellcheck disable=SC2086 - run_or_go "go-license" "github.com/palantir/go-license@v1.25.0" \ + go run github.com/palantir/go-license@v1.25.0 \ --config=./license_header.yml \ ${_addlicense_flags} \ "${DEFAULT_FILES[@]}" \ From 250c4315f6906ba07aa293fe3ac23965c34d1311 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Fri, 15 Aug 2025 16:41:37 +0300 Subject: [PATCH 03/13] fix: add normalization steps when reading upstream_files.txt --- scripts/lint.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/lint.sh b/scripts/lint.sh index ac8beb42d1..61497ab362 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -18,6 +18,11 @@ grep -P 'lint.sh' scripts/lint.sh &>/dev/null || ( exit 255 ) +# Trim leading/trailing whitespace from a single line. +trim_ws() { + sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' +} + # Read excluded directories into arrays DEFAULT_FILES=() UPSTREAM_FILES=() @@ -43,6 +48,15 @@ function read_dirs { local -a upstream_find_args=() local -a upstream_exclude_args=() for line in "${upstream_folders[@]}"; do + # Normalize and skip invalid entries to avoid matching the entire repo: + # - strip CR (handles CRLF files) + # - trim leading/trailing whitespace + # - skip blank lines and comment lines + line=${line%$'\r'} + line=$(printf '%s' "$line" | trim_ws) + [[ -z "$line" ]] && continue + [[ "${line:0:1}" == "#" ]] && continue + if [[ "$line" == !* ]]; then # Excluding files with ! upstream_exclude_args+=(! -path "./${line:1}") @@ -51,7 +65,9 @@ function read_dirs { fi done # Remove the last '-o' from the arrays - unset 'upstream_find_args[${#upstream_find_args[@]}-1]' + if ((${#upstream_find_args[@]} > 0)); then + unset 'upstream_find_args[${#upstream_find_args[@]}-1]' + fi # Find upstream files mapfile -t UPSTREAM_FILES < <( From d739d3b4f475ea900a80b2d8f5951b37c7fcb581 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Mon, 18 Aug 2025 13:10:07 +0200 Subject: [PATCH 04/13] fix: add a blank line to please the license_header linter after the AvaLabs licence header --- accounts/abi/abi.go | 1 + accounts/abi/abi_test.go | 1 + accounts/abi/argument.go | 1 + accounts/abi/bind/auth.go | 1 + accounts/abi/bind/backend.go | 1 + accounts/abi/bind/backends/simulated.go | 1 + accounts/abi/bind/base.go | 1 + accounts/abi/bind/base_test.go | 1 + accounts/abi/bind/bind.go | 1 + accounts/abi/bind/bind_test.go | 1 + accounts/abi/bind/template.go | 1 + accounts/abi/bind/util.go | 1 + accounts/abi/bind/util_test.go | 1 + accounts/abi/doc.go | 1 + accounts/abi/error.go | 1 + accounts/abi/error_handling.go | 1 + accounts/abi/event.go | 1 + accounts/abi/event_test.go | 1 + accounts/abi/method.go | 1 + accounts/abi/method_test.go | 1 + accounts/abi/pack.go | 1 + accounts/abi/pack_test.go | 1 + accounts/abi/packing_test.go | 1 + accounts/abi/reflect.go | 1 + accounts/abi/reflect_test.go | 1 + accounts/abi/topics.go | 1 + accounts/abi/topics_test.go | 1 + accounts/abi/type.go | 1 + accounts/abi/type_test.go | 1 + accounts/abi/unpack.go | 1 + accounts/abi/unpack_test.go | 1 + accounts/abi/utils.go | 1 + cmd/abigen/main.go | 1 + cmd/utils/cmd.go | 1 + cmd/utils/flags.go | 1 + consensus/consensus.go | 1 + consensus/errors.go | 1 + consensus/misc/eip4844/eip4844.go | 1 + consensus/misc/eip4844/eip4844_test.go | 1 + core/bench_test.go | 1 + core/block_validator.go | 1 + core/block_validator_test.go | 1 + core/blockchain.go | 1 + core/blockchain_ext.go | 3 +++ core/blockchain_iterator.go | 1 + core/blockchain_reader.go | 1 + core/blockchain_repair_test.go | 1 + core/blockchain_sethead_test.go | 1 + core/blockchain_snapshot_test.go | 1 + core/blockchain_test.go | 1 + core/bloom_indexer.go | 1 + core/bloombits/doc.go | 1 + core/bloombits/generator.go | 1 + core/bloombits/generator_test.go | 1 + core/bloombits/matcher.go | 1 + core/bloombits/matcher_test.go | 1 + core/bloombits/scheduler.go | 1 + core/bloombits/scheduler_test.go | 1 + core/chain_indexer.go | 1 + core/chain_indexer_test.go | 1 + core/chain_makers.go | 1 + core/chain_makers_test.go | 1 + core/error.go | 1 + core/events.go | 1 + core/evm.go | 1 + core/gaspool.go | 1 + core/genesis.go | 1 + core/genesis_extra_test.go | 1 + core/genesis_test.go | 1 + core/headerchain.go | 1 + core/headerchain_test.go | 1 + core/mkalloc.go | 1 + core/rlp_test.go | 1 + core/sender_cacher.go | 1 + core/state/pruner/bloom.go | 1 + core/state/pruner/pruner.go | 1 + core/state/snapshot/context.go | 1 + core/state/snapshot/conversion.go | 1 + core/state/snapshot/difflayer.go | 1 + core/state/snapshot/difflayer_test.go | 1 + core/state/snapshot/disklayer.go | 1 + core/state/snapshot/disklayer_test.go | 1 + core/state/snapshot/generate.go | 1 + core/state/snapshot/generate_test.go | 1 + core/state/snapshot/iterator.go | 1 + core/state/snapshot/iterator_binary.go | 1 + core/state/snapshot/iterator_fast.go | 1 + core/state/snapshot/iterator_test.go | 1 + core/state/snapshot/journal.go | 1 + core/state/snapshot/snapshot.go | 1 + core/state/snapshot/snapshot_test.go | 1 + core/state/snapshot/utils.go | 1 + core/state/snapshot/wipe.go | 1 + core/state/snapshot/wipe_test.go | 1 + core/state_manager.go | 1 + core/state_processor.go | 1 + core/state_processor_test.go | 1 + core/state_transition.go | 1 + core/state_transition_test.go | 1 + core/txindexer.go | 1 + core/txindexer_test.go | 1 + core/txpool/blobpool/blobpool.go | 1 + core/txpool/blobpool/blobpool_test.go | 1 + core/txpool/blobpool/config.go | 1 + core/txpool/blobpool/evictheap.go | 1 + core/txpool/blobpool/evictheap_test.go | 1 + core/txpool/blobpool/interface.go | 1 + core/txpool/blobpool/limbo.go | 1 + core/txpool/blobpool/metrics.go | 1 + core/txpool/blobpool/priority.go | 1 + core/txpool/blobpool/priority_test.go | 1 + core/txpool/blobpool/slotter.go | 1 + core/txpool/blobpool/slotter_test.go | 1 + core/txpool/errors.go | 1 + core/txpool/legacypool/journal.go | 1 + core/txpool/legacypool/legacypool.go | 1 + core/txpool/legacypool/legacypool2_test.go | 1 + core/txpool/legacypool/legacypool_test.go | 1 + core/txpool/legacypool/list.go | 1 + core/txpool/legacypool/list_test.go | 1 + core/txpool/legacypool/noncer.go | 1 + core/txpool/subpool.go | 1 + core/txpool/txpool.go | 1 + core/txpool/validation.go | 1 + core/types.go | 1 + core/vm/runtime/doc.go | 1 + core/vm/runtime/env.go | 1 + core/vm/runtime/runtime.go | 1 + core/vm/runtime/runtime_example_test.go | 1 + core/vm/runtime/runtime_test.go | 1 + eth/api.go | 1 + eth/api_admin.go | 1 + eth/api_backend.go | 1 + eth/api_backend_test.go | 1 + eth/api_debug.go | 1 + eth/api_debug_test.go | 1 + eth/backend.go | 1 + eth/bloombits.go | 1 + eth/ethconfig/config.go | 1 + eth/filters/api.go | 1 + eth/filters/api_test.go | 1 + eth/filters/bench_test.go | 1 + eth/filters/filter.go | 1 + eth/filters/filter_system.go | 1 + eth/filters/filter_system_test.go | 1 + eth/filters/filter_test.go | 1 + eth/gasestimator/gasestimator.go | 1 + eth/gasprice/fee_info_provider.go | 1 + eth/gasprice/feehistory.go | 1 + eth/gasprice/feehistory_test.go | 1 + eth/gasprice/gasprice.go | 1 + eth/gasprice/gasprice_test.go | 1 + eth/state_accessor.go | 1 + eth/tracers/api.go | 1 + eth/tracers/api_test.go | 1 + eth/tracers/tracers.go | 1 + eth/tracers/tracers_test.go | 1 + eth/tracers/tracker.go | 1 + eth/tracers/tracker_test.go | 1 + ethclient/corethclient/corethclient.go | 1 + ethclient/ethclient.go | 1 + ethclient/signer.go | 1 + ethclient/simulated/backend.go | 1 + ethclient/simulated/backend_test.go | 1 + ethclient/simulated/options.go | 1 + ethclient/simulated/options_test.go | 1 + internal/blocktest/test_hash.go | 1 + internal/debug/api.go | 1 + internal/debug/flags.go | 1 + internal/debug/loudpanic.go | 1 + internal/debug/trace.go | 1 + internal/ethapi/addrlock.go | 1 + internal/ethapi/api.go | 1 + internal/ethapi/api_test.go | 1 + internal/ethapi/backend.go | 1 + internal/ethapi/errors.go | 1 + internal/ethapi/transaction_args.go | 1 + internal/ethapi/transaction_args_test.go | 1 + internal/flags/categories.go | 1 + internal/flags/helpers.go | 1 + internal/reexec/reexec.go | 1 + internal/reexec/self_linux.go | 1 + internal/reexec/self_others.go | 1 + internal/shutdowncheck/shutdown_tracker.go | 1 + internal/version/vcs.go | 1 + internal/version/version.go | 1 + miner/miner.go | 1 + miner/ordering.go | 1 + miner/ordering_test.go | 1 + miner/worker.go | 1 + node/api.go | 1 + node/config.go | 1 + node/defaults.go | 1 + node/errors.go | 1 + node/node.go | 1 + params/config.go | 1 + params/config_test.go | 1 + params/denomination.go | 1 + params/network_params.go | 1 + params/protocol_params.go | 1 + params/version.go | 1 + plugin/evm/atomic/sync/extender.go | 3 +++ plugin/evm/atomic/sync/summary_parser.go | 3 +++ plugin/evm/atomic/sync/summary_provider.go | 3 +++ plugin/evm/atomic/vm/api.go | 3 +++ plugin/evm/atomic/vm/bonus_blocks.go | 3 +++ plugin/evm/customlogs/log_ext.go | 3 +++ plugin/evm/customtypes/block_test.go | 1 + plugin/evm/customtypes/hashing_test.go | 1 + plugin/evm/customtypes/rlp_fuzzer_test.go | 1 + plugin/evm/customtypes/types_test.go | 1 + plugin/evm/message/block_sync_summary_parser.go | 3 +++ plugin/evm/message/block_sync_summary_provider.go | 3 +++ plugin/evm/vmtest/genesis.go | 3 +++ plugin/evm/vmtest/test_syncervm.go | 3 +++ rpc/client.go | 1 + rpc/client_opt.go | 1 + rpc/client_test.go | 1 + rpc/context_headers.go | 1 + rpc/doc.go | 1 + rpc/errors.go | 1 + rpc/handler.go | 1 + rpc/http.go | 1 + rpc/http_test.go | 1 + rpc/inproc.go | 1 + rpc/json.go | 1 + rpc/metrics.go | 1 + rpc/server.go | 1 + rpc/server_test.go | 1 + rpc/service.go | 1 + rpc/subscription.go | 1 + rpc/subscription_test.go | 1 + rpc/testservice_test.go | 1 + rpc/types.go | 1 + rpc/types_test.go | 1 + rpc/websocket.go | 1 + rpc/websocket_test.go | 1 + signer/core/apitypes/types.go | 1 + sync/vm/server.go | 3 +++ tests/init.go | 1 + tests/rlp_test_util.go | 1 + tests/state_test_util.go | 1 + triedb/hashdb/database.go | 1 + triedb/pathdb/database.go | 1 + triedb/pathdb/database_test.go | 1 + triedb/pathdb/difflayer.go | 1 + triedb/pathdb/difflayer_test.go | 1 + triedb/pathdb/disklayer.go | 1 + triedb/pathdb/errors.go | 1 + triedb/pathdb/history.go | 1 + triedb/pathdb/history_test.go | 1 + triedb/pathdb/journal.go | 1 + triedb/pathdb/layertree.go | 1 + triedb/pathdb/metrics.go | 1 + triedb/pathdb/nodebuffer.go | 1 + triedb/pathdb/testutils.go | 1 + utils/rpc/handler.go | 3 +++ 257 files changed, 283 insertions(+) diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go index 525b94912e..eaddb8135d 100644 --- a/accounts/abi/abi.go +++ b/accounts/abi/abi.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go index cbe5bd1b75..4165af339b 100644 --- a/accounts/abi/abi_test.go +++ b/accounts/abi/abi_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/argument.go b/accounts/abi/argument.go index e023880449..d6330934c1 100644 --- a/accounts/abi/argument.go +++ b/accounts/abi/argument.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go index 5be14b2eb7..143064d90f 100644 --- a/accounts/abi/bind/auth.go +++ b/accounts/abi/bind/auth.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go index bea9f3ef5e..65f346e660 100644 --- a/accounts/abi/bind/backend.go +++ b/accounts/abi/bind/backend.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index 3b4dfa9a40..bf0015d248 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index 9b2c0a476f..a6c0513ffe 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/base_test.go b/accounts/abi/bind/base_test.go index e8a49ce61e..c93d1e4326 100644 --- a/accounts/abi/bind/base_test.go +++ b/accounts/abi/bind/base_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go index b7620ad16b..b28fe91bba 100644 --- a/accounts/abi/bind/bind.go +++ b/accounts/abi/bind/bind.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go index b17389f3a0..9ab7573837 100644 --- a/accounts/abi/bind/bind_test.go +++ b/accounts/abi/bind/bind_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index c430a530da..5c43c5b6e0 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go index 046637f56c..f1a937060b 100644 --- a/accounts/abi/bind/util.go +++ b/accounts/abi/bind/util.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go index 559218f52e..3846299832 100644 --- a/accounts/abi/bind/util_test.go +++ b/accounts/abi/bind/util_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/doc.go b/accounts/abi/doc.go index 63398e271a..23f0d87018 100644 --- a/accounts/abi/doc.go +++ b/accounts/abi/doc.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/error.go b/accounts/abi/error.go index 79f8fdd7cb..eaa25921db 100644 --- a/accounts/abi/error.go +++ b/accounts/abi/error.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/error_handling.go b/accounts/abi/error_handling.go index 94fe097572..7322a5198c 100644 --- a/accounts/abi/error_handling.go +++ b/accounts/abi/error_handling.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/event.go b/accounts/abi/event.go index b2ac4ec71b..82f6ba10f0 100644 --- a/accounts/abi/event.go +++ b/accounts/abi/event.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/event_test.go b/accounts/abi/event_test.go index a3411e8685..7182f76f45 100644 --- a/accounts/abi/event_test.go +++ b/accounts/abi/event_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/method.go b/accounts/abi/method.go index e024339cc9..6e8a5def1d 100644 --- a/accounts/abi/method.go +++ b/accounts/abi/method.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/method_test.go b/accounts/abi/method_test.go index f59ccf17c0..39d0765315 100644 --- a/accounts/abi/method_test.go +++ b/accounts/abi/method_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go index 3657c46990..51b4af71c2 100644 --- a/accounts/abi/pack.go +++ b/accounts/abi/pack.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/pack_test.go b/accounts/abi/pack_test.go index 8671b6e091..047a26b53b 100644 --- a/accounts/abi/pack_test.go +++ b/accounts/abi/pack_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/packing_test.go b/accounts/abi/packing_test.go index 28fee6bb29..79934566e6 100644 --- a/accounts/abi/packing_test.go +++ b/accounts/abi/packing_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/reflect.go b/accounts/abi/reflect.go index aa27f42ac6..6fb46da0da 100644 --- a/accounts/abi/reflect.go +++ b/accounts/abi/reflect.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/reflect_test.go b/accounts/abi/reflect_test.go index 6dcce28a77..8ffde2b9fc 100644 --- a/accounts/abi/reflect_test.go +++ b/accounts/abi/reflect_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/topics.go b/accounts/abi/topics.go index 88af301c5f..9fc44a98c4 100644 --- a/accounts/abi/topics.go +++ b/accounts/abi/topics.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/topics_test.go b/accounts/abi/topics_test.go index cfb5e7209b..99e6232b5f 100644 --- a/accounts/abi/topics_test.go +++ b/accounts/abi/topics_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/type.go b/accounts/abi/type.go index b0c9365d4b..5ccbf68927 100644 --- a/accounts/abi/type.go +++ b/accounts/abi/type.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go index f4fa4adf88..6373a7db83 100644 --- a/accounts/abi/type_test.go +++ b/accounts/abi/type_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go index 4ebfefe99e..5658e99ac3 100644 --- a/accounts/abi/unpack.go +++ b/accounts/abi/unpack.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go index 8a07319037..6059fd2304 100644 --- a/accounts/abi/unpack_test.go +++ b/accounts/abi/unpack_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/utils.go b/accounts/abi/utils.go index c4e7d7bcdc..e2bdf7d9ad 100644 --- a/accounts/abi/utils.go +++ b/accounts/abi/utils.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index 03f1659f55..0752f21870 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of go-ethereum. // diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 5d1857d477..7825315c3f 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of go-ethereum. // diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 6903ad53de..d18767b326 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of go-ethereum. // diff --git a/consensus/consensus.go b/consensus/consensus.go index 5e0a922910..6778e2c046 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/consensus/errors.go b/consensus/errors.go index 0ef0898549..026626a2ad 100644 --- a/consensus/errors.go +++ b/consensus/errors.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index a3a8e675df..c009b0e407 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/consensus/misc/eip4844/eip4844_test.go b/consensus/misc/eip4844/eip4844_test.go index 8e273e8649..634dd51a06 100644 --- a/consensus/misc/eip4844/eip4844_test.go +++ b/consensus/misc/eip4844/eip4844_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bench_test.go b/core/bench_test.go index edd3ae430d..6fe0ffdd81 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/block_validator.go b/core/block_validator.go index 5d96b824a4..70348505e9 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/block_validator_test.go b/core/block_validator_test.go index 388497f573..084bf3a57a 100644 --- a/core/block_validator_test.go +++ b/core/block_validator_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain.go b/core/blockchain.go index 84f9bc139a..3bbf703730 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_ext.go b/core/blockchain_ext.go index fba50c8b82..e8e78a5180 100644 --- a/core/blockchain_ext.go +++ b/core/blockchain_ext.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package core diff --git a/core/blockchain_iterator.go b/core/blockchain_iterator.go index 56d34ff9a7..34954c9f93 100644 --- a/core/blockchain_iterator.go +++ b/core/blockchain_iterator.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index faa6786316..5b36a7e46d 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_repair_test.go b/core/blockchain_repair_test.go index 6a30086951..f035fcf911 100644 --- a/core/blockchain_repair_test.go +++ b/core/blockchain_repair_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_sethead_test.go b/core/blockchain_sethead_test.go index dbf50b5091..a25fafab73 100644 --- a/core/blockchain_sethead_test.go +++ b/core/blockchain_sethead_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_snapshot_test.go b/core/blockchain_snapshot_test.go index d17c32fec9..7c763f7834 100644 --- a/core/blockchain_snapshot_test.go +++ b/core/blockchain_snapshot_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 5c3b98d34d..89a573b981 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloom_indexer.go b/core/bloom_indexer.go index fa85b3fdc1..41feaff08c 100644 --- a/core/bloom_indexer.go +++ b/core/bloom_indexer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/doc.go b/core/bloombits/doc.go index b6d66e1fa0..0468f8aea9 100644 --- a/core/bloombits/doc.go +++ b/core/bloombits/doc.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/generator.go b/core/bloombits/generator.go index ea17e949b9..85f5314b59 100644 --- a/core/bloombits/generator.go +++ b/core/bloombits/generator.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/generator_test.go b/core/bloombits/generator_test.go index ae40567b95..d4da18939a 100644 --- a/core/bloombits/generator_test.go +++ b/core/bloombits/generator_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/matcher.go b/core/bloombits/matcher.go index 7b7d1299bd..11723189bb 100644 --- a/core/bloombits/matcher.go +++ b/core/bloombits/matcher.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/matcher_test.go b/core/bloombits/matcher_test.go index 7401b340e5..b3acf5c13f 100644 --- a/core/bloombits/matcher_test.go +++ b/core/bloombits/matcher_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/scheduler.go b/core/bloombits/scheduler.go index 3e0dbcfcb0..6bb6afad38 100644 --- a/core/bloombits/scheduler.go +++ b/core/bloombits/scheduler.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/scheduler_test.go b/core/bloombits/scheduler_test.go index 82f3df5c56..bb4334a6c4 100644 --- a/core/bloombits/scheduler_test.go +++ b/core/bloombits/scheduler_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_indexer.go b/core/chain_indexer.go index bbd143cfe8..a860792dd3 100644 --- a/core/chain_indexer.go +++ b/core/chain_indexer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_indexer_test.go b/core/chain_indexer_test.go index d6118b8222..92054f204e 100644 --- a/core/chain_indexer_test.go +++ b/core/chain_indexer_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_makers.go b/core/chain_makers.go index b5eba066c2..290d2d1960 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index 2bae562610..06cff1c453 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/error.go b/core/error.go index f4632e76f5..670206b9a3 100644 --- a/core/error.go +++ b/core/error.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/events.go b/core/events.go index 1652a12d47..3bda4eda60 100644 --- a/core/events.go +++ b/core/events.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/evm.go b/core/evm.go index 877c7f0f7f..6e5f940da7 100644 --- a/core/evm.go +++ b/core/evm.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/gaspool.go b/core/gaspool.go index 8b6c5f13b9..bdace76210 100644 --- a/core/gaspool.go +++ b/core/gaspool.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/genesis.go b/core/genesis.go index c6767ba1b7..687e186c4b 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/genesis_extra_test.go b/core/genesis_extra_test.go index 323af111f3..3f70bd5ffd 100644 --- a/core/genesis_extra_test.go +++ b/core/genesis_extra_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/genesis_test.go b/core/genesis_test.go index 4d5ea04d30..d64f12ad3e 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/headerchain.go b/core/headerchain.go index e39360d4b5..84730d0b4d 100644 --- a/core/headerchain.go +++ b/core/headerchain.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/headerchain_test.go b/core/headerchain_test.go index dadf28f7f2..b7414f9429 100644 --- a/core/headerchain_test.go +++ b/core/headerchain_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/mkalloc.go b/core/mkalloc.go index df68a4638a..7eab03560c 100644 --- a/core/mkalloc.go +++ b/core/mkalloc.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/rlp_test.go b/core/rlp_test.go index f1e248f2e3..1bb4ea7499 100644 --- a/core/rlp_test.go +++ b/core/rlp_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/sender_cacher.go b/core/sender_cacher.go index 5c16c041c7..68d23b6e51 100644 --- a/core/sender_cacher.go +++ b/core/sender_cacher.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/pruner/bloom.go b/core/state/pruner/bloom.go index 81706fda6b..cfde099cac 100644 --- a/core/state/pruner/bloom.go +++ b/core/state/pruner/bloom.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go index 43fc954a4f..db26363385 100644 --- a/core/state/pruner/pruner.go +++ b/core/state/pruner/pruner.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/context.go b/core/state/snapshot/context.go index 12e5b5a702..cb38b6683f 100644 --- a/core/state/snapshot/context.go +++ b/core/state/snapshot/context.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/conversion.go b/core/state/snapshot/conversion.go index 32aa33f22a..f137777275 100644 --- a/core/state/snapshot/conversion.go +++ b/core/state/snapshot/conversion.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/difflayer.go b/core/state/snapshot/difflayer.go index a71b44297c..3c56cdf88f 100644 --- a/core/state/snapshot/difflayer.go +++ b/core/state/snapshot/difflayer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/difflayer_test.go b/core/state/snapshot/difflayer_test.go index 03317a9e56..e474cae960 100644 --- a/core/state/snapshot/difflayer_test.go +++ b/core/state/snapshot/difflayer_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/disklayer.go b/core/state/snapshot/disklayer.go index 289f28aeb2..a01c1b1d9a 100644 --- a/core/state/snapshot/disklayer.go +++ b/core/state/snapshot/disklayer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/disklayer_test.go b/core/state/snapshot/disklayer_test.go index bc501ed600..a0969976b4 100644 --- a/core/state/snapshot/disklayer_test.go +++ b/core/state/snapshot/disklayer_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/generate.go b/core/state/snapshot/generate.go index 49b02f46d2..ea1907a485 100644 --- a/core/state/snapshot/generate.go +++ b/core/state/snapshot/generate.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/generate_test.go b/core/state/snapshot/generate_test.go index fd5c76e7e9..062c9cede1 100644 --- a/core/state/snapshot/generate_test.go +++ b/core/state/snapshot/generate_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator.go b/core/state/snapshot/iterator.go index 47e35a4a33..f6bc8cb48d 100644 --- a/core/state/snapshot/iterator.go +++ b/core/state/snapshot/iterator.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator_binary.go b/core/state/snapshot/iterator_binary.go index 0012533082..a265f5adc8 100644 --- a/core/state/snapshot/iterator_binary.go +++ b/core/state/snapshot/iterator_binary.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator_fast.go b/core/state/snapshot/iterator_fast.go index 6b3dab21e4..50363d950e 100644 --- a/core/state/snapshot/iterator_fast.go +++ b/core/state/snapshot/iterator_fast.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator_test.go b/core/state/snapshot/iterator_test.go index 155f004410..5a5e1177bb 100644 --- a/core/state/snapshot/iterator_test.go +++ b/core/state/snapshot/iterator_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/journal.go b/core/state/snapshot/journal.go index 23c1b2aba0..025c6e5000 100644 --- a/core/state/snapshot/journal.go +++ b/core/state/snapshot/journal.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go index 62e3d7b681..9d76095f41 100644 --- a/core/state/snapshot/snapshot.go +++ b/core/state/snapshot/snapshot.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/snapshot_test.go b/core/state/snapshot/snapshot_test.go index 063bafd5a0..d9b9347ae1 100644 --- a/core/state/snapshot/snapshot_test.go +++ b/core/state/snapshot/snapshot_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/utils.go b/core/state/snapshot/utils.go index 1f6be548cb..d293c893a3 100644 --- a/core/state/snapshot/utils.go +++ b/core/state/snapshot/utils.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/wipe.go b/core/state/snapshot/wipe.go index af03b8ab43..ff9f26f8a1 100644 --- a/core/state/snapshot/wipe.go +++ b/core/state/snapshot/wipe.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/wipe_test.go b/core/state/snapshot/wipe_test.go index ca0b5ca6d2..3b1cf4c660 100644 --- a/core/state/snapshot/wipe_test.go +++ b/core/state/snapshot/wipe_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_manager.go b/core/state_manager.go index 60d957f89d..b4969fcbfa 100644 --- a/core/state_manager.go +++ b/core/state_manager.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_processor.go b/core/state_processor.go index b17a679561..35f5209dbb 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_processor_test.go b/core/state_processor_test.go index 4e18b4ce81..805a95911c 100644 --- a/core/state_processor_test.go +++ b/core/state_processor_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_transition.go b/core/state_transition.go index 218c3f18d5..6f5bfa1282 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_transition_test.go b/core/state_transition_test.go index 41fd25717e..6149fc174a 100644 --- a/core/state_transition_test.go +++ b/core/state_transition_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txindexer.go b/core/txindexer.go index 6eae79f2e7..dea8a24f31 100644 --- a/core/txindexer.go +++ b/core/txindexer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txindexer_test.go b/core/txindexer_test.go index 30a26e171c..187eade6de 100644 --- a/core/txindexer_test.go +++ b/core/txindexer_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index a2384e5c61..7cfa305bd2 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/blobpool_test.go b/core/txpool/blobpool/blobpool_test.go index a8ca72a261..809fb4f4e3 100644 --- a/core/txpool/blobpool/blobpool_test.go +++ b/core/txpool/blobpool/blobpool_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/config.go b/core/txpool/blobpool/config.go index fdd585d23d..03ab5a266c 100644 --- a/core/txpool/blobpool/config.go +++ b/core/txpool/blobpool/config.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/evictheap.go b/core/txpool/blobpool/evictheap.go index ac1337ba98..3917f31def 100644 --- a/core/txpool/blobpool/evictheap.go +++ b/core/txpool/blobpool/evictheap.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/evictheap_test.go b/core/txpool/blobpool/evictheap_test.go index ce7ce502e8..f0ac134861 100644 --- a/core/txpool/blobpool/evictheap_test.go +++ b/core/txpool/blobpool/evictheap_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/interface.go b/core/txpool/blobpool/interface.go index ad326a9f55..d47a526d1e 100644 --- a/core/txpool/blobpool/interface.go +++ b/core/txpool/blobpool/interface.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/limbo.go b/core/txpool/blobpool/limbo.go index 037a6f5e6b..03ed4f0b53 100644 --- a/core/txpool/blobpool/limbo.go +++ b/core/txpool/blobpool/limbo.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/metrics.go b/core/txpool/blobpool/metrics.go index 1aa2ccd255..34daaa611c 100644 --- a/core/txpool/blobpool/metrics.go +++ b/core/txpool/blobpool/metrics.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/priority.go b/core/txpool/blobpool/priority.go index a9f07ca2ad..7bd209a6c4 100644 --- a/core/txpool/blobpool/priority.go +++ b/core/txpool/blobpool/priority.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/priority_test.go b/core/txpool/blobpool/priority_test.go index 12a6d3046c..f53dc56f06 100644 --- a/core/txpool/blobpool/priority_test.go +++ b/core/txpool/blobpool/priority_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/slotter.go b/core/txpool/blobpool/slotter.go index 3f32f92d60..c595762f3c 100644 --- a/core/txpool/blobpool/slotter.go +++ b/core/txpool/blobpool/slotter.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/slotter_test.go b/core/txpool/blobpool/slotter_test.go index 8ca011a8b8..64de69f665 100644 --- a/core/txpool/blobpool/slotter_test.go +++ b/core/txpool/blobpool/slotter_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/errors.go b/core/txpool/errors.go index a0b692fbeb..b2096fe147 100644 --- a/core/txpool/errors.go +++ b/core/txpool/errors.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/journal.go b/core/txpool/legacypool/journal.go index 5af2a312b7..fdae2b402d 100644 --- a/core/txpool/legacypool/journal.go +++ b/core/txpool/legacypool/journal.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index c27b536060..1eeaa90e40 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/legacypool2_test.go b/core/txpool/legacypool/legacypool2_test.go index 307ecf6f72..43c1224799 100644 --- a/core/txpool/legacypool/legacypool2_test.go +++ b/core/txpool/legacypool/legacypool2_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/legacypool_test.go b/core/txpool/legacypool/legacypool_test.go index 4abc132e1c..09e3a7e30d 100644 --- a/core/txpool/legacypool/legacypool_test.go +++ b/core/txpool/legacypool/legacypool_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/list.go b/core/txpool/legacypool/list.go index 82be51e9ca..b3f2927635 100644 --- a/core/txpool/legacypool/list.go +++ b/core/txpool/legacypool/list.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/list_test.go b/core/txpool/legacypool/list_test.go index 4e8fd5e162..719b2cb96e 100644 --- a/core/txpool/legacypool/list_test.go +++ b/core/txpool/legacypool/list_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/noncer.go b/core/txpool/legacypool/noncer.go index 6b6c8508ea..99c50b0abd 100644 --- a/core/txpool/legacypool/noncer.go +++ b/core/txpool/legacypool/noncer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/subpool.go b/core/txpool/subpool.go index 301105707c..1f72d9caa0 100644 --- a/core/txpool/subpool.go +++ b/core/txpool/subpool.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 724ffa4083..747a2dcf57 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/validation.go b/core/txpool/validation.go index 09d21df35b..eb22ae6e4e 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/types.go b/core/types.go index 7328a3d207..c8c9baef53 100644 --- a/core/types.go +++ b/core/types.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/doc.go b/core/vm/runtime/doc.go index f6b24b37fa..9a6e139d4a 100644 --- a/core/vm/runtime/doc.go +++ b/core/vm/runtime/doc.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index 99dcd66f96..bc9cae5a53 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index a8a55ece20..23cbb85294 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/runtime_example_test.go b/core/vm/runtime/runtime_example_test.go index 9f7325596a..92a53e7148 100644 --- a/core/vm/runtime/runtime_example_test.go +++ b/core/vm/runtime/runtime_example_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 502d1ef5a2..06c16eb857 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api.go b/eth/api.go index ed13f525cd..471b7b40db 100644 --- a/eth/api.go +++ b/eth/api.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_admin.go b/eth/api_admin.go index abce8dc4b0..8625cbb145 100644 --- a/eth/api_admin.go +++ b/eth/api_admin.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_backend.go b/eth/api_backend.go index b1b89ee652..70418bdc89 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_backend_test.go b/eth/api_backend_test.go index c7fce71324..5399bfc4f8 100644 --- a/eth/api_backend_test.go +++ b/eth/api_backend_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_debug.go b/eth/api_debug.go index 19b88ce16b..38136c841c 100644 --- a/eth/api_debug.go +++ b/eth/api_debug.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_debug_test.go b/eth/api_debug_test.go index 80b4136735..c43468da5f 100644 --- a/eth/api_debug_test.go +++ b/eth/api_debug_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/backend.go b/eth/backend.go index 7c3c3af424..97f2322446 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/bloombits.go b/eth/bloombits.go index e72be24126..921a872cdc 100644 --- a/eth/bloombits.go +++ b/eth/bloombits.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 09d48f5d43..e6c23b6717 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/api.go b/eth/filters/api.go index 89a83fa585..6aa70404d7 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go index 1667766370..9f61536699 100644 --- a/eth/filters/api_test.go +++ b/eth/filters/api_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go index b8de8d7bed..f4299499f8 100644 --- a/eth/filters/bench_test.go +++ b/eth/filters/bench_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 1c83a0c92c..6d63f0d467 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index 9636698212..552628cb0a 100644 --- a/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 9c54d7039a..51a4d50d7f 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index b0fbd5a86f..d1d4f9d4f0 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasestimator/gasestimator.go b/eth/gasestimator/gasestimator.go index 3fc7274f24..a564b068ab 100644 --- a/eth/gasestimator/gasestimator.go +++ b/eth/gasestimator/gasestimator.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/fee_info_provider.go b/eth/gasprice/fee_info_provider.go index de72c512e0..b81f36073a 100644 --- a/eth/gasprice/fee_info_provider.go +++ b/eth/gasprice/fee_info_provider.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/feehistory.go b/eth/gasprice/feehistory.go index 5a7322eaef..11bb93c349 100644 --- a/eth/gasprice/feehistory.go +++ b/eth/gasprice/feehistory.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/feehistory_test.go b/eth/gasprice/feehistory_test.go index 51af6e79a7..c5c26bff35 100644 --- a/eth/gasprice/feehistory_test.go +++ b/eth/gasprice/feehistory_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index af7e5fee91..fe1b70d5da 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/gasprice_test.go b/eth/gasprice/gasprice_test.go index 6ad8b9ef51..92fa257cd5 100644 --- a/eth/gasprice/gasprice_test.go +++ b/eth/gasprice/gasprice_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/state_accessor.go b/eth/state_accessor.go index 8542ff14b2..6b15cc8f0b 100644 --- a/eth/state_accessor.go +++ b/eth/state_accessor.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/api.go b/eth/tracers/api.go index 0250bce234..a43b8876b5 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go index c1aaca9a58..f8f63784da 100644 --- a/eth/tracers/api_test.go +++ b/eth/tracers/api_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracers.go b/eth/tracers/tracers.go index 3155ea4ebd..cb08dffdc6 100644 --- a/eth/tracers/tracers.go +++ b/eth/tracers/tracers.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go index 1a11a1c697..06c68d0aff 100644 --- a/eth/tracers/tracers_test.go +++ b/eth/tracers/tracers_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracker.go b/eth/tracers/tracker.go index 1be626b8cb..08081b6bdf 100644 --- a/eth/tracers/tracker.go +++ b/eth/tracers/tracker.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracker_test.go b/eth/tracers/tracker_test.go index 11ec3de333..c1841b3a63 100644 --- a/eth/tracers/tracker_test.go +++ b/eth/tracers/tracker_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/corethclient/corethclient.go b/ethclient/corethclient/corethclient.go index 8f9940aba3..1753e19326 100644 --- a/ethclient/corethclient/corethclient.go +++ b/ethclient/corethclient/corethclient.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 9b1c1629b3..3710748696 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/signer.go b/ethclient/signer.go index 21afd0fb63..5a25f66c1b 100644 --- a/ethclient/signer.go +++ b/ethclient/signer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/backend.go b/ethclient/simulated/backend.go index 5b0a5ecd94..4a404bf138 100644 --- a/ethclient/simulated/backend.go +++ b/ethclient/simulated/backend.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/backend_test.go b/ethclient/simulated/backend_test.go index 20b53817c9..fbec816d58 100644 --- a/ethclient/simulated/backend_test.go +++ b/ethclient/simulated/backend_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/options.go b/ethclient/simulated/options.go index e8a2744c0b..5bfa34fe29 100644 --- a/ethclient/simulated/options.go +++ b/ethclient/simulated/options.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/options_test.go b/ethclient/simulated/options_test.go index a41acf78b1..7abb7bfcdd 100644 --- a/ethclient/simulated/options_test.go +++ b/ethclient/simulated/options_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/blocktest/test_hash.go b/internal/blocktest/test_hash.go index 4a475be4bd..b1b482bf65 100644 --- a/internal/blocktest/test_hash.go +++ b/internal/blocktest/test_hash.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/api.go b/internal/debug/api.go index c0461f0265..3c8b916944 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 3307f246b3..7dcf4179b1 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/loudpanic.go b/internal/debug/loudpanic.go index 94de421c0e..2d0a1527b7 100644 --- a/internal/debug/loudpanic.go +++ b/internal/debug/loudpanic.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/trace.go b/internal/debug/trace.go index 60567fdac1..bb7eeb0a56 100644 --- a/internal/debug/trace.go +++ b/internal/debug/trace.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/addrlock.go b/internal/ethapi/addrlock.go index b4da3dd332..c72b70f9d8 100644 --- a/internal/ethapi/addrlock.go +++ b/internal/ethapi/addrlock.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index f7d153bf2d..7e3f0234bc 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 90d6a81c82..730bbdf8c7 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index e39cae783c..880c802f3b 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/errors.go b/internal/ethapi/errors.go index 694500d78c..c252a4b4b8 100644 --- a/internal/ethapi/errors.go +++ b/internal/ethapi/errors.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go index 2c0adc0619..abb790ffdf 100644 --- a/internal/ethapi/transaction_args.go +++ b/internal/ethapi/transaction_args.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/transaction_args_test.go b/internal/ethapi/transaction_args_test.go index ce432f4e8b..b47b3e43e3 100644 --- a/internal/ethapi/transaction_args_test.go +++ b/internal/ethapi/transaction_args_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/flags/categories.go b/internal/flags/categories.go index 85ae766399..40018d95a8 100644 --- a/internal/flags/categories.go +++ b/internal/flags/categories.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go index 14ce82579f..c48855bd55 100644 --- a/internal/flags/helpers.go +++ b/internal/flags/helpers.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/reexec/reexec.go b/internal/reexec/reexec.go index aaea61c2b8..9811efd57a 100644 --- a/internal/reexec/reexec.go +++ b/internal/reexec/reexec.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // This file originates from Docker/Moby, // https://github.com/moby/moby/blob/master/pkg/reexec/reexec.go // Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE diff --git a/internal/reexec/self_linux.go b/internal/reexec/self_linux.go index 6bb4e2a7ca..739f3d9201 100644 --- a/internal/reexec/self_linux.go +++ b/internal/reexec/self_linux.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // This file originates from Docker/Moby, // https://github.com/moby/moby/blob/master/pkg/reexec/ // Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE diff --git a/internal/reexec/self_others.go b/internal/reexec/self_others.go index 82a3806f37..c6d39905c8 100644 --- a/internal/reexec/self_others.go +++ b/internal/reexec/self_others.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // This file originates from Docker/Moby, // https://github.com/moby/moby/blob/master/pkg/reexec/ // Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE diff --git a/internal/shutdowncheck/shutdown_tracker.go b/internal/shutdowncheck/shutdown_tracker.go index e6758c0ebc..61193a3049 100644 --- a/internal/shutdowncheck/shutdown_tracker.go +++ b/internal/shutdowncheck/shutdown_tracker.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/version/vcs.go b/internal/version/vcs.go index 0acb045bc6..f8f5912efe 100644 --- a/internal/version/vcs.go +++ b/internal/version/vcs.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/version/version.go b/internal/version/version.go index 6a190996d9..bd00da305b 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/miner/miner.go b/miner/miner.go index a63638ccbb..3e77fbcc74 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/miner/ordering.go b/miner/ordering.go index d4a01e8acd..97e90d32eb 100644 --- a/miner/ordering.go +++ b/miner/ordering.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/miner/ordering_test.go b/miner/ordering_test.go index 3e3be9a88f..80e438c985 100644 --- a/miner/ordering_test.go +++ b/miner/ordering_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/miner/worker.go b/miner/worker.go index d0ec2f619d..ba3f33f1fa 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/api.go b/node/api.go index 312dc3770c..ad17e6eded 100644 --- a/node/api.go +++ b/node/api.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/config.go b/node/config.go index a48f7e62a7..8f88e1938e 100644 --- a/node/config.go +++ b/node/config.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/defaults.go b/node/defaults.go index c923288565..a20835282f 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/errors.go b/node/errors.go index fe91249e88..8a21de7575 100644 --- a/node/errors.go +++ b/node/errors.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/node.go b/node/node.go index 566d19dd1e..20b0c5b173 100644 --- a/node/node.go +++ b/node/node.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/config.go b/params/config.go index c02e095df2..13aeffd7f8 100644 --- a/params/config.go +++ b/params/config.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/config_test.go b/params/config_test.go index 4ad5f5e4a5..e9b93de43d 100644 --- a/params/config_test.go +++ b/params/config_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/denomination.go b/params/denomination.go index aa21e160b4..135b04eb95 100644 --- a/params/denomination.go +++ b/params/denomination.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/network_params.go b/params/network_params.go index bb57c5b4ea..4229de83b9 100644 --- a/params/network_params.go +++ b/params/network_params.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/protocol_params.go b/params/protocol_params.go index 71f0d3e0eb..8e105a79c2 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/version.go b/params/version.go index 26ead886cf..660ed73263 100644 --- a/params/version.go +++ b/params/version.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/atomic/sync/extender.go b/plugin/evm/atomic/sync/extender.go index 5a6a1c4e70..b4cb459f4e 100644 --- a/plugin/evm/atomic/sync/extender.go +++ b/plugin/evm/atomic/sync/extender.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package sync diff --git a/plugin/evm/atomic/sync/summary_parser.go b/plugin/evm/atomic/sync/summary_parser.go index ebe3be1895..d79f2ccbdb 100644 --- a/plugin/evm/atomic/sync/summary_parser.go +++ b/plugin/evm/atomic/sync/summary_parser.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package sync diff --git a/plugin/evm/atomic/sync/summary_provider.go b/plugin/evm/atomic/sync/summary_provider.go index 7577a5199f..fe5d3e365e 100644 --- a/plugin/evm/atomic/sync/summary_provider.go +++ b/plugin/evm/atomic/sync/summary_provider.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package sync diff --git a/plugin/evm/atomic/vm/api.go b/plugin/evm/atomic/vm/api.go index 640dd7ba37..b4e6e9a797 100644 --- a/plugin/evm/atomic/vm/api.go +++ b/plugin/evm/atomic/vm/api.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package vm diff --git a/plugin/evm/atomic/vm/bonus_blocks.go b/plugin/evm/atomic/vm/bonus_blocks.go index a81ceb9850..7f8ab6e304 100644 --- a/plugin/evm/atomic/vm/bonus_blocks.go +++ b/plugin/evm/atomic/vm/bonus_blocks.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package vm diff --git a/plugin/evm/customlogs/log_ext.go b/plugin/evm/customlogs/log_ext.go index ad1a2b70b8..5f16443873 100644 --- a/plugin/evm/customlogs/log_ext.go +++ b/plugin/evm/customlogs/log_ext.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package customlogs diff --git a/plugin/evm/customtypes/block_test.go b/plugin/evm/customtypes/block_test.go index 5fa273c267..64edbaa439 100644 --- a/plugin/evm/customtypes/block_test.go +++ b/plugin/evm/customtypes/block_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/customtypes/hashing_test.go b/plugin/evm/customtypes/hashing_test.go index ca1958e043..8bad45404c 100644 --- a/plugin/evm/customtypes/hashing_test.go +++ b/plugin/evm/customtypes/hashing_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/customtypes/rlp_fuzzer_test.go b/plugin/evm/customtypes/rlp_fuzzer_test.go index 18f7871c20..9ff15d46df 100644 --- a/plugin/evm/customtypes/rlp_fuzzer_test.go +++ b/plugin/evm/customtypes/rlp_fuzzer_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/customtypes/types_test.go b/plugin/evm/customtypes/types_test.go index 9ffa661d03..81b3321f1b 100644 --- a/plugin/evm/customtypes/types_test.go +++ b/plugin/evm/customtypes/types_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/message/block_sync_summary_parser.go b/plugin/evm/message/block_sync_summary_parser.go index 97435edece..ea06a78fba 100644 --- a/plugin/evm/message/block_sync_summary_parser.go +++ b/plugin/evm/message/block_sync_summary_parser.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package message diff --git a/plugin/evm/message/block_sync_summary_provider.go b/plugin/evm/message/block_sync_summary_provider.go index 959ae4d0b7..bdf1c78bda 100644 --- a/plugin/evm/message/block_sync_summary_provider.go +++ b/plugin/evm/message/block_sync_summary_provider.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package message diff --git a/plugin/evm/vmtest/genesis.go b/plugin/evm/vmtest/genesis.go index 2da9eb591f..2971b8ccd1 100644 --- a/plugin/evm/vmtest/genesis.go +++ b/plugin/evm/vmtest/genesis.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package vmtest diff --git a/plugin/evm/vmtest/test_syncervm.go b/plugin/evm/vmtest/test_syncervm.go index 7d5fd46637..48bb2303b4 100644 --- a/plugin/evm/vmtest/test_syncervm.go +++ b/plugin/evm/vmtest/test_syncervm.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package vmtest diff --git a/rpc/client.go b/rpc/client.go index 8eb38765f9..395fae133b 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/client_opt.go b/rpc/client_opt.go index 8872703402..52b3b8321f 100644 --- a/rpc/client_opt.go +++ b/rpc/client_opt.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/client_test.go b/rpc/client_test.go index fc642b68df..1db0f276aa 100644 --- a/rpc/client_test.go +++ b/rpc/client_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/context_headers.go b/rpc/context_headers.go index b9196591e2..aa8ce5a90e 100644 --- a/rpc/context_headers.go +++ b/rpc/context_headers.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/doc.go b/rpc/doc.go index 470ff967b2..5274bc8f15 100644 --- a/rpc/doc.go +++ b/rpc/doc.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/errors.go b/rpc/errors.go index 1a83e86991..4ac1f658cd 100644 --- a/rpc/errors.go +++ b/rpc/errors.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/handler.go b/rpc/handler.go index 911ef85a47..9bca53c3ec 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/http.go b/rpc/http.go index ad8ac022c2..9705f1951a 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/http_test.go b/rpc/http_test.go index 5ebf89ce00..27e314e6c4 100644 --- a/rpc/http_test.go +++ b/rpc/http_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/inproc.go b/rpc/inproc.go index cca928886c..d6967074f7 100644 --- a/rpc/inproc.go +++ b/rpc/inproc.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/json.go b/rpc/json.go index 80075b0150..64b5e20998 100644 --- a/rpc/json.go +++ b/rpc/json.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/metrics.go b/rpc/metrics.go index 7f2042e4c8..df42d19a25 100644 --- a/rpc/metrics.go +++ b/rpc/metrics.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/server.go b/rpc/server.go index 03471aae7c..bc0116d666 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/server_test.go b/rpc/server_test.go index f7fca121ac..974f9da817 100644 --- a/rpc/server_test.go +++ b/rpc/server_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/service.go b/rpc/service.go index 990b23bc1e..bec1824d29 100644 --- a/rpc/service.go +++ b/rpc/service.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/subscription.go b/rpc/subscription.go index b7702e4ee4..9165e26cc2 100644 --- a/rpc/subscription.go +++ b/rpc/subscription.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/subscription_test.go b/rpc/subscription_test.go index 4c59676094..b4b8b4645d 100644 --- a/rpc/subscription_test.go +++ b/rpc/subscription_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/testservice_test.go b/rpc/testservice_test.go index 9e052f6ffd..7233c079a7 100644 --- a/rpc/testservice_test.go +++ b/rpc/testservice_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/types.go b/rpc/types.go index 2a69f93c2e..d2c87efe14 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/types_test.go b/rpc/types_test.go index 07237bb275..36eb2d50aa 100644 --- a/rpc/types_test.go +++ b/rpc/types_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/websocket.go b/rpc/websocket.go index 2582a4b29c..2d4145321b 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/websocket_test.go b/rpc/websocket_test.go index c6d6c0a1d3..c5bb01b616 100644 --- a/rpc/websocket_test.go +++ b/rpc/websocket_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go index 410cf0a25e..559b172620 100644 --- a/signer/core/apitypes/types.go +++ b/signer/core/apitypes/types.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/sync/vm/server.go b/sync/vm/server.go index 75affdd620..16de37281a 100644 --- a/sync/vm/server.go +++ b/sync/vm/server.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package vm diff --git a/tests/init.go b/tests/init.go index 39d8858994..cc683374ac 100644 --- a/tests/init.go +++ b/tests/init.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go index b0dd078581..16f6f254e6 100644 --- a/tests/rlp_test_util.go +++ b/tests/rlp_test_util.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/tests/state_test_util.go b/tests/state_test_util.go index badd8cd65c..32efdb1ad1 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/hashdb/database.go b/triedb/hashdb/database.go index b35b01d666..b4264caec8 100644 --- a/triedb/hashdb/database.go +++ b/triedb/hashdb/database.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/database.go b/triedb/pathdb/database.go index 0c9de1e5c3..6e561bffcf 100644 --- a/triedb/pathdb/database.go +++ b/triedb/pathdb/database.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/database_test.go b/triedb/pathdb/database_test.go index 5f09a153c9..72c72c0d80 100644 --- a/triedb/pathdb/database_test.go +++ b/triedb/pathdb/database_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/difflayer.go b/triedb/pathdb/difflayer.go index 81f5f090e4..136b5209e1 100644 --- a/triedb/pathdb/difflayer.go +++ b/triedb/pathdb/difflayer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/difflayer_test.go b/triedb/pathdb/difflayer_test.go index 6e99813627..326f98bbf8 100644 --- a/triedb/pathdb/difflayer_test.go +++ b/triedb/pathdb/difflayer_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/disklayer.go b/triedb/pathdb/disklayer.go index 83637b8622..690238deed 100644 --- a/triedb/pathdb/disklayer.go +++ b/triedb/pathdb/disklayer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/errors.go b/triedb/pathdb/errors.go index 619966ed18..9a15c3364e 100644 --- a/triedb/pathdb/errors.go +++ b/triedb/pathdb/errors.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/history.go b/triedb/pathdb/history.go index 474f838bf1..ea78992f90 100644 --- a/triedb/pathdb/history.go +++ b/triedb/pathdb/history.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/history_test.go b/triedb/pathdb/history_test.go index eaf3782170..4aa79a6bb4 100644 --- a/triedb/pathdb/history_test.go +++ b/triedb/pathdb/history_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/journal.go b/triedb/pathdb/journal.go index 2eb031ed59..36b6355ec8 100644 --- a/triedb/pathdb/journal.go +++ b/triedb/pathdb/journal.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/layertree.go b/triedb/pathdb/layertree.go index 1c876b022b..9c0c36ebaa 100644 --- a/triedb/pathdb/layertree.go +++ b/triedb/pathdb/layertree.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/metrics.go b/triedb/pathdb/metrics.go index 760be26de1..e7e13102db 100644 --- a/triedb/pathdb/metrics.go +++ b/triedb/pathdb/metrics.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/nodebuffer.go b/triedb/pathdb/nodebuffer.go index 30b58e2377..2c4600ebb3 100644 --- a/triedb/pathdb/nodebuffer.go +++ b/triedb/pathdb/nodebuffer.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/testutils.go b/triedb/pathdb/testutils.go index 831e9748e3..845a9a96a9 100644 --- a/triedb/pathdb/testutils.go +++ b/triedb/pathdb/testutils.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/utils/rpc/handler.go b/utils/rpc/handler.go index 1203af3708..2b651827dd 100644 --- a/utils/rpc/handler.go +++ b/utils/rpc/handler.go @@ -1,3 +1,6 @@ +// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. +// See the file LICENSE for licensing terms. + // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package rpc From c0c59e302c2f56e101156ae7844b9e0189f6f819 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Mon, 18 Aug 2025 13:22:43 +0200 Subject: [PATCH 05/13] fix: revert unimpactful changes in lint.sh script --- scripts/lint.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/scripts/lint.sh b/scripts/lint.sh index 61497ab362..ac8beb42d1 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -18,11 +18,6 @@ grep -P 'lint.sh' scripts/lint.sh &>/dev/null || ( exit 255 ) -# Trim leading/trailing whitespace from a single line. -trim_ws() { - sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' -} - # Read excluded directories into arrays DEFAULT_FILES=() UPSTREAM_FILES=() @@ -48,15 +43,6 @@ function read_dirs { local -a upstream_find_args=() local -a upstream_exclude_args=() for line in "${upstream_folders[@]}"; do - # Normalize and skip invalid entries to avoid matching the entire repo: - # - strip CR (handles CRLF files) - # - trim leading/trailing whitespace - # - skip blank lines and comment lines - line=${line%$'\r'} - line=$(printf '%s' "$line" | trim_ws) - [[ -z "$line" ]] && continue - [[ "${line:0:1}" == "#" ]] && continue - if [[ "$line" == !* ]]; then # Excluding files with ! upstream_exclude_args+=(! -path "./${line:1}") @@ -65,9 +51,7 @@ function read_dirs { fi done # Remove the last '-o' from the arrays - if ((${#upstream_find_args[@]} > 0)); then - unset 'upstream_find_args[${#upstream_find_args[@]}-1]' - fi + unset 'upstream_find_args[${#upstream_find_args[@]}-1]' # Find upstream files mapfile -t UPSTREAM_FILES < <( From 6cfa3381dd52e4660a8327f0cd246e66a812073b Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Mon, 18 Aug 2025 13:37:49 +0200 Subject: [PATCH 06/13] fix: more license fixes --- core/blockchain_ext.go | 2 -- plugin/evm/atomic/sync/extender.go | 2 -- plugin/evm/atomic/sync/summary_parser.go | 2 -- plugin/evm/atomic/sync/summary_provider.go | 2 -- plugin/evm/atomic/vm/bonus_blocks.go | 2 -- utils/rpc/handler.go | 2 -- 6 files changed, 12 deletions(-) diff --git a/core/blockchain_ext.go b/core/blockchain_ext.go index e8e78a5180..6103980247 100644 --- a/core/blockchain_ext.go +++ b/core/blockchain_ext.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package core import "github.com/ava-labs/libevm/metrics" diff --git a/plugin/evm/atomic/sync/extender.go b/plugin/evm/atomic/sync/extender.go index b4cb459f4e..8510639fbf 100644 --- a/plugin/evm/atomic/sync/extender.go +++ b/plugin/evm/atomic/sync/extender.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package sync import ( diff --git a/plugin/evm/atomic/sync/summary_parser.go b/plugin/evm/atomic/sync/summary_parser.go index d79f2ccbdb..a294084cd1 100644 --- a/plugin/evm/atomic/sync/summary_parser.go +++ b/plugin/evm/atomic/sync/summary_parser.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package sync import ( diff --git a/plugin/evm/atomic/sync/summary_provider.go b/plugin/evm/atomic/sync/summary_provider.go index fe5d3e365e..407cf302bb 100644 --- a/plugin/evm/atomic/sync/summary_provider.go +++ b/plugin/evm/atomic/sync/summary_provider.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package sync import ( diff --git a/plugin/evm/atomic/vm/bonus_blocks.go b/plugin/evm/atomic/vm/bonus_blocks.go index 7f8ab6e304..b40d1dcc4b 100644 --- a/plugin/evm/atomic/vm/bonus_blocks.go +++ b/plugin/evm/atomic/vm/bonus_blocks.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package vm import "github.com/ava-labs/avalanchego/ids" diff --git a/utils/rpc/handler.go b/utils/rpc/handler.go index 2b651827dd..0dab358d61 100644 --- a/utils/rpc/handler.go +++ b/utils/rpc/handler.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package rpc import ( From fab273b86efe50fdb44b62c973abbbfc70186bd1 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Mon, 18 Aug 2025 13:51:16 +0200 Subject: [PATCH 07/13] fix: revert adding a new line after //********** because of the end-of-file-fixer check --- accounts/abi/abi.go | 1 - accounts/abi/abi_test.go | 1 - accounts/abi/argument.go | 1 - accounts/abi/bind/auth.go | 1 - accounts/abi/bind/backend.go | 1 - accounts/abi/bind/backends/simulated.go | 1 - accounts/abi/bind/base.go | 1 - accounts/abi/bind/base_test.go | 1 - accounts/abi/bind/bind.go | 1 - accounts/abi/bind/bind_test.go | 1 - accounts/abi/bind/template.go | 1 - accounts/abi/bind/util.go | 1 - accounts/abi/bind/util_test.go | 1 - accounts/abi/doc.go | 1 - accounts/abi/error.go | 1 - accounts/abi/error_handling.go | 1 - accounts/abi/event.go | 1 - accounts/abi/event_test.go | 1 - accounts/abi/method.go | 1 - accounts/abi/method_test.go | 1 - accounts/abi/pack.go | 1 - accounts/abi/pack_test.go | 1 - accounts/abi/packing_test.go | 1 - accounts/abi/reflect.go | 1 - accounts/abi/reflect_test.go | 1 - accounts/abi/topics.go | 1 - accounts/abi/topics_test.go | 1 - accounts/abi/type.go | 1 - accounts/abi/type_test.go | 1 - accounts/abi/unpack.go | 1 - accounts/abi/unpack_test.go | 1 - accounts/abi/utils.go | 1 - cmd/abigen/main.go | 1 - cmd/abigen/namefilter.go | 1 - cmd/abigen/namefilter_test.go | 1 - cmd/utils/cmd.go | 1 - cmd/utils/flags.go | 1 - consensus/consensus.go | 1 - consensus/errors.go | 1 - consensus/misc/eip4844/eip4844.go | 1 - consensus/misc/eip4844/eip4844_test.go | 1 - core/bench_test.go | 1 - core/block_validator.go | 1 - core/block_validator_test.go | 1 - core/blockchain.go | 1 - core/blockchain_iterator.go | 1 - core/blockchain_reader.go | 1 - core/blockchain_repair_test.go | 1 - core/blockchain_sethead_test.go | 1 - core/blockchain_snapshot_test.go | 1 - core/blockchain_test.go | 1 - core/bloom_indexer.go | 1 - core/bloombits/doc.go | 1 - core/bloombits/generator.go | 1 - core/bloombits/generator_test.go | 1 - core/bloombits/matcher.go | 1 - core/bloombits/matcher_test.go | 1 - core/bloombits/scheduler.go | 1 - core/bloombits/scheduler_test.go | 1 - core/chain_indexer.go | 1 - core/chain_indexer_test.go | 1 - core/chain_makers.go | 1 - core/chain_makers_test.go | 1 - core/error.go | 1 - core/events.go | 1 - core/evm.go | 1 - core/gaspool.go | 1 - core/genesis.go | 1 - core/genesis_extra_test.go | 1 - core/genesis_test.go | 1 - core/headerchain.go | 1 - core/headerchain_test.go | 1 - core/mkalloc.go | 1 - core/rlp_test.go | 1 - core/sender_cacher.go | 1 - core/state/pruner/bloom.go | 1 - core/state/pruner/pruner.go | 1 - core/state/snapshot/context.go | 1 - core/state/snapshot/conversion.go | 1 - core/state/snapshot/difflayer.go | 1 - core/state/snapshot/difflayer_test.go | 1 - core/state/snapshot/disklayer.go | 1 - core/state/snapshot/disklayer_test.go | 1 - core/state/snapshot/generate.go | 1 - core/state/snapshot/generate_test.go | 1 - core/state/snapshot/iterator.go | 1 - core/state/snapshot/iterator_binary.go | 1 - core/state/snapshot/iterator_fast.go | 1 - core/state/snapshot/iterator_test.go | 1 - core/state/snapshot/journal.go | 1 - core/state/snapshot/snapshot.go | 1 - core/state/snapshot/snapshot_test.go | 1 - core/state/snapshot/utils.go | 1 - core/state/snapshot/wipe.go | 1 - core/state/snapshot/wipe_test.go | 1 - core/state_manager.go | 1 - core/state_processor.go | 1 - core/state_processor_test.go | 1 - core/state_transition.go | 1 - core/state_transition_test.go | 1 - core/txindexer.go | 1 - core/txindexer_test.go | 1 - core/txpool/blobpool/blobpool.go | 1 - core/txpool/blobpool/blobpool_test.go | 1 - core/txpool/blobpool/config.go | 1 - core/txpool/blobpool/evictheap.go | 1 - core/txpool/blobpool/evictheap_test.go | 1 - core/txpool/blobpool/interface.go | 1 - core/txpool/blobpool/limbo.go | 1 - core/txpool/blobpool/metrics.go | 1 - core/txpool/blobpool/priority.go | 1 - core/txpool/blobpool/priority_test.go | 1 - core/txpool/blobpool/slotter.go | 1 - core/txpool/blobpool/slotter_test.go | 1 - core/txpool/errors.go | 1 - core/txpool/legacypool/journal.go | 1 - core/txpool/legacypool/legacypool.go | 1 - core/txpool/legacypool/legacypool2_test.go | 1 - core/txpool/legacypool/legacypool_test.go | 1 - core/txpool/legacypool/list.go | 1 - core/txpool/legacypool/list_test.go | 1 - core/txpool/legacypool/noncer.go | 1 - core/txpool/subpool.go | 1 - core/txpool/txpool.go | 1 - core/txpool/validation.go | 1 - core/types.go | 1 - core/vm/runtime/doc.go | 1 - core/vm/runtime/env.go | 1 - core/vm/runtime/runtime.go | 1 - core/vm/runtime/runtime_example_test.go | 1 - core/vm/runtime/runtime_test.go | 1 - eth/api.go | 1 - eth/api_admin.go | 1 - eth/api_backend.go | 1 - eth/api_backend_test.go | 1 - eth/api_debug.go | 1 - eth/api_debug_test.go | 1 - eth/backend.go | 1 - eth/bloombits.go | 1 - eth/ethconfig/config.go | 1 - eth/filters/api.go | 1 - eth/filters/api_test.go | 1 - eth/filters/bench_test.go | 1 - eth/filters/filter.go | 1 - eth/filters/filter_system.go | 1 - eth/filters/filter_system_test.go | 1 - eth/filters/filter_test.go | 1 - eth/gasestimator/gasestimator.go | 1 - eth/gasprice/fee_info_provider.go | 1 - eth/gasprice/feehistory.go | 1 - eth/gasprice/feehistory_test.go | 1 - eth/gasprice/gasprice.go | 1 - eth/gasprice/gasprice_test.go | 1 - eth/state_accessor.go | 1 - eth/tracers/api.go | 1 - eth/tracers/api_test.go | 1 - eth/tracers/tracers.go | 1 - eth/tracers/tracers_test.go | 1 - eth/tracers/tracker.go | 1 - eth/tracers/tracker_test.go | 1 - ethclient/corethclient/corethclient.go | 1 - ethclient/ethclient.go | 1 - ethclient/signer.go | 1 - ethclient/simulated/backend.go | 1 - ethclient/simulated/backend_test.go | 1 - ethclient/simulated/options.go | 1 - ethclient/simulated/options_test.go | 1 - internal/blocktest/test_hash.go | 1 - internal/debug/api.go | 1 - internal/debug/flags.go | 1 - internal/debug/loudpanic.go | 1 - internal/debug/trace.go | 1 - internal/ethapi/addrlock.go | 1 - internal/ethapi/api.go | 1 - internal/ethapi/api_test.go | 1 - internal/ethapi/backend.go | 1 - internal/ethapi/errors.go | 1 - internal/ethapi/transaction_args.go | 1 - internal/ethapi/transaction_args_test.go | 1 - internal/flags/categories.go | 1 - internal/flags/helpers.go | 1 - internal/reexec/reexec.go | 1 - internal/reexec/self_linux.go | 1 - internal/reexec/self_others.go | 1 - internal/shutdowncheck/shutdown_tracker.go | 1 - internal/version/vcs.go | 1 - internal/version/version.go | 1 - license_header_for_upstream.yml | 2 +- log/format.go | 1 - log/handler.go | 1 - log/logger.go | 1 - miner/miner.go | 1 - miner/ordering.go | 1 - miner/ordering_test.go | 1 - miner/worker.go | 1 - node/api.go | 1 - node/config.go | 1 - node/defaults.go | 1 - node/errors.go | 1 - node/node.go | 1 - params/config.go | 1 - params/config_test.go | 1 - params/denomination.go | 1 - params/network_params.go | 1 - params/protocol_params.go | 1 - params/version.go | 1 - plugin/evm/customtypes/block_test.go | 1 - plugin/evm/customtypes/hashing_test.go | 1 - plugin/evm/customtypes/rlp_fuzzer_test.go | 1 - plugin/evm/customtypes/types_test.go | 1 - rpc/client.go | 1 - rpc/client_opt.go | 1 - rpc/client_opt_test.go | 1 - rpc/client_test.go | 1 - rpc/context_headers.go | 1 - rpc/doc.go | 1 - rpc/errors.go | 1 - rpc/handler.go | 1 - rpc/http.go | 1 - rpc/http_test.go | 1 - rpc/inproc.go | 1 - rpc/json.go | 1 - rpc/metrics.go | 1 - rpc/server.go | 1 - rpc/server_test.go | 1 - rpc/service.go | 1 - rpc/subscription.go | 1 - rpc/subscription_test.go | 1 - rpc/testservice_test.go | 1 - rpc/types.go | 1 - rpc/types_test.go | 1 - rpc/websocket.go | 1 - rpc/websocket_test.go | 1 - signer/core/apitypes/types.go | 1 - tests/init.go | 1 - tests/rlp_test_util.go | 1 - tests/state_test_util.go | 1 - triedb/hashdb/database.go | 1 - triedb/pathdb/database.go | 1 - triedb/pathdb/database_test.go | 1 - triedb/pathdb/difflayer.go | 1 - triedb/pathdb/difflayer_test.go | 1 - triedb/pathdb/disklayer.go | 1 - triedb/pathdb/errors.go | 1 - triedb/pathdb/history.go | 1 - triedb/pathdb/history_test.go | 1 - triedb/pathdb/journal.go | 1 - triedb/pathdb/layertree.go | 1 - triedb/pathdb/metrics.go | 1 - triedb/pathdb/nodebuffer.go | 1 - triedb/pathdb/testutils.go | 1 - 251 files changed, 1 insertion(+), 251 deletions(-) diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go index eaddb8135d..525b94912e 100644 --- a/accounts/abi/abi.go +++ b/accounts/abi/abi.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go index 4165af339b..cbe5bd1b75 100644 --- a/accounts/abi/abi_test.go +++ b/accounts/abi/abi_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/argument.go b/accounts/abi/argument.go index d6330934c1..e023880449 100644 --- a/accounts/abi/argument.go +++ b/accounts/abi/argument.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go index 143064d90f..5be14b2eb7 100644 --- a/accounts/abi/bind/auth.go +++ b/accounts/abi/bind/auth.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go index 65f346e660..bea9f3ef5e 100644 --- a/accounts/abi/bind/backend.go +++ b/accounts/abi/bind/backend.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index bf0015d248..3b4dfa9a40 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index a6c0513ffe..9b2c0a476f 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/base_test.go b/accounts/abi/bind/base_test.go index c93d1e4326..e8a49ce61e 100644 --- a/accounts/abi/bind/base_test.go +++ b/accounts/abi/bind/base_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go index b28fe91bba..b7620ad16b 100644 --- a/accounts/abi/bind/bind.go +++ b/accounts/abi/bind/bind.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go index 9ab7573837..b17389f3a0 100644 --- a/accounts/abi/bind/bind_test.go +++ b/accounts/abi/bind/bind_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index 5c43c5b6e0..c430a530da 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go index f1a937060b..046637f56c 100644 --- a/accounts/abi/bind/util.go +++ b/accounts/abi/bind/util.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go index 3846299832..559218f52e 100644 --- a/accounts/abi/bind/util_test.go +++ b/accounts/abi/bind/util_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/doc.go b/accounts/abi/doc.go index 23f0d87018..63398e271a 100644 --- a/accounts/abi/doc.go +++ b/accounts/abi/doc.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/error.go b/accounts/abi/error.go index eaa25921db..79f8fdd7cb 100644 --- a/accounts/abi/error.go +++ b/accounts/abi/error.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/error_handling.go b/accounts/abi/error_handling.go index 7322a5198c..94fe097572 100644 --- a/accounts/abi/error_handling.go +++ b/accounts/abi/error_handling.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/event.go b/accounts/abi/event.go index 82f6ba10f0..b2ac4ec71b 100644 --- a/accounts/abi/event.go +++ b/accounts/abi/event.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/event_test.go b/accounts/abi/event_test.go index 7182f76f45..a3411e8685 100644 --- a/accounts/abi/event_test.go +++ b/accounts/abi/event_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/method.go b/accounts/abi/method.go index 6e8a5def1d..e024339cc9 100644 --- a/accounts/abi/method.go +++ b/accounts/abi/method.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/method_test.go b/accounts/abi/method_test.go index 39d0765315..f59ccf17c0 100644 --- a/accounts/abi/method_test.go +++ b/accounts/abi/method_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go index 51b4af71c2..3657c46990 100644 --- a/accounts/abi/pack.go +++ b/accounts/abi/pack.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/pack_test.go b/accounts/abi/pack_test.go index 047a26b53b..8671b6e091 100644 --- a/accounts/abi/pack_test.go +++ b/accounts/abi/pack_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/packing_test.go b/accounts/abi/packing_test.go index 79934566e6..28fee6bb29 100644 --- a/accounts/abi/packing_test.go +++ b/accounts/abi/packing_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/reflect.go b/accounts/abi/reflect.go index 6fb46da0da..aa27f42ac6 100644 --- a/accounts/abi/reflect.go +++ b/accounts/abi/reflect.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/reflect_test.go b/accounts/abi/reflect_test.go index 8ffde2b9fc..6dcce28a77 100644 --- a/accounts/abi/reflect_test.go +++ b/accounts/abi/reflect_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/topics.go b/accounts/abi/topics.go index 9fc44a98c4..88af301c5f 100644 --- a/accounts/abi/topics.go +++ b/accounts/abi/topics.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/topics_test.go b/accounts/abi/topics_test.go index 99e6232b5f..cfb5e7209b 100644 --- a/accounts/abi/topics_test.go +++ b/accounts/abi/topics_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/type.go b/accounts/abi/type.go index 5ccbf68927..b0c9365d4b 100644 --- a/accounts/abi/type.go +++ b/accounts/abi/type.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go index 6373a7db83..f4fa4adf88 100644 --- a/accounts/abi/type_test.go +++ b/accounts/abi/type_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go index 5658e99ac3..4ebfefe99e 100644 --- a/accounts/abi/unpack.go +++ b/accounts/abi/unpack.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go index 6059fd2304..8a07319037 100644 --- a/accounts/abi/unpack_test.go +++ b/accounts/abi/unpack_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/accounts/abi/utils.go b/accounts/abi/utils.go index e2bdf7d9ad..c4e7d7bcdc 100644 --- a/accounts/abi/utils.go +++ b/accounts/abi/utils.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index 0752f21870..03f1659f55 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of go-ethereum. // diff --git a/cmd/abigen/namefilter.go b/cmd/abigen/namefilter.go index 1785c5b76b..fba96f622c 100644 --- a/cmd/abigen/namefilter.go +++ b/cmd/abigen/namefilter.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - package main import ( diff --git a/cmd/abigen/namefilter_test.go b/cmd/abigen/namefilter_test.go index 1cb691c0f9..174ad8114c 100644 --- a/cmd/abigen/namefilter_test.go +++ b/cmd/abigen/namefilter_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - package main import ( diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 7825315c3f..5d1857d477 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of go-ethereum. // diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index d18767b326..6903ad53de 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of go-ethereum. // diff --git a/consensus/consensus.go b/consensus/consensus.go index 6778e2c046..5e0a922910 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/consensus/errors.go b/consensus/errors.go index 026626a2ad..0ef0898549 100644 --- a/consensus/errors.go +++ b/consensus/errors.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index c009b0e407..a3a8e675df 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/consensus/misc/eip4844/eip4844_test.go b/consensus/misc/eip4844/eip4844_test.go index 634dd51a06..8e273e8649 100644 --- a/consensus/misc/eip4844/eip4844_test.go +++ b/consensus/misc/eip4844/eip4844_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bench_test.go b/core/bench_test.go index 6fe0ffdd81..edd3ae430d 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/block_validator.go b/core/block_validator.go index 70348505e9..5d96b824a4 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/block_validator_test.go b/core/block_validator_test.go index 084bf3a57a..388497f573 100644 --- a/core/block_validator_test.go +++ b/core/block_validator_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain.go b/core/blockchain.go index 3bbf703730..84f9bc139a 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_iterator.go b/core/blockchain_iterator.go index 34954c9f93..56d34ff9a7 100644 --- a/core/blockchain_iterator.go +++ b/core/blockchain_iterator.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index 5b36a7e46d..faa6786316 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_repair_test.go b/core/blockchain_repair_test.go index f035fcf911..6a30086951 100644 --- a/core/blockchain_repair_test.go +++ b/core/blockchain_repair_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_sethead_test.go b/core/blockchain_sethead_test.go index a25fafab73..dbf50b5091 100644 --- a/core/blockchain_sethead_test.go +++ b/core/blockchain_sethead_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_snapshot_test.go b/core/blockchain_snapshot_test.go index 7c763f7834..d17c32fec9 100644 --- a/core/blockchain_snapshot_test.go +++ b/core/blockchain_snapshot_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 89a573b981..5c3b98d34d 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloom_indexer.go b/core/bloom_indexer.go index 41feaff08c..fa85b3fdc1 100644 --- a/core/bloom_indexer.go +++ b/core/bloom_indexer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/doc.go b/core/bloombits/doc.go index 0468f8aea9..b6d66e1fa0 100644 --- a/core/bloombits/doc.go +++ b/core/bloombits/doc.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/generator.go b/core/bloombits/generator.go index 85f5314b59..ea17e949b9 100644 --- a/core/bloombits/generator.go +++ b/core/bloombits/generator.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/generator_test.go b/core/bloombits/generator_test.go index d4da18939a..ae40567b95 100644 --- a/core/bloombits/generator_test.go +++ b/core/bloombits/generator_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/matcher.go b/core/bloombits/matcher.go index 11723189bb..7b7d1299bd 100644 --- a/core/bloombits/matcher.go +++ b/core/bloombits/matcher.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/matcher_test.go b/core/bloombits/matcher_test.go index b3acf5c13f..7401b340e5 100644 --- a/core/bloombits/matcher_test.go +++ b/core/bloombits/matcher_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/scheduler.go b/core/bloombits/scheduler.go index 6bb6afad38..3e0dbcfcb0 100644 --- a/core/bloombits/scheduler.go +++ b/core/bloombits/scheduler.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/bloombits/scheduler_test.go b/core/bloombits/scheduler_test.go index bb4334a6c4..82f3df5c56 100644 --- a/core/bloombits/scheduler_test.go +++ b/core/bloombits/scheduler_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_indexer.go b/core/chain_indexer.go index a860792dd3..bbd143cfe8 100644 --- a/core/chain_indexer.go +++ b/core/chain_indexer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_indexer_test.go b/core/chain_indexer_test.go index 92054f204e..d6118b8222 100644 --- a/core/chain_indexer_test.go +++ b/core/chain_indexer_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_makers.go b/core/chain_makers.go index 290d2d1960..b5eba066c2 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index 06cff1c453..2bae562610 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/error.go b/core/error.go index 670206b9a3..f4632e76f5 100644 --- a/core/error.go +++ b/core/error.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/events.go b/core/events.go index 3bda4eda60..1652a12d47 100644 --- a/core/events.go +++ b/core/events.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/evm.go b/core/evm.go index 6e5f940da7..877c7f0f7f 100644 --- a/core/evm.go +++ b/core/evm.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/gaspool.go b/core/gaspool.go index bdace76210..8b6c5f13b9 100644 --- a/core/gaspool.go +++ b/core/gaspool.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/genesis.go b/core/genesis.go index 687e186c4b..c6767ba1b7 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/genesis_extra_test.go b/core/genesis_extra_test.go index 3f70bd5ffd..323af111f3 100644 --- a/core/genesis_extra_test.go +++ b/core/genesis_extra_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/genesis_test.go b/core/genesis_test.go index d64f12ad3e..4d5ea04d30 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/headerchain.go b/core/headerchain.go index 84730d0b4d..e39360d4b5 100644 --- a/core/headerchain.go +++ b/core/headerchain.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/headerchain_test.go b/core/headerchain_test.go index b7414f9429..dadf28f7f2 100644 --- a/core/headerchain_test.go +++ b/core/headerchain_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/mkalloc.go b/core/mkalloc.go index 7eab03560c..df68a4638a 100644 --- a/core/mkalloc.go +++ b/core/mkalloc.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/rlp_test.go b/core/rlp_test.go index 1bb4ea7499..f1e248f2e3 100644 --- a/core/rlp_test.go +++ b/core/rlp_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/sender_cacher.go b/core/sender_cacher.go index 68d23b6e51..5c16c041c7 100644 --- a/core/sender_cacher.go +++ b/core/sender_cacher.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/pruner/bloom.go b/core/state/pruner/bloom.go index cfde099cac..81706fda6b 100644 --- a/core/state/pruner/bloom.go +++ b/core/state/pruner/bloom.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go index db26363385..43fc954a4f 100644 --- a/core/state/pruner/pruner.go +++ b/core/state/pruner/pruner.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/context.go b/core/state/snapshot/context.go index cb38b6683f..12e5b5a702 100644 --- a/core/state/snapshot/context.go +++ b/core/state/snapshot/context.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/conversion.go b/core/state/snapshot/conversion.go index f137777275..32aa33f22a 100644 --- a/core/state/snapshot/conversion.go +++ b/core/state/snapshot/conversion.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/difflayer.go b/core/state/snapshot/difflayer.go index 3c56cdf88f..a71b44297c 100644 --- a/core/state/snapshot/difflayer.go +++ b/core/state/snapshot/difflayer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/difflayer_test.go b/core/state/snapshot/difflayer_test.go index e474cae960..03317a9e56 100644 --- a/core/state/snapshot/difflayer_test.go +++ b/core/state/snapshot/difflayer_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/disklayer.go b/core/state/snapshot/disklayer.go index a01c1b1d9a..289f28aeb2 100644 --- a/core/state/snapshot/disklayer.go +++ b/core/state/snapshot/disklayer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/disklayer_test.go b/core/state/snapshot/disklayer_test.go index a0969976b4..bc501ed600 100644 --- a/core/state/snapshot/disklayer_test.go +++ b/core/state/snapshot/disklayer_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/generate.go b/core/state/snapshot/generate.go index ea1907a485..49b02f46d2 100644 --- a/core/state/snapshot/generate.go +++ b/core/state/snapshot/generate.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/generate_test.go b/core/state/snapshot/generate_test.go index 062c9cede1..fd5c76e7e9 100644 --- a/core/state/snapshot/generate_test.go +++ b/core/state/snapshot/generate_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator.go b/core/state/snapshot/iterator.go index f6bc8cb48d..47e35a4a33 100644 --- a/core/state/snapshot/iterator.go +++ b/core/state/snapshot/iterator.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator_binary.go b/core/state/snapshot/iterator_binary.go index a265f5adc8..0012533082 100644 --- a/core/state/snapshot/iterator_binary.go +++ b/core/state/snapshot/iterator_binary.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator_fast.go b/core/state/snapshot/iterator_fast.go index 50363d950e..6b3dab21e4 100644 --- a/core/state/snapshot/iterator_fast.go +++ b/core/state/snapshot/iterator_fast.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/iterator_test.go b/core/state/snapshot/iterator_test.go index 5a5e1177bb..155f004410 100644 --- a/core/state/snapshot/iterator_test.go +++ b/core/state/snapshot/iterator_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/journal.go b/core/state/snapshot/journal.go index 025c6e5000..23c1b2aba0 100644 --- a/core/state/snapshot/journal.go +++ b/core/state/snapshot/journal.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go index 9d76095f41..62e3d7b681 100644 --- a/core/state/snapshot/snapshot.go +++ b/core/state/snapshot/snapshot.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/snapshot_test.go b/core/state/snapshot/snapshot_test.go index d9b9347ae1..063bafd5a0 100644 --- a/core/state/snapshot/snapshot_test.go +++ b/core/state/snapshot/snapshot_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/utils.go b/core/state/snapshot/utils.go index d293c893a3..1f6be548cb 100644 --- a/core/state/snapshot/utils.go +++ b/core/state/snapshot/utils.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/wipe.go b/core/state/snapshot/wipe.go index ff9f26f8a1..af03b8ab43 100644 --- a/core/state/snapshot/wipe.go +++ b/core/state/snapshot/wipe.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state/snapshot/wipe_test.go b/core/state/snapshot/wipe_test.go index 3b1cf4c660..ca0b5ca6d2 100644 --- a/core/state/snapshot/wipe_test.go +++ b/core/state/snapshot/wipe_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_manager.go b/core/state_manager.go index b4969fcbfa..60d957f89d 100644 --- a/core/state_manager.go +++ b/core/state_manager.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_processor.go b/core/state_processor.go index 35f5209dbb..b17a679561 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_processor_test.go b/core/state_processor_test.go index 805a95911c..4e18b4ce81 100644 --- a/core/state_processor_test.go +++ b/core/state_processor_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_transition.go b/core/state_transition.go index 6f5bfa1282..218c3f18d5 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/state_transition_test.go b/core/state_transition_test.go index 6149fc174a..41fd25717e 100644 --- a/core/state_transition_test.go +++ b/core/state_transition_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txindexer.go b/core/txindexer.go index dea8a24f31..6eae79f2e7 100644 --- a/core/txindexer.go +++ b/core/txindexer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txindexer_test.go b/core/txindexer_test.go index 187eade6de..30a26e171c 100644 --- a/core/txindexer_test.go +++ b/core/txindexer_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index 7cfa305bd2..a2384e5c61 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/blobpool_test.go b/core/txpool/blobpool/blobpool_test.go index 809fb4f4e3..a8ca72a261 100644 --- a/core/txpool/blobpool/blobpool_test.go +++ b/core/txpool/blobpool/blobpool_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/config.go b/core/txpool/blobpool/config.go index 03ab5a266c..fdd585d23d 100644 --- a/core/txpool/blobpool/config.go +++ b/core/txpool/blobpool/config.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/evictheap.go b/core/txpool/blobpool/evictheap.go index 3917f31def..ac1337ba98 100644 --- a/core/txpool/blobpool/evictheap.go +++ b/core/txpool/blobpool/evictheap.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/evictheap_test.go b/core/txpool/blobpool/evictheap_test.go index f0ac134861..ce7ce502e8 100644 --- a/core/txpool/blobpool/evictheap_test.go +++ b/core/txpool/blobpool/evictheap_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/interface.go b/core/txpool/blobpool/interface.go index d47a526d1e..ad326a9f55 100644 --- a/core/txpool/blobpool/interface.go +++ b/core/txpool/blobpool/interface.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/limbo.go b/core/txpool/blobpool/limbo.go index 03ed4f0b53..037a6f5e6b 100644 --- a/core/txpool/blobpool/limbo.go +++ b/core/txpool/blobpool/limbo.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/metrics.go b/core/txpool/blobpool/metrics.go index 34daaa611c..1aa2ccd255 100644 --- a/core/txpool/blobpool/metrics.go +++ b/core/txpool/blobpool/metrics.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/priority.go b/core/txpool/blobpool/priority.go index 7bd209a6c4..a9f07ca2ad 100644 --- a/core/txpool/blobpool/priority.go +++ b/core/txpool/blobpool/priority.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/priority_test.go b/core/txpool/blobpool/priority_test.go index f53dc56f06..12a6d3046c 100644 --- a/core/txpool/blobpool/priority_test.go +++ b/core/txpool/blobpool/priority_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/slotter.go b/core/txpool/blobpool/slotter.go index c595762f3c..3f32f92d60 100644 --- a/core/txpool/blobpool/slotter.go +++ b/core/txpool/blobpool/slotter.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/blobpool/slotter_test.go b/core/txpool/blobpool/slotter_test.go index 64de69f665..8ca011a8b8 100644 --- a/core/txpool/blobpool/slotter_test.go +++ b/core/txpool/blobpool/slotter_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/errors.go b/core/txpool/errors.go index b2096fe147..a0b692fbeb 100644 --- a/core/txpool/errors.go +++ b/core/txpool/errors.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/journal.go b/core/txpool/legacypool/journal.go index fdae2b402d..5af2a312b7 100644 --- a/core/txpool/legacypool/journal.go +++ b/core/txpool/legacypool/journal.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 1eeaa90e40..c27b536060 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/legacypool2_test.go b/core/txpool/legacypool/legacypool2_test.go index 43c1224799..307ecf6f72 100644 --- a/core/txpool/legacypool/legacypool2_test.go +++ b/core/txpool/legacypool/legacypool2_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/legacypool_test.go b/core/txpool/legacypool/legacypool_test.go index 09e3a7e30d..4abc132e1c 100644 --- a/core/txpool/legacypool/legacypool_test.go +++ b/core/txpool/legacypool/legacypool_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/list.go b/core/txpool/legacypool/list.go index b3f2927635..82be51e9ca 100644 --- a/core/txpool/legacypool/list.go +++ b/core/txpool/legacypool/list.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/list_test.go b/core/txpool/legacypool/list_test.go index 719b2cb96e..4e8fd5e162 100644 --- a/core/txpool/legacypool/list_test.go +++ b/core/txpool/legacypool/list_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/legacypool/noncer.go b/core/txpool/legacypool/noncer.go index 99c50b0abd..6b6c8508ea 100644 --- a/core/txpool/legacypool/noncer.go +++ b/core/txpool/legacypool/noncer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/subpool.go b/core/txpool/subpool.go index 1f72d9caa0..301105707c 100644 --- a/core/txpool/subpool.go +++ b/core/txpool/subpool.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 747a2dcf57..724ffa4083 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/txpool/validation.go b/core/txpool/validation.go index eb22ae6e4e..09d21df35b 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/types.go b/core/types.go index c8c9baef53..7328a3d207 100644 --- a/core/types.go +++ b/core/types.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/doc.go b/core/vm/runtime/doc.go index 9a6e139d4a..f6b24b37fa 100644 --- a/core/vm/runtime/doc.go +++ b/core/vm/runtime/doc.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index bc9cae5a53..99dcd66f96 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index 23cbb85294..a8a55ece20 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/runtime_example_test.go b/core/vm/runtime/runtime_example_test.go index 92a53e7148..9f7325596a 100644 --- a/core/vm/runtime/runtime_example_test.go +++ b/core/vm/runtime/runtime_example_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 06c16eb857..502d1ef5a2 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api.go b/eth/api.go index 471b7b40db..ed13f525cd 100644 --- a/eth/api.go +++ b/eth/api.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_admin.go b/eth/api_admin.go index 8625cbb145..abce8dc4b0 100644 --- a/eth/api_admin.go +++ b/eth/api_admin.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_backend.go b/eth/api_backend.go index 70418bdc89..b1b89ee652 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_backend_test.go b/eth/api_backend_test.go index 5399bfc4f8..c7fce71324 100644 --- a/eth/api_backend_test.go +++ b/eth/api_backend_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_debug.go b/eth/api_debug.go index 38136c841c..19b88ce16b 100644 --- a/eth/api_debug.go +++ b/eth/api_debug.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/api_debug_test.go b/eth/api_debug_test.go index c43468da5f..80b4136735 100644 --- a/eth/api_debug_test.go +++ b/eth/api_debug_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/backend.go b/eth/backend.go index 97f2322446..7c3c3af424 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/bloombits.go b/eth/bloombits.go index 921a872cdc..e72be24126 100644 --- a/eth/bloombits.go +++ b/eth/bloombits.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index e6c23b6717..09d48f5d43 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/api.go b/eth/filters/api.go index 6aa70404d7..89a83fa585 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go index 9f61536699..1667766370 100644 --- a/eth/filters/api_test.go +++ b/eth/filters/api_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go index f4299499f8..b8de8d7bed 100644 --- a/eth/filters/bench_test.go +++ b/eth/filters/bench_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 6d63f0d467..1c83a0c92c 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index 552628cb0a..9636698212 100644 --- a/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 51a4d50d7f..9c54d7039a 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index d1d4f9d4f0..b0fbd5a86f 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasestimator/gasestimator.go b/eth/gasestimator/gasestimator.go index a564b068ab..3fc7274f24 100644 --- a/eth/gasestimator/gasestimator.go +++ b/eth/gasestimator/gasestimator.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/fee_info_provider.go b/eth/gasprice/fee_info_provider.go index b81f36073a..de72c512e0 100644 --- a/eth/gasprice/fee_info_provider.go +++ b/eth/gasprice/fee_info_provider.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/feehistory.go b/eth/gasprice/feehistory.go index 11bb93c349..5a7322eaef 100644 --- a/eth/gasprice/feehistory.go +++ b/eth/gasprice/feehistory.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/feehistory_test.go b/eth/gasprice/feehistory_test.go index c5c26bff35..51af6e79a7 100644 --- a/eth/gasprice/feehistory_test.go +++ b/eth/gasprice/feehistory_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index fe1b70d5da..af7e5fee91 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/gasprice/gasprice_test.go b/eth/gasprice/gasprice_test.go index 92fa257cd5..6ad8b9ef51 100644 --- a/eth/gasprice/gasprice_test.go +++ b/eth/gasprice/gasprice_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/state_accessor.go b/eth/state_accessor.go index 6b15cc8f0b..8542ff14b2 100644 --- a/eth/state_accessor.go +++ b/eth/state_accessor.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/api.go b/eth/tracers/api.go index a43b8876b5..0250bce234 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go index f8f63784da..c1aaca9a58 100644 --- a/eth/tracers/api_test.go +++ b/eth/tracers/api_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracers.go b/eth/tracers/tracers.go index cb08dffdc6..3155ea4ebd 100644 --- a/eth/tracers/tracers.go +++ b/eth/tracers/tracers.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go index 06c68d0aff..1a11a1c697 100644 --- a/eth/tracers/tracers_test.go +++ b/eth/tracers/tracers_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracker.go b/eth/tracers/tracker.go index 08081b6bdf..1be626b8cb 100644 --- a/eth/tracers/tracker.go +++ b/eth/tracers/tracker.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/eth/tracers/tracker_test.go b/eth/tracers/tracker_test.go index c1841b3a63..11ec3de333 100644 --- a/eth/tracers/tracker_test.go +++ b/eth/tracers/tracker_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/corethclient/corethclient.go b/ethclient/corethclient/corethclient.go index 1753e19326..8f9940aba3 100644 --- a/ethclient/corethclient/corethclient.go +++ b/ethclient/corethclient/corethclient.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 3710748696..9b1c1629b3 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/signer.go b/ethclient/signer.go index 5a25f66c1b..21afd0fb63 100644 --- a/ethclient/signer.go +++ b/ethclient/signer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/backend.go b/ethclient/simulated/backend.go index 4a404bf138..5b0a5ecd94 100644 --- a/ethclient/simulated/backend.go +++ b/ethclient/simulated/backend.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/backend_test.go b/ethclient/simulated/backend_test.go index fbec816d58..20b53817c9 100644 --- a/ethclient/simulated/backend_test.go +++ b/ethclient/simulated/backend_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/options.go b/ethclient/simulated/options.go index 5bfa34fe29..e8a2744c0b 100644 --- a/ethclient/simulated/options.go +++ b/ethclient/simulated/options.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/ethclient/simulated/options_test.go b/ethclient/simulated/options_test.go index 7abb7bfcdd..a41acf78b1 100644 --- a/ethclient/simulated/options_test.go +++ b/ethclient/simulated/options_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/blocktest/test_hash.go b/internal/blocktest/test_hash.go index b1b482bf65..4a475be4bd 100644 --- a/internal/blocktest/test_hash.go +++ b/internal/blocktest/test_hash.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/api.go b/internal/debug/api.go index 3c8b916944..c0461f0265 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 7dcf4179b1..3307f246b3 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/loudpanic.go b/internal/debug/loudpanic.go index 2d0a1527b7..94de421c0e 100644 --- a/internal/debug/loudpanic.go +++ b/internal/debug/loudpanic.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/debug/trace.go b/internal/debug/trace.go index bb7eeb0a56..60567fdac1 100644 --- a/internal/debug/trace.go +++ b/internal/debug/trace.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/addrlock.go b/internal/ethapi/addrlock.go index c72b70f9d8..b4da3dd332 100644 --- a/internal/ethapi/addrlock.go +++ b/internal/ethapi/addrlock.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 7e3f0234bc..f7d153bf2d 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 730bbdf8c7..90d6a81c82 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index 880c802f3b..e39cae783c 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/errors.go b/internal/ethapi/errors.go index c252a4b4b8..694500d78c 100644 --- a/internal/ethapi/errors.go +++ b/internal/ethapi/errors.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2024 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go index abb790ffdf..2c0adc0619 100644 --- a/internal/ethapi/transaction_args.go +++ b/internal/ethapi/transaction_args.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/ethapi/transaction_args_test.go b/internal/ethapi/transaction_args_test.go index b47b3e43e3..ce432f4e8b 100644 --- a/internal/ethapi/transaction_args_test.go +++ b/internal/ethapi/transaction_args_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/flags/categories.go b/internal/flags/categories.go index 40018d95a8..85ae766399 100644 --- a/internal/flags/categories.go +++ b/internal/flags/categories.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go index c48855bd55..14ce82579f 100644 --- a/internal/flags/helpers.go +++ b/internal/flags/helpers.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/reexec/reexec.go b/internal/reexec/reexec.go index 9811efd57a..aaea61c2b8 100644 --- a/internal/reexec/reexec.go +++ b/internal/reexec/reexec.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // This file originates from Docker/Moby, // https://github.com/moby/moby/blob/master/pkg/reexec/reexec.go // Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE diff --git a/internal/reexec/self_linux.go b/internal/reexec/self_linux.go index 739f3d9201..6bb4e2a7ca 100644 --- a/internal/reexec/self_linux.go +++ b/internal/reexec/self_linux.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // This file originates from Docker/Moby, // https://github.com/moby/moby/blob/master/pkg/reexec/ // Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE diff --git a/internal/reexec/self_others.go b/internal/reexec/self_others.go index c6d39905c8..82a3806f37 100644 --- a/internal/reexec/self_others.go +++ b/internal/reexec/self_others.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // This file originates from Docker/Moby, // https://github.com/moby/moby/blob/master/pkg/reexec/ // Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE diff --git a/internal/shutdowncheck/shutdown_tracker.go b/internal/shutdowncheck/shutdown_tracker.go index 61193a3049..e6758c0ebc 100644 --- a/internal/shutdowncheck/shutdown_tracker.go +++ b/internal/shutdowncheck/shutdown_tracker.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/version/vcs.go b/internal/version/vcs.go index f8f5912efe..0acb045bc6 100644 --- a/internal/version/vcs.go +++ b/internal/version/vcs.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/internal/version/version.go b/internal/version/version.go index bd00da305b..6a190996d9 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/license_header_for_upstream.yml b/license_header_for_upstream.yml index 9d88d4e5b4..7aeffe79a2 100644 --- a/license_header_for_upstream.yml +++ b/license_header_for_upstream.yml @@ -1,4 +1,4 @@ -header: | +header: |- // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. // diff --git a/log/format.go b/log/format.go index bc9a62e986..2c450ec23f 100644 --- a/log/format.go +++ b/log/format.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - package log import ( diff --git a/log/handler.go b/log/handler.go index 518cd6b557..46ba2517b8 100644 --- a/log/handler.go +++ b/log/handler.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - package log import ( diff --git a/log/logger.go b/log/logger.go index 2a28811438..b2a6116657 100644 --- a/log/logger.go +++ b/log/logger.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - package log import ( diff --git a/miner/miner.go b/miner/miner.go index 3e77fbcc74..a63638ccbb 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/miner/ordering.go b/miner/ordering.go index 97e90d32eb..d4a01e8acd 100644 --- a/miner/ordering.go +++ b/miner/ordering.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/miner/ordering_test.go b/miner/ordering_test.go index 80e438c985..3e3be9a88f 100644 --- a/miner/ordering_test.go +++ b/miner/ordering_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/miner/worker.go b/miner/worker.go index ba3f33f1fa..d0ec2f619d 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/api.go b/node/api.go index ad17e6eded..312dc3770c 100644 --- a/node/api.go +++ b/node/api.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/config.go b/node/config.go index 8f88e1938e..a48f7e62a7 100644 --- a/node/config.go +++ b/node/config.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/defaults.go b/node/defaults.go index a20835282f..c923288565 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/errors.go b/node/errors.go index 8a21de7575..fe91249e88 100644 --- a/node/errors.go +++ b/node/errors.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/node/node.go b/node/node.go index 20b0c5b173..566d19dd1e 100644 --- a/node/node.go +++ b/node/node.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/config.go b/params/config.go index 13aeffd7f8..c02e095df2 100644 --- a/params/config.go +++ b/params/config.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/config_test.go b/params/config_test.go index e9b93de43d..4ad5f5e4a5 100644 --- a/params/config_test.go +++ b/params/config_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/denomination.go b/params/denomination.go index 135b04eb95..aa21e160b4 100644 --- a/params/denomination.go +++ b/params/denomination.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/network_params.go b/params/network_params.go index 4229de83b9..bb57c5b4ea 100644 --- a/params/network_params.go +++ b/params/network_params.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/protocol_params.go b/params/protocol_params.go index 8e105a79c2..71f0d3e0eb 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/params/version.go b/params/version.go index 660ed73263..26ead886cf 100644 --- a/params/version.go +++ b/params/version.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/customtypes/block_test.go b/plugin/evm/customtypes/block_test.go index 64edbaa439..5fa273c267 100644 --- a/plugin/evm/customtypes/block_test.go +++ b/plugin/evm/customtypes/block_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2014 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/customtypes/hashing_test.go b/plugin/evm/customtypes/hashing_test.go index 8bad45404c..ca1958e043 100644 --- a/plugin/evm/customtypes/hashing_test.go +++ b/plugin/evm/customtypes/hashing_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/customtypes/rlp_fuzzer_test.go b/plugin/evm/customtypes/rlp_fuzzer_test.go index 9ff15d46df..18f7871c20 100644 --- a/plugin/evm/customtypes/rlp_fuzzer_test.go +++ b/plugin/evm/customtypes/rlp_fuzzer_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/plugin/evm/customtypes/types_test.go b/plugin/evm/customtypes/types_test.go index 81b3321f1b..9ffa661d03 100644 --- a/plugin/evm/customtypes/types_test.go +++ b/plugin/evm/customtypes/types_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2021 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/client.go b/rpc/client.go index 395fae133b..8eb38765f9 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/client_opt.go b/rpc/client_opt.go index 52b3b8321f..8872703402 100644 --- a/rpc/client_opt.go +++ b/rpc/client_opt.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/client_opt_test.go b/rpc/client_opt_test.go index 51e12e86f4..d3cd6af729 100644 --- a/rpc/client_opt_test.go +++ b/rpc/client_opt_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - package rpc_test import ( diff --git a/rpc/client_test.go b/rpc/client_test.go index 1db0f276aa..fc642b68df 100644 --- a/rpc/client_test.go +++ b/rpc/client_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/context_headers.go b/rpc/context_headers.go index aa8ce5a90e..b9196591e2 100644 --- a/rpc/context_headers.go +++ b/rpc/context_headers.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/doc.go b/rpc/doc.go index 5274bc8f15..470ff967b2 100644 --- a/rpc/doc.go +++ b/rpc/doc.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/errors.go b/rpc/errors.go index 4ac1f658cd..1a83e86991 100644 --- a/rpc/errors.go +++ b/rpc/errors.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/handler.go b/rpc/handler.go index 9bca53c3ec..911ef85a47 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/http.go b/rpc/http.go index 9705f1951a..ad8ac022c2 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/http_test.go b/rpc/http_test.go index 27e314e6c4..5ebf89ce00 100644 --- a/rpc/http_test.go +++ b/rpc/http_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/inproc.go b/rpc/inproc.go index d6967074f7..cca928886c 100644 --- a/rpc/inproc.go +++ b/rpc/inproc.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/json.go b/rpc/json.go index 64b5e20998..80075b0150 100644 --- a/rpc/json.go +++ b/rpc/json.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/metrics.go b/rpc/metrics.go index df42d19a25..7f2042e4c8 100644 --- a/rpc/metrics.go +++ b/rpc/metrics.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2020 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/server.go b/rpc/server.go index bc0116d666..03471aae7c 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/server_test.go b/rpc/server_test.go index 974f9da817..f7fca121ac 100644 --- a/rpc/server_test.go +++ b/rpc/server_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/service.go b/rpc/service.go index bec1824d29..990b23bc1e 100644 --- a/rpc/service.go +++ b/rpc/service.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/subscription.go b/rpc/subscription.go index 9165e26cc2..b7702e4ee4 100644 --- a/rpc/subscription.go +++ b/rpc/subscription.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/subscription_test.go b/rpc/subscription_test.go index b4b8b4645d..4c59676094 100644 --- a/rpc/subscription_test.go +++ b/rpc/subscription_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/testservice_test.go b/rpc/testservice_test.go index 7233c079a7..9e052f6ffd 100644 --- a/rpc/testservice_test.go +++ b/rpc/testservice_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/types.go b/rpc/types.go index d2c87efe14..2a69f93c2e 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/types_test.go b/rpc/types_test.go index 36eb2d50aa..07237bb275 100644 --- a/rpc/types_test.go +++ b/rpc/types_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/websocket.go b/rpc/websocket.go index 2d4145321b..2582a4b29c 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/rpc/websocket_test.go b/rpc/websocket_test.go index c5bb01b616..c6d6c0a1d3 100644 --- a/rpc/websocket_test.go +++ b/rpc/websocket_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go index 559b172620..410cf0a25e 100644 --- a/signer/core/apitypes/types.go +++ b/signer/core/apitypes/types.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/tests/init.go b/tests/init.go index cc683374ac..39d8858994 100644 --- a/tests/init.go +++ b/tests/init.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go index 16f6f254e6..b0dd078581 100644 --- a/tests/rlp_test_util.go +++ b/tests/rlp_test_util.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/tests/state_test_util.go b/tests/state_test_util.go index 32efdb1ad1..badd8cd65c 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/hashdb/database.go b/triedb/hashdb/database.go index b4264caec8..b35b01d666 100644 --- a/triedb/hashdb/database.go +++ b/triedb/hashdb/database.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2018 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/database.go b/triedb/pathdb/database.go index 6e561bffcf..0c9de1e5c3 100644 --- a/triedb/pathdb/database.go +++ b/triedb/pathdb/database.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/database_test.go b/triedb/pathdb/database_test.go index 72c72c0d80..5f09a153c9 100644 --- a/triedb/pathdb/database_test.go +++ b/triedb/pathdb/database_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/difflayer.go b/triedb/pathdb/difflayer.go index 136b5209e1..81f5f090e4 100644 --- a/triedb/pathdb/difflayer.go +++ b/triedb/pathdb/difflayer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/difflayer_test.go b/triedb/pathdb/difflayer_test.go index 326f98bbf8..6e99813627 100644 --- a/triedb/pathdb/difflayer_test.go +++ b/triedb/pathdb/difflayer_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2019 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/disklayer.go b/triedb/pathdb/disklayer.go index 690238deed..83637b8622 100644 --- a/triedb/pathdb/disklayer.go +++ b/triedb/pathdb/disklayer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/errors.go b/triedb/pathdb/errors.go index 9a15c3364e..619966ed18 100644 --- a/triedb/pathdb/errors.go +++ b/triedb/pathdb/errors.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/history.go b/triedb/pathdb/history.go index ea78992f90..474f838bf1 100644 --- a/triedb/pathdb/history.go +++ b/triedb/pathdb/history.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/history_test.go b/triedb/pathdb/history_test.go index 4aa79a6bb4..eaf3782170 100644 --- a/triedb/pathdb/history_test.go +++ b/triedb/pathdb/history_test.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/journal.go b/triedb/pathdb/journal.go index 36b6355ec8..2eb031ed59 100644 --- a/triedb/pathdb/journal.go +++ b/triedb/pathdb/journal.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/layertree.go b/triedb/pathdb/layertree.go index 9c0c36ebaa..1c876b022b 100644 --- a/triedb/pathdb/layertree.go +++ b/triedb/pathdb/layertree.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/metrics.go b/triedb/pathdb/metrics.go index e7e13102db..760be26de1 100644 --- a/triedb/pathdb/metrics.go +++ b/triedb/pathdb/metrics.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/nodebuffer.go b/triedb/pathdb/nodebuffer.go index 2c4600ebb3..30b58e2377 100644 --- a/triedb/pathdb/nodebuffer.go +++ b/triedb/pathdb/nodebuffer.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2022 The go-ethereum Authors // This file is part of the go-ethereum library. // diff --git a/triedb/pathdb/testutils.go b/triedb/pathdb/testutils.go index 845a9a96a9..831e9748e3 100644 --- a/triedb/pathdb/testutils.go +++ b/triedb/pathdb/testutils.go @@ -9,7 +9,6 @@ // // Much love to the original authors for their work. // ********** - // Copyright 2023 The go-ethereum Authors // This file is part of the go-ethereum library. // From ea3388d839aeb6ee12f0ced756bcf00e39d1facb Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Mon, 18 Aug 2025 13:57:01 +0200 Subject: [PATCH 08/13] fix: more license fixes --- license_header.yml | 2 +- plugin/evm/atomic/vm/api.go | 2 -- plugin/evm/customlogs/log_ext.go | 2 -- plugin/evm/customtypes/block_ext_test.go | 1 - plugin/evm/message/block_sync_summary_parser.go | 2 -- plugin/evm/message/block_sync_summary_provider.go | 2 -- plugin/evm/vmtest/genesis.go | 2 -- plugin/evm/vmtest/test_syncervm.go | 2 -- sync/vm/server.go | 2 -- 9 files changed, 1 insertion(+), 16 deletions(-) diff --git a/license_header.yml b/license_header.yml index a9668c5717..179a3fdd89 100644 --- a/license_header.yml +++ b/license_header.yml @@ -1,3 +1,3 @@ -header: | +header: |- // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. diff --git a/plugin/evm/atomic/vm/api.go b/plugin/evm/atomic/vm/api.go index b4e6e9a797..6b4dc5272c 100644 --- a/plugin/evm/atomic/vm/api.go +++ b/plugin/evm/atomic/vm/api.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package vm import ( diff --git a/plugin/evm/customlogs/log_ext.go b/plugin/evm/customlogs/log_ext.go index 5f16443873..6074cc0ff0 100644 --- a/plugin/evm/customlogs/log_ext.go +++ b/plugin/evm/customlogs/log_ext.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package customlogs import ethtypes "github.com/ava-labs/libevm/core/types" diff --git a/plugin/evm/customtypes/block_ext_test.go b/plugin/evm/customtypes/block_ext_test.go index aac3eb549f..9dd8b4b2d2 100644 --- a/plugin/evm/customtypes/block_ext_test.go +++ b/plugin/evm/customtypes/block_ext_test.go @@ -1,6 +1,5 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. - package customtypes import ( diff --git a/plugin/evm/message/block_sync_summary_parser.go b/plugin/evm/message/block_sync_summary_parser.go index ea06a78fba..c91f140bbb 100644 --- a/plugin/evm/message/block_sync_summary_parser.go +++ b/plugin/evm/message/block_sync_summary_parser.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package message import ( diff --git a/plugin/evm/message/block_sync_summary_provider.go b/plugin/evm/message/block_sync_summary_provider.go index bdf1c78bda..493d3cc07e 100644 --- a/plugin/evm/message/block_sync_summary_provider.go +++ b/plugin/evm/message/block_sync_summary_provider.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package message import ( diff --git a/plugin/evm/vmtest/genesis.go b/plugin/evm/vmtest/genesis.go index 2971b8ccd1..051d2413ce 100644 --- a/plugin/evm/vmtest/genesis.go +++ b/plugin/evm/vmtest/genesis.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package vmtest import ( diff --git a/plugin/evm/vmtest/test_syncervm.go b/plugin/evm/vmtest/test_syncervm.go index 48bb2303b4..955ea0c014 100644 --- a/plugin/evm/vmtest/test_syncervm.go +++ b/plugin/evm/vmtest/test_syncervm.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package vmtest import ( diff --git a/sync/vm/server.go b/sync/vm/server.go index 16de37281a..1d1e04a3bf 100644 --- a/sync/vm/server.go +++ b/sync/vm/server.go @@ -1,8 +1,6 @@ // Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. -// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. -// See the file LICENSE for licensing terms. package vm import ( From bcda7348bf5b6096726e897b4f38c1f965e77b19 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Tue, 19 Aug 2025 20:15:11 +0300 Subject: [PATCH 09/13] fix: enable avalanche_golangci_lint hook --- .pre-commit-config.yaml | 16 +++++------ scripts/lint.sh | 62 +++++++++++++++++++++++++++++++++++------ 2 files changed, 61 insertions(+), 17 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7fe57a33a2..4f9aacbb54 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,15 +33,13 @@ repos: # Local utility scripts and full repo checks - repo: local hooks: - # TODO: Re-enable this once we have a way to run the extra lints in CI. - # See https://github.com/ava-labs/coreth/pull/1117 - # # Stricter extra lints (golangci-lint v2) on staged changes at pre-commit - # - id: extra-golangci-lint - # name: golangci-lint (extra via scripts/lint.sh) - # entry: bash -lc 'TESTS="extra_golangci_lint" scripts/lint.sh' - # language: system - # stages: [pre-commit] - # pass_filenames: false + # Stricter extra lints (golangci-lint v2) on staged changes at pre-commit + - id: extra-golangci-lint + name: golangci-lint (extra via scripts/lint.sh) + entry: bash -lc 'TESTS="avalanche_golangci_lint" scripts/lint.sh' + language: system + stages: [pre-commit] + pass_filenames: false - id: actionlint name: actionlint diff --git a/scripts/lint.sh b/scripts/lint.sh index a7cf7d03c6..eb62c43f94 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -7,16 +7,62 @@ if ! [[ "$0" =~ scripts/lint.sh ]]; then exit 255 fi -# The -P option is not supported by the grep version installed by -# default on macos. Since `-o errexit` is ignored in an if -# conditional, triggering the problem here ensures script failure when -# using an unsupported version of grep. -grep -P 'lint.sh' scripts/lint.sh &>/dev/null || ( +OS_NAME="$(uname -s)" + +# Darwin-specific environment handling: ensure Bash 4+ and GNU grep availability. +function handle_darwin { + # Re-exec with Homebrew bash when system bash is < 4 (macOS default 3.2) + if ! { test -n "${BASH_VERSINFO:-}" && [ "${BASH_VERSINFO[0]}" -ge 4 ]; }; then + for homebrew_bash_path in "/opt/homebrew/bin/bash" "/usr/local/bin/bash"; do + if [[ -x "${homebrew_bash_path}" ]]; then + exec "${homebrew_bash_path}" "$0" "$@" + fi + done + echo >&2 "error: This script requires bash >= 4. On macOS, install with: brew install bash" + echo >&2 " Then ensure Homebrew bash is used first in PATH or re-run via: /opt/homebrew/bin/bash scripts/lint.sh" + exit 255 + fi + + # Prefer ggrep when available; make a shim so plain `grep` resolves to it + if command -v ggrep >/dev/null 2>&1 && ggrep -P 'lint.sh' scripts/lint.sh &>/dev/null; then + local gnu_grep_shim_dir + gnu_grep_shim_dir="$(mktemp -d)" + ln -s "$(command -v ggrep)" "${gnu_grep_shim_dir}/grep" 2>/dev/null || true + export PATH="${gnu_grep_shim_dir}:${PATH}" + fi + + # Try Homebrew gnubin via brew and well-known locations + local -a candidate_gnubin_dirs=() + if command -v brew >/dev/null 2>&1; then + candidate_gnubin_dirs+=("$(brew --prefix grep 2>/dev/null)/libexec/gnubin") + fi + candidate_gnubin_dirs+=( + "/opt/homebrew/opt/grep/libexec/gnubin" + "/usr/local/opt/grep/libexec/gnubin" + ) + for candidate_dir in "${candidate_gnubin_dirs[@]}"; do + if [[ -d "${candidate_dir}" ]]; then + export PATH="${candidate_dir}:$PATH" + fi + done +} + +# Run Darwin adjustments early if applicable +if [[ "$OS_NAME" == "Darwin" ]]; then + handle_darwin "$@" +fi + +# Final probe; fail hard if still unsupported +if ! grep -P 'lint.sh' scripts/lint.sh &>/dev/null; then echo >&2 "error: This script requires a recent version of gnu grep." - echo >&2 " On macos, gnu grep can be installed with 'brew install grep'." - echo >&2 " It will also be necessary to ensure that gnu grep is available in the path." + if [[ "$OS_NAME" == "Darwin" ]]; then + echo >&2 " On macOS, install with: brew install grep" + echo >&2 " Ensure gnubin is on PATH, e.g.:" + echo >&2 " export PATH=\"/opt/homebrew/opt/grep/libexec/gnubin:\$PATH\" # Apple Silicon" + echo >&2 " export PATH=\"/usr/local/opt/grep/libexec/gnubin:\$PATH\" # Intel" + fi exit 255 -) +fi # Read excluded directories into arrays DEFAULT_FILES=() From 4819f5c766a0bb36af96aab5ccb3381c61fa92a6 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Tue, 19 Aug 2025 22:03:36 +0300 Subject: [PATCH 10/13] fix: treats both relative and absolute repo paths the same when filtering for the hooks --- log/format.go | 1 + log/handler.go | 1 + log/logger.go | 1 + rpc/client_opt_test.go | 1 + rpc/testdata/invalid-syntax.json | 1 + rpc/testdata/reqresp-namedparam.js | 2 +- rpc/testdata/revcall2.js | 1 + scripts/filter_precommit_files.sh | 7 ++++++- 8 files changed, 13 insertions(+), 2 deletions(-) diff --git a/log/format.go b/log/format.go index 2c450ec23f..bc9a62e986 100644 --- a/log/format.go +++ b/log/format.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + package log import ( diff --git a/log/handler.go b/log/handler.go index 46ba2517b8..518cd6b557 100644 --- a/log/handler.go +++ b/log/handler.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + package log import ( diff --git a/log/logger.go b/log/logger.go index b2a6116657..2a28811438 100644 --- a/log/logger.go +++ b/log/logger.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + package log import ( diff --git a/rpc/client_opt_test.go b/rpc/client_opt_test.go index d3cd6af729..51e12e86f4 100644 --- a/rpc/client_opt_test.go +++ b/rpc/client_opt_test.go @@ -9,6 +9,7 @@ // // Much love to the original authors for their work. // ********** + package rpc_test import ( diff --git a/rpc/testdata/invalid-syntax.json b/rpc/testdata/invalid-syntax.json index d387a9b5ee..b194299603 100644 --- a/rpc/testdata/invalid-syntax.json +++ b/rpc/testdata/invalid-syntax.json @@ -2,3 +2,4 @@ --> 'f <-- {"jsonrpc":"2.0","id":null,"error":{"code":-32700,"message":"invalid character '\\'' looking for beginning of value"}} + diff --git a/rpc/testdata/reqresp-namedparam.js b/rpc/testdata/reqresp-namedparam.js index b9d3b8cae8..9a9372b0a7 100644 --- a/rpc/testdata/reqresp-namedparam.js +++ b/rpc/testdata/reqresp-namedparam.js @@ -1,5 +1,5 @@ // This test checks that an error response is sent for calls -// with named parameters. +// with named parameters. --> {"jsonrpc":"2.0","method":"test_echo","params":{"int":23},"id":3} <-- {"jsonrpc":"2.0","id":3,"error":{"code":-32602,"message":"non-array args"}} diff --git a/rpc/testdata/revcall2.js b/rpc/testdata/revcall2.js index b88689a473..acab46551e 100644 --- a/rpc/testdata/revcall2.js +++ b/rpc/testdata/revcall2.js @@ -4,3 +4,4 @@ <-- {"jsonrpc":"2.0","id":2,"result":null} <-- {"jsonrpc":"2.0","id":1,"method":"foo","params":[1]} --> {"jsonrpc":"2.0","id":1,"result":"my result"} + diff --git a/scripts/filter_precommit_files.sh b/scripts/filter_precommit_files.sh index 43f69fdbe7..4820c0bf64 100755 --- a/scripts/filter_precommit_files.sh +++ b/scripts/filter_precommit_files.sh @@ -84,6 +84,11 @@ should_skip_path() { # Args: local p="$1" local re="${2-}" + # Normalize to repo-relative for regex matching against top-level dirs + local rel="$p" + case "$p" in + "${REPO_ROOT}/"*) rel="${p#"${REPO_ROOT}/"}" ;; + esac # Skip directories [[ -d "$p" ]] && return 0 # Skip obvious binaries by extension @@ -93,7 +98,7 @@ should_skip_path() { # Skip non-text is_text_file "$p" || return 0 # Skip upstream directories if regex provided - if [[ -n "$re" ]] && [[ "$p" =~ $re ]]; then + if [[ -n "$re" ]] && [[ "$rel" =~ $re ]]; then return 0 fi return 1 From f53e9d10a44d89f511913b61736a98979efd7a9a Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Tue, 19 Aug 2025 22:26:52 +0300 Subject: [PATCH 11/13] docs: add README docs --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README.md b/README.md index 174c0f2c3d..e036dd2481 100644 --- a/README.md +++ b/README.md @@ -95,3 +95,39 @@ To support these changes, there have been a number of changes to the C-Chain blo ## Releasing See [docs/releasing/README.md](docs/releasing/README.md) for the release process. + +## Local pre-commit hooks + +We use [pre-commit](https://pre-commit.com/) to provide fast local feedback and consistent formatting/linting in CI. + +1. Install the `pre-commit` tool locally. For instructions check [here](https://pre-commit.com/). + +1. Install hooks locally (done only once): + +```bash +pre-commit install +``` + +1. Just use `git commit` and `git push` as normal and the hooks will automatically run. + +Additional notes: + +- Run manually on the whole repo: + +```bash +pre-commit run --all-files +``` + +- Temporarily bypass hooks: + +```bash +git commit --no-verify +git push --no-verify +``` + +- For macOS developers: + + - Some local scripts require GNU grep with PCRE support. Install via Homebrew: + `brew install grep`. If needed, add `$(brew --prefix grep)/libexec/gnubin` to your PATH. + - Our lint runner (`scripts/lint.sh`) will attempt to auto-detect and use Homebrew’s GNU grep + and Bash 4+ where available. From 0565060f7e63c73c6a998bd0c9637d91cd8aef64 Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Tue, 19 Aug 2025 22:33:33 +0300 Subject: [PATCH 12/13] fix: add support to the filter script for absolute and ./ paths --- README.md | 20 ++++++++-------- accounts/abi/bind/bind_test.go | 40 +++++++++++++++---------------- accounts/abi/packing_test.go | 24 +++++++++---------- scripts/filter_precommit_files.sh | 4 ++++ 4 files changed, 46 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index e036dd2481..550c52c811 100644 --- a/README.md +++ b/README.md @@ -104,9 +104,9 @@ We use [pre-commit](https://pre-commit.com/) to provide fast local feedback and 1. Install hooks locally (done only once): -```bash -pre-commit install -``` + ```bash + pre-commit install + ``` 1. Just use `git commit` and `git push` as normal and the hooks will automatically run. @@ -114,16 +114,16 @@ Additional notes: - Run manually on the whole repo: -```bash -pre-commit run --all-files -``` + ```bash + pre-commit run --all-files + ``` - Temporarily bypass hooks: -```bash -git commit --no-verify -git push --no-verify -``` + ```bash + git commit --no-verify + git push --no-verify + ``` - For macOS developers: diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go index b17389f3a0..1779627be1 100644 --- a/accounts/abi/bind/bind_test.go +++ b/accounts/abi/bind/bind_test.go @@ -552,7 +552,7 @@ var bindTests = []struct { struct A { bytes32 B; } - + function F() public view returns (A[] memory a, uint256[] memory c, bool[] memory d) { A[] memory a = new A[](2); a[0].B = bytes32(uint256(1234) << 96); @@ -560,7 +560,7 @@ var bindTests = []struct { bool[] memory d; return (a, c, d); } - + function G() public view returns (A[] memory a) { A[] memory a = new A[](2); a[0].B = bytes32(uint256(1234) << 96); @@ -582,10 +582,10 @@ var bindTests = []struct { // Generate a new random account and a funded simulator key, _ := crypto.GenerateKey() auth, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) - + sim := backends.NewSimulatedBackend(types.GenesisAlloc{auth.From: {Balance: big.NewInt(1000000000000000000)}}, 10000000) defer sim.Close() - + // Deploy a structs method invoker contract and execute its default method _, _, structs, err := DeployStructs(auth, sim) if err != nil { @@ -1733,13 +1733,13 @@ var bindTests = []struct { `NewFallbacks`, ` pragma solidity >=0.6.0 <0.7.0; - + contract NewFallbacks { event Fallback(bytes data); fallback() external { emit Fallback(msg.data); } - + event Received(address addr, uint value); receive() external payable { emit Received(msg.sender, msg.value); @@ -1751,7 +1751,7 @@ var bindTests = []struct { ` "bytes" "math/big" - + "github.com/ava-labs/coreth/accounts/abi/bind" "github.com/ava-labs/coreth/accounts/abi/bind/backends" "github.com/ava-labs/libevm/core/types" @@ -1760,22 +1760,22 @@ var bindTests = []struct { ` key, _ := crypto.GenerateKey() addr := crypto.PubkeyToAddress(key.PublicKey) - + sim := backends.NewSimulatedBackend(types.GenesisAlloc{addr: {Balance: big.NewInt(1000000000000000000)}}, 1000000) defer sim.Close() - + opts, _ := bind.NewKeyedTransactorWithChainID(key, big.NewInt(1337)) _, _, c, err := DeployNewFallbacks(opts, sim) if err != nil { t.Fatalf("Failed to deploy contract: %v", err) } sim.Commit(false) - + // Test receive function opts.Value = big.NewInt(100) c.Receive(opts) sim.Commit(false) - + var gotEvent bool iter, _ := c.FilterReceived(nil) defer iter.Close() @@ -1792,14 +1792,14 @@ var bindTests = []struct { if !gotEvent { t.Fatal("Expect to receive event emitted by receive") } - + // Test fallback function gotEvent = false opts.Value = nil calldata := []byte{0x01, 0x02, 0x03} c.Fallback(opts, calldata) sim.Commit(false) - + iter2, _ := c.FilterFallback(nil) defer iter2.Close() for iter2.Next() { @@ -1893,7 +1893,7 @@ var bindTests = []struct { `NewErrors`, ` pragma solidity >0.8.4; - + contract NewErrors { error MyError(uint256); error MyError1(uint256); @@ -1909,7 +1909,7 @@ var bindTests = []struct { ` "context" "math/big" - + "github.com/ava-labs/coreth/accounts/abi/bind" "github.com/ava-labs/coreth/accounts/abi/bind/backends" "github.com/ava-labs/libevm/core/types" @@ -1922,7 +1922,7 @@ var bindTests = []struct { sim = backends.NewSimulatedBackend(types.GenesisAlloc{user.From: {Balance: big.NewInt(1000000000000000000)}}, 10000000) ) defer sim.Close() - + _, tx, contract, err := DeployNewErrors(user, sim) if err != nil { t.Fatal(err) @@ -1947,12 +1947,12 @@ var bindTests = []struct { name: `ConstructorWithStructParam`, contract: ` pragma solidity >=0.8.0 <0.9.0; - + contract ConstructorWithStructParam { struct StructType { uint256 field; } - + constructor(StructType memory st) {} } `, @@ -1980,7 +1980,7 @@ var bindTests = []struct { t.Fatalf("DeployConstructorWithStructParam() got err %v; want nil err", err) } sim.Commit(true) - + if _, err = bind.WaitDeployed(context.Background(), sim, tx); err != nil { t.Logf("Deployment tx: %+v", tx) t.Errorf("bind.WaitDeployed(nil, %T, ) got err %v; want nil err", sim, err) @@ -2029,7 +2029,7 @@ var bindTests = []struct { t.Fatalf("DeployNameConflict() got err %v; want nil err", err) } sim.Commit(true) - + if _, err = bind.WaitDeployed(context.Background(), sim, tx); err != nil { t.Logf("Deployment tx: %+v", tx) t.Errorf("bind.WaitDeployed(nil, %T, ) got err %v; want nil err", sim, err) diff --git a/accounts/abi/packing_test.go b/accounts/abi/packing_test.go index 28fee6bb29..e5881d503e 100644 --- a/accounts/abi/packing_test.go +++ b/accounts/abi/packing_test.go @@ -842,9 +842,9 @@ var packUnpackTests = []packUnpackTest{ }, { // static tuple - def: `[{"components": [{"name":"a","type":"int64"}, - {"name":"b","type":"int256"}, - {"name":"c","type":"int256"}, + def: `[{"components": [{"name":"a","type":"int64"}, + {"name":"b","type":"int256"}, + {"name":"c","type":"int256"}, {"name":"d","type":"bool"}, {"name":"e","type":"bytes32[3][2]"}], "type":"tuple"}]`, unpacked: struct { @@ -866,9 +866,9 @@ var packUnpackTests = []packUnpackTest{ "0500000000000000000000000000000000000000000000000000000000000000", // struct[e] array[1][2] }, { - def: `[{"components": [{"name":"a","type":"string"}, - {"name":"b","type":"int64"}, - {"name":"c","type":"bytes"}, + def: `[{"components": [{"name":"a","type":"string"}, + {"name":"b","type":"int64"}, + {"name":"c","type":"bytes"}, {"name":"d","type":"string[]"}, {"name":"e","type":"int256[]"}, {"name":"f","type":"address[]"}], "type":"tuple"}]`, @@ -906,8 +906,8 @@ var packUnpackTests = []packUnpackTest{ "0000000000000000000000000200000000000000000000000000000000000000", // common.Address{2} }, { - def: `[{"components": [{ "type": "tuple","components": [{"name": "a","type": "uint256"}, - {"name": "b","type": "uint256[]"}], + def: `[{"components": [{ "type": "tuple","components": [{"name": "a","type": "uint256"}, + {"name": "b","type": "uint256[]"}], "name": "a","type": "tuple"}, {"name": "b","type": "uint256[]"}], "type": "tuple"}]`, unpacked: struct { @@ -936,8 +936,8 @@ var packUnpackTests = []packUnpackTest{ }, { - def: `[{"components": [{"name": "a","type": "int256"}, - {"name": "b","type": "int256[]"}], + def: `[{"components": [{"name": "a","type": "int256"}, + {"name": "b","type": "int256[]"}], "name": "a","type": "tuple[]"}]`, unpacked: []struct { A *big.Int @@ -962,8 +962,8 @@ var packUnpackTests = []packUnpackTest{ "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", // tuple[1].B[1] value }, { - def: `[{"components": [{"name": "a","type": "int256"}, - {"name": "b","type": "int256"}], + def: `[{"components": [{"name": "a","type": "int256"}, + {"name": "b","type": "int256"}], "name": "a","type": "tuple[2]"}]`, unpacked: [2]struct { A *big.Int diff --git a/scripts/filter_precommit_files.sh b/scripts/filter_precommit_files.sh index 4820c0bf64..bd2d598bfd 100755 --- a/scripts/filter_precommit_files.sh +++ b/scripts/filter_precommit_files.sh @@ -89,6 +89,10 @@ should_skip_path() { case "$p" in "${REPO_ROOT}/"*) rel="${p#"${REPO_ROOT}/"}" ;; esac + # Strip leading './' if present + case "$rel" in + ./*) rel="${rel#./}" ;; + esac # Skip directories [[ -d "$p" ]] && return 0 # Skip obvious binaries by extension From 409def696d039dbffa31d4b80fd41ace72eacfaf Mon Sep 17 00:00:00 2001 From: Tsvetan Dimitrov Date: Mon, 25 Aug 2025 15:17:43 +0300 Subject: [PATCH 13/13] fix: revert changes on lint.sh --- .pre-commit-config.yaml | 4 ++- scripts/lint.sh | 62 ++++++----------------------------------- 2 files changed, 11 insertions(+), 55 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f9aacbb54..6a152d552f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,10 +36,12 @@ repos: # Stricter extra lints (golangci-lint v2) on staged changes at pre-commit - id: extra-golangci-lint name: golangci-lint (extra via scripts/lint.sh) - entry: bash -lc 'TESTS="avalanche_golangci_lint" scripts/lint.sh' + entry: scripts/lint.sh language: system stages: [pre-commit] pass_filenames: false + env: + TESTS: "avalanche_golangci_lint" - id: actionlint name: actionlint diff --git a/scripts/lint.sh b/scripts/lint.sh index eb62c43f94..a7cf7d03c6 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -7,62 +7,16 @@ if ! [[ "$0" =~ scripts/lint.sh ]]; then exit 255 fi -OS_NAME="$(uname -s)" - -# Darwin-specific environment handling: ensure Bash 4+ and GNU grep availability. -function handle_darwin { - # Re-exec with Homebrew bash when system bash is < 4 (macOS default 3.2) - if ! { test -n "${BASH_VERSINFO:-}" && [ "${BASH_VERSINFO[0]}" -ge 4 ]; }; then - for homebrew_bash_path in "/opt/homebrew/bin/bash" "/usr/local/bin/bash"; do - if [[ -x "${homebrew_bash_path}" ]]; then - exec "${homebrew_bash_path}" "$0" "$@" - fi - done - echo >&2 "error: This script requires bash >= 4. On macOS, install with: brew install bash" - echo >&2 " Then ensure Homebrew bash is used first in PATH or re-run via: /opt/homebrew/bin/bash scripts/lint.sh" - exit 255 - fi - - # Prefer ggrep when available; make a shim so plain `grep` resolves to it - if command -v ggrep >/dev/null 2>&1 && ggrep -P 'lint.sh' scripts/lint.sh &>/dev/null; then - local gnu_grep_shim_dir - gnu_grep_shim_dir="$(mktemp -d)" - ln -s "$(command -v ggrep)" "${gnu_grep_shim_dir}/grep" 2>/dev/null || true - export PATH="${gnu_grep_shim_dir}:${PATH}" - fi - - # Try Homebrew gnubin via brew and well-known locations - local -a candidate_gnubin_dirs=() - if command -v brew >/dev/null 2>&1; then - candidate_gnubin_dirs+=("$(brew --prefix grep 2>/dev/null)/libexec/gnubin") - fi - candidate_gnubin_dirs+=( - "/opt/homebrew/opt/grep/libexec/gnubin" - "/usr/local/opt/grep/libexec/gnubin" - ) - for candidate_dir in "${candidate_gnubin_dirs[@]}"; do - if [[ -d "${candidate_dir}" ]]; then - export PATH="${candidate_dir}:$PATH" - fi - done -} - -# Run Darwin adjustments early if applicable -if [[ "$OS_NAME" == "Darwin" ]]; then - handle_darwin "$@" -fi - -# Final probe; fail hard if still unsupported -if ! grep -P 'lint.sh' scripts/lint.sh &>/dev/null; then +# The -P option is not supported by the grep version installed by +# default on macos. Since `-o errexit` is ignored in an if +# conditional, triggering the problem here ensures script failure when +# using an unsupported version of grep. +grep -P 'lint.sh' scripts/lint.sh &>/dev/null || ( echo >&2 "error: This script requires a recent version of gnu grep." - if [[ "$OS_NAME" == "Darwin" ]]; then - echo >&2 " On macOS, install with: brew install grep" - echo >&2 " Ensure gnubin is on PATH, e.g.:" - echo >&2 " export PATH=\"/opt/homebrew/opt/grep/libexec/gnubin:\$PATH\" # Apple Silicon" - echo >&2 " export PATH=\"/usr/local/opt/grep/libexec/gnubin:\$PATH\" # Intel" - fi + echo >&2 " On macos, gnu grep can be installed with 'brew install grep'." + echo >&2 " It will also be necessary to ensure that gnu grep is available in the path." exit 255 -fi +) # Read excluded directories into arrays DEFAULT_FILES=()