Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit c428e54

Browse files
authored
Merge pull request #126 from ava-labs/avago1.9.3
update to avago 1.9.3
2 parents cf7867a + 2dd02be commit c428e54

File tree

12 files changed

+125
-100
lines changed

12 files changed

+125
-100
lines changed

.github/workflows/build-test-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: scripts/tests.integration.sh
2929
- name: Run e2e tests
3030
shell: bash
31-
run: E2E=true scripts/run.sh 1.9.2
31+
run: E2E=true scripts/run.sh 1.9.3
3232
env:
3333
E2E: true
3434
build_test_release:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ this to its logical conclusion).
2626
2727
2828
29+
30+
2931
```
3032

3133
## Introduction

chain/block.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package chain
55

66
import (
7+
"context"
78
"fmt"
89
"time"
910

@@ -204,7 +205,7 @@ func (b *StatelessBlock) verify() (*StatelessBlock, *versiondb.Database, error)
204205
}
205206

206207
// implements "snowman.Block"
207-
func (b *StatelessBlock) Verify() error {
208+
func (b *StatelessBlock) Verify(ctx context.Context) error {
208209
parent, onAcceptDB, err := b.verify()
209210
if err != nil {
210211
log.Debug("block verification failed", "blkID", b.ID(), "error", err)
@@ -223,7 +224,7 @@ func (b *StatelessBlock) Verify() error {
223224
}
224225

225226
// implements "snowman.Block.choices.Decidable"
226-
func (b *StatelessBlock) Accept() error {
227+
func (b *StatelessBlock) Accept(ctx context.Context) error {
227228
if err := b.onAcceptDB.Commit(); err != nil {
228229
return err
229230
}
@@ -238,7 +239,7 @@ func (b *StatelessBlock) Accept() error {
238239
}
239240

240241
// implements "snowman.Block.choices.Decidable"
241-
func (b *StatelessBlock) Reject() error {
242+
func (b *StatelessBlock) Reject(ctx context.Context) error {
242243
b.st = choices.Rejected
243244
b.vm.Rejected(b)
244245
return nil

chain/block_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package chain
55

66
import (
7+
"context"
78
"errors"
89
"testing"
910
"time"
@@ -150,7 +151,7 @@ func TestBlock(t *testing.T) {
150151
}
151152
for i, tv := range tt {
152153
blk := tv.createBlk()
153-
err := blk.Verify()
154+
err := blk.Verify(context.Background())
154155
if !errors.Is(err, tv.expectedVerifyErr) {
155156
t.Fatalf("#%d: block verify expected error %v, got %v", i, tv.expectedVerifyErr, err)
156157
}

compatibility.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"rpcChainVMProtocolVersion": {
3+
"v0.0.12": 19,
34
"v0.0.11": 19,
45
"v0.0.10": 19,
56
"v0.0.9": 17,
@@ -12,4 +13,4 @@
1213
"v0.0.2": 10,
1314
"v0.0.1": 9
1415
}
15-
}
16+
}

go.mod

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ module github.com/ava-labs/spacesvm
33
go 1.18
44

55
require (
6-
github.com/ava-labs/avalanche-network-runner-sdk v0.2.0
7-
github.com/ava-labs/avalanchego v1.9.2
8-
github.com/ethereum/go-ethereum v1.10.25
6+
github.com/ava-labs/avalanche-network-runner-sdk v0.3.0
7+
github.com/ava-labs/avalanchego v1.9.3
8+
github.com/ethereum/go-ethereum v1.10.26
99
github.com/fatih/color v1.13.0
1010
github.com/golang/mock v1.6.0
1111
github.com/gorilla/rpc v1.2.0
1212
github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac
13-
github.com/onsi/ginkgo/v2 v2.1.4
14-
github.com/onsi/gomega v1.19.0
13+
github.com/onsi/ginkgo/v2 v2.4.0
14+
github.com/onsi/gomega v1.24.0
1515
github.com/spf13/cobra v1.3.0
16-
github.com/stretchr/testify v1.8.0
16+
github.com/stretchr/testify v1.8.1
1717
sigs.k8s.io/yaml v1.3.0
1818
)
1919

@@ -30,8 +30,9 @@ require (
3030
github.com/go-stack/stack v1.8.0 // indirect
3131
github.com/golang/protobuf v1.5.2 // indirect
3232
github.com/golang/snappy v0.0.4 // indirect
33+
github.com/google/go-cmp v0.5.9 // indirect
3334
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
34-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
35+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.12.0 // indirect
3536
github.com/hashicorp/go-hclog v1.2.2 // indirect
3637
github.com/hashicorp/go-plugin v1.4.4 // indirect
3738
github.com/hashicorp/yamux v0.0.0-20200609203250-aecfd211c9ce // indirect
@@ -44,10 +45,10 @@ require (
4445
github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d // indirect
4546
github.com/oklog/run v1.1.0 // indirect
4647
github.com/pmezard/go-difflib v1.0.0 // indirect
47-
github.com/prometheus/client_golang v1.12.2 // indirect
48+
github.com/prometheus/client_golang v1.13.0 // indirect
4849
github.com/prometheus/client_model v0.2.0 // indirect
49-
github.com/prometheus/common v0.32.1 // indirect
50-
github.com/prometheus/procfs v0.7.3 // indirect
50+
github.com/prometheus/common v0.37.0 // indirect
51+
github.com/prometheus/procfs v0.8.0 // indirect
5152
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
5253
github.com/spf13/pflag v1.0.5 // indirect
5354
github.com/supranational/blst v0.3.11-0.20220920110316-f72618070295 // indirect
@@ -63,20 +64,20 @@ require (
6364
go.opentelemetry.io/otel/sdk v1.11.0 // indirect
6465
go.opentelemetry.io/otel/trace v1.11.0 // indirect
6566
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
66-
go.uber.org/atomic v1.9.0 // indirect
67+
go.uber.org/atomic v1.10.0 // indirect
6768
go.uber.org/multierr v1.8.0 // indirect
68-
go.uber.org/zap v1.21.0 // indirect
69+
go.uber.org/zap v1.23.0 // indirect
6970
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect
7071
golang.org/x/exp v0.0.0-20220426173459-3bcf042a4bf5 // indirect
71-
golang.org/x/net v0.0.0-20220708220712-1185a9018129 // indirect
72-
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
73-
golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect
74-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
75-
golang.org/x/text v0.3.7 // indirect
72+
golang.org/x/net v0.1.0 // indirect
73+
golang.org/x/sync v0.1.0 // indirect
74+
golang.org/x/sys v0.1.0 // indirect
75+
golang.org/x/term v0.1.0 // indirect
76+
golang.org/x/text v0.4.0 // indirect
7677
gonum.org/v1/gonum v0.11.0 // indirect
77-
google.golang.org/genproto v0.0.0-20220712132514-bdd2acd4974d // indirect
78-
google.golang.org/grpc v1.50.0-dev // indirect
79-
google.golang.org/protobuf v1.28.0 // indirect
78+
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c // indirect
79+
google.golang.org/grpc v1.50.1 // indirect
80+
google.golang.org/protobuf v1.28.1 // indirect
8081
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
8182
gopkg.in/yaml.v2 v2.4.0 // indirect
8283
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)