Skip to content

Commit

Permalink
Merge branch 'master' into private_key_loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinxie authored Sep 2, 2022
2 parents 9d91f3c + e5e9d11 commit 106a43d
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 41 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17.2
# cache: true
go-version: 1.18.5
cache: false

# - name: Error Check
# uses: reviewdog/action-golangci-lint@v2
Expand All @@ -40,6 +40,8 @@ jobs:
shell: bash
run: |
go install golang.org/x/lint/golint@master
go install github.com/dave/courtney@latest
go mod tidy
golint -set_exit_status $(go list ./... | grep -v /vendor/ | grep -v /explorer/idl/ | grep -v /api/idl/)
#go get -u github.com/dave/courtney@038390a12707e2d91979d2ca77a71597f4afe400
./go.test.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18.5

- name: make ioctl
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17-alpine as build
FROM golang:1.18.5-alpine as build

WORKDIR apps/iotex-core

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Official Golang implementation of the IoTeX protocol.

[![Join the forum](https://img.shields.io/badge/Discuss-IoTeX%20Community-blue)](https://community.iotex.io/c/research-development/protocol)
[![Go version](https://img.shields.io/badge/go-1.17.3-blue.svg)](https://github.com/moovweb/gvm)
[![Go version](https://img.shields.io/badge/go-1.18.5-blue.svg)](https://github.com/moovweb/gvm)
[![Go Report Card](https://goreportcard.com/badge/github.com/iotexproject/iotex-core)](https://goreportcard.com/report/github.com/iotexproject/iotex-core)
[![Coverage](https://codecov.io/gh/iotexproject/iotex-core/branch/master/graph/badge.svg)](https://codecov.io/gh/iotexproject/iotex-core)
[![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/iotexproject/iotex-core)
Expand Down Expand Up @@ -33,7 +33,7 @@ Please visit [IoTeX Delegate Manual](https://github.com/iotexproject/iotex-boots

| Components | Version | Description |
|----------|-------------|-------------|
| [Golang](https://golang.org) | ≥ 1.17.3 | Go programming language |
| [Golang](https://golang.org) | ≥ 1.18.5 | Go programming language |
| [Protoc](https://developers.google.com/protocol-buffers/) | ≥ 3.6.0 | Protocol buffers, required only when you rebuild protobuf messages |

### Compile
Expand Down
11 changes: 10 additions & 1 deletion chainservice/chainservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,19 @@ var (
},
[]string{"sender", "recipient"},
)
_blockchainFullnessMtc = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "iotex_blockchain_fullness",
Help: "Blockchain fullness statistics",
},
[]string{"message_type"},
)
)

func init() {
prometheus.MustRegister(_apiCallWithChainIDMtc)
prometheus.MustRegister(_apiCallWithOutChainIDMtc)
prometheus.MustRegister(_blockchainFullnessMtc)
}

// ChainService is a blockchain service with all blockchain components.
Expand Down Expand Up @@ -91,7 +99,8 @@ func (cs *ChainService) Stop(ctx context.Context) error {
}

// ReportFullness switch on or off block sync
func (cs *ChainService) ReportFullness(_ context.Context, _ iotexrpc.MessageType, fullness float32) {
func (cs *ChainService) ReportFullness(_ context.Context, messageType iotexrpc.MessageType, fullness float32) {
_blockchainFullnessMtc.WithLabelValues(iotexrpc.MessageType_name[int32(messageType)]).Set(float64(fullness))
}

// HandleAction handles incoming action request.
Expand Down
22 changes: 11 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/iotexproject/iotex-core

go 1.17
go 1.18

require (
github.com/cenkalti/backoff v2.2.1+incompatible
Expand All @@ -9,7 +9,6 @@ require (
github.com/go-redis/redis/v8 v8.11.4
github.com/go-sql-driver/mysql v1.4.1
github.com/golang/mock v1.4.4
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.3
github.com/gorilla/websocket v1.4.2
github.com/grpc-ecosystem/go-grpc-middleware v1.2.0
Expand All @@ -21,7 +20,7 @@ require (
github.com/iotexproject/iotex-address v0.2.8
github.com/iotexproject/iotex-antenna-go/v2 v2.5.1
github.com/iotexproject/iotex-election v0.3.5-0.20210611041425-20ddf674363d
github.com/iotexproject/iotex-proto v0.5.10-0.20220415042310-0d4bcef3febf
github.com/iotexproject/iotex-proto v0.5.10
github.com/libp2p/go-libp2p-core v0.8.5
github.com/mattn/go-sqlite3 v1.14.8
github.com/miguelmota/go-ethereum-hdwallet v0.1.1
Expand All @@ -33,7 +32,7 @@ require (
github.com/rs/zerolog v1.18.0
github.com/schollz/progressbar/v2 v2.15.0
github.com/spf13/cobra v1.1.1
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.8.0
github.com/tidwall/gjson v1.11.0
github.com/tyler-smith/go-bip39 v1.0.2
go.elastic.co/ecszap v1.0.0
Expand All @@ -46,18 +45,19 @@ require (
go.uber.org/automaxprocs v1.2.0
go.uber.org/config v1.3.1
go.uber.org/zap v1.16.0
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90
golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b
google.golang.org/genproto v0.0.0-20211223182754-3ac035c7e7cb
google.golang.org/grpc v1.43.0
google.golang.org/protobuf v1.27.1
google.golang.org/protobuf v1.28.1
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/golang/protobuf v1.5.2
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible
github.com/shirou/gopsutil/v3 v3.22.2
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde
golang.org/x/text v0.3.7
)

Expand Down Expand Up @@ -187,13 +187,13 @@ require (
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
golang.org/x/sys v0.0.0-20220111092808-5a964db01320 // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect
google.golang.org/appengine v1.6.5 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/ethereum/go-ethereum => github.com/iotexproject/go-ethereum v1.7.4-0.20220515212948-4dae4279da68
Expand Down
Loading

0 comments on commit 106a43d

Please sign in to comment.