Skip to content

Commit

Permalink
Update avalanchego v1.11.10 prerelease (#607)
Browse files Browse the repository at this point in the history
* update avago 668b452

* update avago

* update with test build tags

* update golangci

* update avalanchego

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
  • Loading branch information
StephenButtolph and ceyonur authored Jul 23, 2024
1 parent 161027f commit 0b6c492
Show file tree
Hide file tree
Showing 20 changed files with 43 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ run:
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# Include non-test files tagged as test-only.
# Context: https://github.com/ava-labs/avalanchego/pull/3173
build-tags:
- test

linters:
disable-all: true
Expand Down
7 changes: 7 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release Notes

## [v0.13.7](https://github.com/ava-labs/coreth/releases/tag/v0.13.7)
- Add EUpgrade base definitions
- Remove Block Status
- Fix and improve "GetBlockIDAtHeight"
- Bump golang version requirement to 1.21.12
- Bump AvalancheGo to v1.11.10-prerelease

## [v0.13.6](https://github.com/ava-labs/coreth/releases/tag/v0.13.6)
- rpc: truncate call error data logs
- logging: remove path prefix (up to coreth@version/) from logged file names.
Expand Down
2 changes: 2 additions & 0 deletions core/state/test_statedb.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package state

import (
Expand Down
2 changes: 2 additions & 0 deletions core/test_blockchain.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2020-2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package core

import (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.12

require (
github.com/VictoriaMetrics/fastcache v1.12.1
github.com/ava-labs/avalanchego v1.11.10-status-removal
github.com/ava-labs/avalanchego v1.11.10-prerelease
github.com/cespare/cp v0.1.0
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233
github.com/davecgh/go-spew v1.1.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/ava-labs/avalanchego v1.11.10-status-removal h1:XHF4iFteHTJo+7SnB9bxIwPmMmDf7gqS5wUS/uuZsxc=
github.com/ava-labs/avalanchego v1.11.10-status-removal/go.mod h1:NlSe4PE40EWD9rBLoNQrEvhABjcOyrV5McUpD3Q6h3Y=
github.com/ava-labs/avalanchego v1.11.10-prerelease h1:QUhVqvxrwDmsTvXXnKoePe5WU3Eh8GXB/QE2R2xHa0c=
github.com/ava-labs/avalanchego v1.11.10-prerelease/go.mod h1:ryRFbHr7sKmez4792NxzJS7AGiE+vd0Tez+qs2kmezE=
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
Expand Down
2 changes: 2 additions & 0 deletions internal/blocktest/test_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
// standalone go program. It provides an API that mirrors the standard library
// testing API.

//go:build test

package blocktest

import (
Expand Down
2 changes: 2 additions & 0 deletions plugin/evm/test_tx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2020-2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package evm

import (
Expand Down
2 changes: 1 addition & 1 deletion plugin/evm/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var (
// GitCommit is set by the build script
GitCommit string
// Version is the version of Coreth
Version string = "v0.13.6"
Version string = "v0.13.7"
)

func init() {
Expand Down
2 changes: 2 additions & 0 deletions precompile/testutils/test_config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package testutils

import (
Expand Down
2 changes: 2 additions & 0 deletions precompile/testutils/test_precompile.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package testutils

import (
Expand Down
2 changes: 2 additions & 0 deletions precompile/testutils/test_predicate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package testutils

import (
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ source "$CORETH_PATH"/scripts/constants.sh

# We pass in the arguments to this script directly to enable easily passing parameters such as enabling race detection,
# parallelism, and test coverage.
go test -shuffle=on -race -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic ./... "$@"
go test -tags test -shuffle=on -race -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic ./... "$@"
2 changes: 1 addition & 1 deletion scripts/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
set -euo pipefail

# Don't export them as they're used in the context of other calls
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.10-status-removal'}
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'v1.11.10-prerelease'}
2 changes: 2 additions & 0 deletions sync/handlers/test_providers.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2021-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package handlers

import (
Expand Down
2 changes: 2 additions & 0 deletions sync/statesync/test_sync.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2021-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package statesync

import (
Expand Down
2 changes: 2 additions & 0 deletions sync/syncutils/test_trie.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2021-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

package syncutils

import (
Expand Down
2 changes: 2 additions & 0 deletions tests/rlp_test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build test

package tests

import (
Expand Down
2 changes: 2 additions & 0 deletions tests/state_test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

//go:build test

package tests

import (
Expand Down
2 changes: 2 additions & 0 deletions warp/warptest/block_client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// (c) 2024, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

//go:build test

// warptest exposes common functionality for testing the warp package.
package warptest

Expand Down

0 comments on commit 0b6c492

Please sign in to comment.