-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 to tm version 23.0. #1927
Changes from 17 commits
7410bf6
c62380d
73b4bdd
57693b9
41d0355
2f85fff
4ee35d4
d130bbf
a107a80
7b52940
794a699
d2acf55
a27a43b
f44a487
c4b6c58
0e85025
161dfaa
7322cda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -387,7 +387,8 @@ func (app *BaseApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeg | |
} | ||
|
||
// set the signed validators for addition to context in deliverTx | ||
app.signedValidators = req.Validators | ||
// TODO: communicate this result to the address to pubkey map in slashing | ||
app.signedValidators = req.LastCommitInfo.GetValidators() | ||
return | ||
} | ||
|
||
|
@@ -412,11 +413,7 @@ func (app *BaseApp) CheckTx(txBytes []byte) (res abci.ResponseCheckTx) { | |
Log: result.Log, | ||
GasWanted: result.GasWanted, | ||
GasUsed: result.GasUsed, | ||
Fee: cmn.KI64Pair{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we getting rid of this? Presumably Tendermint needs to know about the fee? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fees were removed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, should we add priority then? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ValarDragon thoughts on the above? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No reason to add priority right now. We're not ready to support that at the mempool level, and we won't be for awhile. We discussed that priority is something we want to add as a way to test protobuf upgradability on a test net, not right now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I think it's not necessary to delay ABCI updates because Tendermint won't use the value yet, but nbd. |
||
[]byte(result.FeeDenom), | ||
result.FeeAmount, | ||
}, | ||
Tags: result.Tags, | ||
Tags: result.Tags, | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,5 @@ func SignTxRequstHandler(w http.ResponseWriter, r *http.Request) { | |
return | ||
} | ||
|
||
w.Write(sig.Bytes()) | ||
w.Write(sig) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package slashing | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/x/stake/types" | ||
) | ||
|
||
// InitGenesis initializes the keeper's address to pubkey map. | ||
func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState) { | ||
for _, validator := range data.Validators { | ||
keeper.addPubkey(ctx, validator.GetPubKey()) | ||
} | ||
return | ||
} |
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.
Can we add the PR reference here (preferably with a link por favor)?
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.
I'm not sure why the PR is helpful. The tendermint changelog is what is helpful, I can link that?
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.
But the SDK changed and that's important to note where/how it happened.
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.
I guess this is a downside of our pending system, the commit with all the changes can't be obtained from the file. I'll link the PR then.
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.
Yeah, I'd just would like to see a
CHANGELOG
and be able to go to the issue and/or PR that made the relevant changes.