Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade package #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
go-version: ^1.21.11

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@
# Go parameters
GOCMD=go
GOLINT=golint
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test

# Pkgs
ALL_PKGS := $(shell go list ./... )
PKGS := $(shell go list ./... | grep -v /vendor/ )

# Docker parameters
DOCKERCMD=docker

# Package Info
PACKAGE_VERSION := $(shell git describe --tags --always)
PACKAGE_COMMIT_ID := $(shell git rev-parse HEAD)
Expand Down Expand Up @@ -66,4 +61,4 @@ lint:
.PHONY: clean
clean:
@echo "Cleaning..."
$(ECHO_V)$(GOCLEAN) -i $(PKGS)
$(ECHO_V)$(GOCLEAN) -i $(PKGS)
11 changes: 5 additions & 6 deletions bloom/bloom_m.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,11 @@ func (b *bloomMbits) Exist(key []byte) bool {

// Bytes returns the bytes of bloom filter (in Big Endian)
//
// m: uint64 x 1
// k: uint64 x 1
// n: uint64 x 1
// buckets: []uint64
// hash: [32]byte = Hash256b(above)
//
// m: uint64 x 1
// k: uint64 x 1
// n: uint64 x 1
// buckets: []uint64
// hash: [32]byte = Hash256b(above)
func (b *bloomMbits) Bytes() []byte {
buf := new(bytes.Buffer)

Expand Down
39 changes: 26 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
module github.com/iotexproject/go-pkgs

go 1.17
go 1.21.11

require (
github.com/cespare/cp v1.1.1 // indirect
github.com/deckarep/golang-set v1.7.1 // indirect
github.com/dustinxie/gmsm v1.4.0
github.com/ethereum/go-ethereum v1.10.4
github.com/ethereum/go-ethereum v1.10.26
github.com/iotexproject/iotex-address v0.2.7
github.com/pkg/errors v0.9.1
github.com/rjeczalik/notify v0.9.2 // indirect
github.com/stretchr/testify v1.7.0
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d
github.com/stretchr/testify v1.8.4
golang.org/x/net v0.21.0
)

require (
github.com/btcsuite/btcd v0.20.1-beta // indirect
github.com/bits-and-blooms/bitset v1.10.0 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/consensys/bavard v0.1.13 // indirect
github.com/consensys/gnark-crypto v0.12.1 // indirect
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/google/uuid v1.1.5 // indirect
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/mmcloughlin/addchain v0.4.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
github.com/supranational/blst v0.3.11 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect
golang.org/x/lint v0.0.0-20241112194109-818c5a804067 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/tools v0.15.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)

replace github.com/ethereum/go-ethereum v1.10.4 => github.com/iotexproject/go-ethereum v0.4.0
replace github.com/ethereum/go-ethereum v1.10.26 => github.com/iotexproject/go-ethereum v0.5.0
Loading