-
Notifications
You must be signed in to change notification settings - Fork 257
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
Update libp2p #1059
Update libp2p #1059
Conversation
ced1e4c
to
6e56019
Compare
types/types.go
Outdated
@@ -18,7 +18,7 @@ import ( | |||
"github.com/33cn/chain33/common/address" | |||
"github.com/33cn/chain33/common/crypto" | |||
log "github.com/33cn/chain33/common/log/log15" | |||
"github.com/33cn/chain33/types/jsonpb" | |||
"github.com/golang/protobuf/jsonpb" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们的jsonpb 是自己修改过的,你对比一下原来的版本。
159d6c3
to
99ef95c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1059 +/- ##
==========================================
- Coverage 60.86% 60.41% -0.46%
==========================================
Files 153 157 +4
Lines 19634 19810 +176
==========================================
+ Hits 11951 11968 +17
- Misses 5850 6015 +165
+ Partials 1833 1827 -6
Continue to review full report at Codecov.
|
06dc264
to
c520313
Compare
5c736fa
to
d543630
Compare
// 因此此处对JoinData类型在判等时做一个特殊处理 | ||
if jd, ok := row.Data.(*JoinData); ok { | ||
if oldJd, ok2 := row.old.(*JoinData); ok2 && proto.Equal(jd.Left, oldJd.Left) && proto.Equal(jd.Right, oldJd.Right) { | ||
return nil, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写法上可以更加对称一点:
jd, ok := row.Data.(*JoinData)
oldJd, ok2 := row.old.(*JoinData)
if ok && ok2 && proto.Equal(jd.Left, oldJd.Left) && proto.Equal(jd.Right, oldJd.Right) {
return nil, nil
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
🎉 This PR is included in version 1.66.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.66.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
升级libp2p版本,老版本偶现panic libp2p/go-libp2p#1108
Fixes #1000