Skip to content

pbs: fix an inaccurate bid result log#2959

Merged
zzzckck merged 1 commit intobnb-chain:develop_for_v1.5.8from
zzzckck:pbs_firstbid_log
Mar 18, 2025
Merged

pbs: fix an inaccurate bid result log#2959
zzzckck merged 1 commit intobnb-chain:develop_for_v1.5.8from
zzzckck:pbs_firstbid_log

Conversation

@zzzckck
Copy link
Collaborator

@zzzckck zzzckck commented Mar 18, 2025

Description

This PR only change the misleading log, like:

t=2025-03-11T11:17:47+0000 lvl=info msg="[BID ARRIVED]" ...
...
t=2025-03-11T11:17:48+0000 lvl=info msg="Successfully sealed new block"...
t=2025-03-11T11:17:48+0000 lvl=info msg="[BID RESULT]" win=true[first]...

Sometimes "bestBid == nil" does not mean it is the first bid, if new block was just imported during the bid simulation, the bestBid will be cleared as well. In this case, the bid is stale and useless.

Keep the SetBestBid right now, as it will be cleared later anyway. Once we have more confidence, it can be removed

Rationale

NA

Example

NA

Changes

NA

sometimes "bestBid == nil" does not mean it is the first bid,
if new block was just importing during the bid simulation, the bestBid
will be clear as well. In this case, the bid is stale and useless.

Keep the SetBestBid right now, as it will be cleared later anyway.
Once we have more confidence, it can be removed
@zzzckck zzzckck changed the title pbs: fix a inaccurate bid result log pbs: fix an inaccurate bid result log Mar 18, 2025
@zzzckck zzzckck merged commit b83c606 into bnb-chain:develop_for_v1.5.8 Mar 18, 2025
1 check failed
@zzzckck zzzckck deleted the pbs_firstbid_log branch May 14, 2025 06:11
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