Skip to content

Commit 96e9d99

Browse files
authored
Merge pull request #6228 from filecoin-project/chore/bump-v1.14.0
chore: bump version to v1.14.0
2 parents c1e31ca + 35bd869 commit 96e9d99

File tree

10 files changed

+75
-67
lines changed

10 files changed

+75
-67
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# venus changelog
22

3+
## v1.14.0
4+
5+
* chore: update sophon-auth
6+
37
## v1.14.0-rc6
48

59
* opt: migration: set premigration to 90 minute [[#6217](https://github.com/filecoin-project/venus/pull/6217)]

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ require (
5353
github.com/hako/durafmt v0.0.0-20200710122514-c0fb7b4da026
5454
github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e
5555
github.com/hashicorp/go-multierror v1.1.1
56-
github.com/hashicorp/golang-lru/v2 v2.0.2
56+
github.com/hashicorp/golang-lru/arc/v2 v2.0.7
57+
github.com/hashicorp/golang-lru/v2 v2.0.7
5758
github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c
5859
github.com/ipfs-force-community/metrics v1.0.1-0.20231011024528-8c881d456601
59-
github.com/ipfs-force-community/sophon-auth v1.14.0-rc1
60+
github.com/ipfs-force-community/sophon-auth v1.14.0
6061
github.com/ipfs/boxo v0.10.1
6162
github.com/ipfs/go-cid v0.4.1
6263
github.com/ipfs/go-datastore v0.6.0

go.sum

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,10 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
570570
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
571571
github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
572572
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
573-
github.com/hashicorp/golang-lru/v2 v2.0.2 h1:Dwmkdr5Nc/oBiXgJS3CDHNhJtIHkuZ3DZF5twqnfBdU=
574-
github.com/hashicorp/golang-lru/v2 v2.0.2/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
573+
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 h1:QxkVTxwColcduO+LP7eJO56r2hFiG8zEbfAAzRv52KQ=
574+
github.com/hashicorp/golang-lru/arc/v2 v2.0.7/go.mod h1:Pe7gBlGdc8clY5LJ0LpJXMt5AmgmWNH1g+oFFVUHOEc=
575+
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
576+
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
575577
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
576578
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
577579
github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c h1:aY2hhxLhjEAbfXOx2nRJxCXezC6CO2V/yN+OCr1srtk=
@@ -592,8 +594,8 @@ github.com/ipfs-force-community/go-jsonrpc v0.1.9 h1:5QavBltfvV6fz/+EbYsCkVxJ1MS
592594
github.com/ipfs-force-community/go-jsonrpc v0.1.9/go.mod h1:jBSvPTl8V1N7gSTuCR4bis8wnQnIjHbRPpROol6iQKM=
593595
github.com/ipfs-force-community/metrics v1.0.1-0.20231011024528-8c881d456601 h1:zxKQ30KAD6KfvSFAx9tuqQXLDsEHyF+eVaUBXXYC2bU=
594596
github.com/ipfs-force-community/metrics v1.0.1-0.20231011024528-8c881d456601/go.mod h1:wM6EmkEcnJgWOFcVytgvK0u15awEmt8He0f2kAdsFDA=
595-
github.com/ipfs-force-community/sophon-auth v1.14.0-rc1 h1:r+TSz2r6H7K0ZtsiyS4Hmmf1bM62e5vQiHA8SYPIBz4=
596-
github.com/ipfs-force-community/sophon-auth v1.14.0-rc1/go.mod h1:d6J6u3zyIwcEajRho5BhVBcoIChEf0K76wP4yJEfEhc=
597+
github.com/ipfs-force-community/sophon-auth v1.14.0 h1:ctBJ6UHkcytEzfVPgiiHo0cW4FGQrE7r1H3Um0FcHbo=
598+
github.com/ipfs-force-community/sophon-auth v1.14.0/go.mod h1:d6J6u3zyIwcEajRho5BhVBcoIChEf0K76wP4yJEfEhc=
597599
github.com/ipfs/bbloom v0.0.1/go.mod h1:oqo8CVWsJFMOZqTglBG4wydCE4IQA/G2/SEofB0rjUI=
598600
github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs=
599601
github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0=

pkg/chain/store.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"runtime/debug"
1111
"sync"
1212

13-
lru "github.com/hashicorp/golang-lru/v2"
13+
"github.com/hashicorp/golang-lru/arc/v2"
1414
"github.com/ipld/go-car"
1515
carutil "github.com/ipld/go-car/util"
1616
carv2 "github.com/ipld/go-car/v2"
@@ -128,7 +128,7 @@ type Store struct {
128128
reorgCh chan reorg
129129
reorgNotifeeCh chan ReorgNotifee
130130

131-
tsCache *lru.ARCCache[types.TipSetKey, *types.TipSet]
131+
tsCache *arc.ARCCache[types.TipSetKey, *types.TipSet]
132132
}
133133

134134
// NewStore constructs a new default store.
@@ -137,7 +137,7 @@ func NewStore(chainDs repo.Datastore,
137137
genesisCid cid.Cid,
138138
circulatiingSupplyCalculator ICirculatingSupplyCalcualtor,
139139
) *Store {
140-
tsCache, _ := lru.NewARC[types.TipSetKey, *types.TipSet](DefaultTipsetLruCacheSize)
140+
tsCache, _ := arc.NewARC[types.TipSetKey, *types.TipSet](DefaultTipsetLruCacheSize)
141141
store := &Store{
142142
stateAndBlockSource: cbor.NewCborStore(bsstore),
143143
ds: chainDs,

pkg/consensus/block_validator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/Gurpartap/async"
1212
"github.com/hashicorp/go-multierror"
13-
lru "github.com/hashicorp/golang-lru/v2"
13+
"github.com/hashicorp/golang-lru/arc/v2"
1414
"github.com/ipfs/go-cid"
1515
cbor "github.com/ipfs/go-ipld-cbor"
1616
pubsub "github.com/libp2p/go-libp2p-pubsub"
@@ -78,7 +78,7 @@ type BlockValidator struct {
7878
// gasprice for vm
7979
gasPirceSchedule *gas.PricesSchedule
8080
// cache for validate block
81-
validateBlockCache *lru.ARCCache[cid.Cid, struct{}]
81+
validateBlockCache *arc.ARCCache[cid.Cid, struct{}]
8282

8383
Stmgr StateTransformer
8484
}
@@ -97,7 +97,7 @@ func NewBlockValidator(tv TicketValidator,
9797
config *config.NetworkParamsConfig,
9898
gasPirceSchedule *gas.PricesSchedule,
9999
) *BlockValidator {
100-
validateBlockCache, _ := lru.NewARC[cid.Cid, struct{}](2048)
100+
validateBlockCache, _ := arc.NewARC[cid.Cid, struct{}](2048)
101101
return &BlockValidator{
102102
tv: tv,
103103
bstore: bstore,

pkg/constants/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
)
66

77
// BuildVersion is the local build version, set by build system
8-
const BuildVersion = "1.14.0-rc6"
8+
const BuildVersion = "1.14.0"
99

1010
var CurrentCommit string
1111

pkg/events/message_cache.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"sync"
66

7-
lru "github.com/hashicorp/golang-lru/v2"
7+
"github.com/hashicorp/golang-lru/arc/v2"
88
"github.com/ipfs/go-cid"
99

1010
"github.com/filecoin-project/venus/venus-shared/types"
@@ -14,11 +14,11 @@ type messageCache struct {
1414
api IEvent
1515

1616
blockMsgLk sync.Mutex
17-
blockMsgCache *lru.ARCCache[cid.Cid, *types.BlockMessages]
17+
blockMsgCache *arc.ARCCache[cid.Cid, *types.BlockMessages]
1818
}
1919

2020
func newMessageCache(api IEvent) *messageCache {
21-
blsMsgCache, _ := lru.NewARC[cid.Cid, *types.BlockMessages](500)
21+
blsMsgCache, _ := arc.NewARC[cid.Cid, *types.BlockMessages](500)
2222

2323
return &messageCache{
2424
api: api,

pkg/statemanger/state_manger.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/filecoin-project/venus/venus-shared/actors/builtin/paych"
2828
blockstoreutil "github.com/filecoin-project/venus/venus-shared/blockstore"
2929
"github.com/filecoin-project/venus/venus-shared/types"
30-
lru "github.com/hashicorp/golang-lru/v2"
30+
"github.com/hashicorp/golang-lru/arc/v2"
3131
"github.com/ipfs/go-cid"
3232
logging "github.com/ipfs/go-log/v2"
3333
"go.opencensus.io/trace"
@@ -78,7 +78,7 @@ type Stmgr struct {
7878

7979
// We keep a small cache for calls to ExecutionTrace which helps improve
8080
// performance for node operators like exchanges and block explorers
81-
execTraceCache *lru.ARCCache[types.TipSetKey, tipSetCacheEntry]
81+
execTraceCache *arc.ARCCache[types.TipSetKey, tipSetCacheEntry]
8282
// We need a lock while making the copy as to prevent other callers
8383
// overwrite the cache while making the copy
8484
execTraceCacheLock sync.Mutex
@@ -94,10 +94,10 @@ func NewStateManager(cs *chain.Store,
9494
actorDebugging bool,
9595
) (*Stmgr, error) {
9696
log.Debugf("execTraceCache size: %d", execTraceCacheSize)
97-
var execTraceCache *lru.ARCCache[types.TipSetKey, tipSetCacheEntry]
97+
var execTraceCache *arc.ARCCache[types.TipSetKey, tipSetCacheEntry]
9898
var err error
9999
if execTraceCacheSize > 0 {
100-
execTraceCache, err = lru.NewARC[types.TipSetKey, tipSetCacheEntry](execTraceCacheSize)
100+
execTraceCache, err = arc.NewARC[types.TipSetKey, tipSetCacheEntry](execTraceCacheSize)
101101
if err != nil {
102102
return nil, err
103103
}

venus-devtool/go.mod

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ require (
88
github.com/filecoin-project/go-data-transfer/v2 v2.0.0-rc7
99
github.com/filecoin-project/go-fil-markets v1.28.3
1010
github.com/filecoin-project/go-jsonrpc v0.3.1
11-
github.com/filecoin-project/go-state-types v0.12.5
12-
github.com/filecoin-project/lotus v1.24.0-rc6
11+
github.com/filecoin-project/go-state-types v0.12.8
12+
github.com/filecoin-project/lotus v1.24.0
1313
github.com/filecoin-project/venus v0.0.0-00010101000000-000000000000
1414
github.com/google/uuid v1.3.0
1515
github.com/ipfs/go-block-format v0.1.2
1616
github.com/ipfs/go-cid v0.4.1
1717
github.com/ipfs/go-graphsync v0.14.6
1818
github.com/ipld/go-ipld-selector-text-lite v0.0.1
19-
github.com/libp2p/go-libp2p v0.27.9
19+
github.com/libp2p/go-libp2p v0.30.0
2020
github.com/libp2p/go-libp2p-pubsub v0.9.3
21-
github.com/multiformats/go-multiaddr v0.9.0
21+
github.com/multiformats/go-multiaddr v0.11.0
2222
github.com/urfave/cli/v2 v2.25.5
2323
github.com/whyrusleeping/cbor-gen v0.0.0-20230923211252-36a87e1ba72f
24-
golang.org/x/tools v0.9.1
24+
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846
2525
)
2626

2727
require (
@@ -101,7 +101,8 @@ require (
101101
github.com/hashicorp/errwrap v1.1.0 // indirect
102102
github.com/hashicorp/go-multierror v1.1.1 // indirect
103103
github.com/hashicorp/golang-lru v0.6.0 // indirect
104-
github.com/hashicorp/golang-lru/v2 v2.0.2 // indirect
104+
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 // indirect
105+
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
105106
github.com/icza/backscanner v0.0.0-20210726202459-ac2ffc679f94 // indirect
106107
github.com/ipfs/bbloom v0.0.4 // indirect
107108
github.com/ipfs/boxo v0.10.1 // indirect
@@ -131,7 +132,7 @@ require (
131132
github.com/jessevdk/go-flags v1.4.0 // indirect
132133
github.com/jpillora/backoff v1.0.0 // indirect
133134
github.com/kilic/bls12-381 v0.1.0 // indirect
134-
github.com/klauspost/compress v1.16.6 // indirect
135+
github.com/klauspost/compress v1.16.7 // indirect
135136
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
136137
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
137138
github.com/libp2p/go-cidranger v1.1.0 // indirect
@@ -145,7 +146,7 @@ require (
145146
github.com/magefile/mage v1.13.0 // indirect
146147
github.com/mattn/go-isatty v0.0.19 // indirect
147148
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
148-
github.com/miekg/dns v1.1.54 // indirect
149+
github.com/miekg/dns v1.1.55 // indirect
149150
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
150151
github.com/minio/sha256-simd v1.0.1 // indirect
151152
github.com/mitchellh/go-homedir v1.1.0 // indirect
@@ -197,13 +198,13 @@ require (
197198
go.opentelemetry.io/otel/trace v1.16.0 // indirect
198199
go.uber.org/atomic v1.11.0 // indirect
199200
go.uber.org/multierr v1.11.0 // indirect
200-
go.uber.org/zap v1.24.0 // indirect
201+
go.uber.org/zap v1.25.0 // indirect
201202
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
202203
golang.org/x/crypto v0.14.0 // indirect
203-
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
204-
golang.org/x/mod v0.10.0 // indirect
204+
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
205+
golang.org/x/mod v0.12.0 // indirect
205206
golang.org/x/net v0.17.0 // indirect
206-
golang.org/x/sync v0.2.0 // indirect
207+
golang.org/x/sync v0.3.0 // indirect
207208
golang.org/x/sys v0.13.0 // indirect
208209
golang.org/x/text v0.13.0 // indirect
209210
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect

0 commit comments

Comments
 (0)