-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(blocktime): Relay next_block_delay
from application to comet
#59
Conversation
@teddyding your pull request is missing a changelog! |
baseapp/abci.go
Outdated
} | ||
|
||
events = append(events, endBlock.Events...) | ||
|
||
cp := app.GetConsensusParams(app.finalizeBlockState.Context()) | ||
|
||
return &abci.ResponseFinalizeBlock{ |
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.
Change potentially affects state.
Call sequence:
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).internalFinalizeBlock (baseapp/abci.go:733)
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).FinalizeBlock (baseapp/abci.go:894)
baseapp/abci.go
Outdated
Events: events, | ||
TxResults: txResults, | ||
ValidatorUpdates: endBlock.ValidatorUpdates, | ||
ConsensusParamUpdates: &cp, | ||
// If `NextBlockDelay` is 0, cometbft uses the legacy config `TimeoutCommit` instead. | ||
NextBlockDelay: app.GetNextBlockDelay(app.finalizeBlockState.Context()), | ||
}, 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.
Change potentially affects state.
Call sequence:
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).internalFinalizeBlock (baseapp/abci.go:733)
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).FinalizeBlock (baseapp/abci.go:894)
SimApp build is broken, I think you need to update it's dependencies on comet as well in the go.mod. |
TxResults: txResults, | ||
ValidatorUpdates: endBlock.ValidatorUpdates, | ||
ConsensusParamUpdates: &cp, | ||
// If `NextBlockDelay` is 0, cometbft uses the legacy config `TimeoutCommit` instead. | ||
NextBlockDelay: app.GetNextBlockDelay(app.finalizeBlockState.Context()), | ||
}, 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.
Change potentially affects state.
Call sequence:
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).internalFinalizeBlock (baseapp/abci.go:733)
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).FinalizeBlock (baseapp/abci.go:894)
356a31b
to
5047a21
Compare
Relay
next_block_delay
from application to CometBFT. Relayingnext_block_delay
= 0 means CometBFT will default to usingtimeout_commit
.