-
Notifications
You must be signed in to change notification settings - Fork 43
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
R4R: upgrade cosmos to 0.25 & tendermint to v0.25.1-rc0 #215
Conversation
Gopkg.toml
Outdated
@@ -57,6 +57,10 @@ | |||
branch = "master" | |||
name = "github.com/deathowl/go-metrics-prometheus" | |||
|
|||
[prune] | |||
go-tests = true | |||
unused-packages = true |
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.
dup
…an work but cannot generate block
fix init does not print app message fix ante newCtx nil issue
@@ -59,3 +56,13 @@ | |||
[[constraint]] | |||
branch = "master" | |||
name = "github.com/deathowl/go-metrics-prometheus" | |||
|
|||
[[override]] | |||
name = "golang.org/x/crypto" |
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.
comments why?
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.
let me confirm...
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.
cosmos-sdk overrides this version of crypto. so to use this version, we have to override here.
app/app.go
Outdated
app.MountStoresIAVL( | ||
common.MainStoreKey, | ||
common.AccountStoreKey, | ||
common.ValStoreKey, |
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.
It is hard to tell what ValStore
is about. could we change to a clearer name?
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.
ValAddrStore ?
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.
better.
@@ -83,43 +53,22 @@ func NewAnteHandler(am auth.AccountMapper, orderMsgType string) sdk.AnteHandler | |||
// collect signer accounts | |||
// TODO: abort if there is more than one signer? | |||
var signerAccs = make([]auth.Account, len(signerAddrs)) |
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.
this part is new change made by Luke, missed?
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.
his change is a workaround. so here we have used a more reasonable solution to fix the sequence issue.
checkInvalidTx(t, anteHandler, ctx, txn, sdk.CodeInvalidPubKey) | ||
} | ||
|
||
func TestAnteHandlerGoodOrderID(t *testing.T) { |
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.
wrong drop?
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.
in the new solution, we do not check orderId in ante handler. So dropped it.
not much big change is required. Please try to solve the conflict and merge in next week. thanks! |
Closes: #118
Closes: #59
Description
Upgrade cosmos and tendermint.
We switch to our own cosmos-sdk repo https://github.com/BiJie/bnc-cosmos-sdk which is forked from the official repo.
Both the new cosmos-sdk repo and BinanceChain will reference to same version of tendermint which is
v0.25.1-rc0 currently.
Rationale
Too many files copied from the original cosmos-sdk since we have lot of customized features.
If not forking, more and more files need copy which would make the future upgrade harder and harder.
Example
Changes
Notable changes:
Preflight checks
make build
)make test
)make integration_test
)Already reviewed by
@ackratos @guagualvcha
Related issues