Skip to content
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 : update liblog to use SDKv0.50.0 #1043

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Conversation

ruthishvitwit
Copy link

No description provided.

byte-bandit and others added 2 commits November 23, 2023 05:57
Background
After more investigation, it's become apparent that there are transactions which are being rejected in the CometBFT mempool, I don't think they ever reach the app mempool.

The reason for the rejection is the account sequence mismatch. Theoretically, this should be verified when submitting a transaction.

Looking at the code, there is a precondition in our ante handler for signature verification that's being skipped if we're running CheckTX - so it's possible for a transaction that would actually fail to still be included in the mempool, as it looks like the check is only run once the TX is actually executed.

Tested this in public test net against a dev build and had promising results, meaning most TXs got rejected and evicted during the CheckTX stage.

However, 6 transactions remain to be stuck. I'm not entirely sure why. It's possible they're being re-broadcasted from the other nodes. Once all validators upgrade to the next version with this change in place, we will know.
@ruthishvitwit ruthishvitwit reopened this Nov 24, 2023
@ruthishvitwit ruthishvitwit changed the base branch from master to v0.50.0-upgrade November 24, 2023 05:39
@@ -78,7 +78,7 @@ func NewVerifyAuthorisedSignatureDecorator(fk types.FeegrantKeeper) VerifyAuthor
// AnteHandle verifies that the message is signed by at least one signature that has
// active fee grant from the creator address, IF the message contains metadata.
func (d VerifyAuthorisedSignatureDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
if simulate || ctx.IsCheckTx() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aleem1314 sorry as i made a mistake by raising a pr to master branch and then changing it to v.50 upgrade branch this commit got pulled into this pr.

@aleem1314 aleem1314 changed the title feat : Made changes to liblog feat : update liblog to use SDKv0.50.0 Nov 24, 2023
@aleem1314 aleem1314 merged commit 18a2d0e into v0.50.0-upgrade Nov 27, 2023
0 of 4 checks passed
@aleem1314 aleem1314 deleted the liblog-changes branch November 27, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants