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

Log the correct FinalizeBlock request height when OE aborts with mismatch #54

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

teddyding
Copy link

See PR comment

Copy link

@teddyding your pull request is missing a changelog!

if oe == nil {
return false
}

oe.mtx.Lock()
defer oe.mtx.Unlock()

if !bytes.Equal(oe.request.Hash, reqHash) {
oe.logger.Error("OE aborted due to hash mismatch", "oe_hash", hex.EncodeToString(oe.request.Hash), "req_hash", hex.EncodeToString(reqHash), "oe_height", oe.request.Height, "req_height", oe.request.Height)
Copy link
Author

@teddyding teddyding Jul 26, 2024

Choose a reason for hiding this comment

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

Previously using oe.request.Height for both oe_height and req_height, which is not correct.

@teddyding teddyding changed the title Log the correct FinalizeBlock request height OE aborts with mismatch. Log the correct FinalizeBlock request height when OE aborts with mismatch Jul 26, 2024
@teddyding teddyding merged commit 66138eb into dydx-fork-v0.50.5 Aug 7, 2024
33 of 39 checks passed
@teddyding teddyding deleted the td/fix-oe-log branch August 7, 2024 20:45
teddyding added a commit that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants