-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat: enhance bid comparison and reply bidding results && detail logs #2538
Conversation
could you please help to add a metric on bid_simulator Line547 |
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.
hi, We will have hot fix release soon, as this PR is not a must to have feature, so we will hold this PR after the hot fix. It may take 2 weeks.
"validatorReward", weiToEtherStringF6(bidRuntime.expectedValidatorReward), | ||
"tx", len(newBid.bid.Txs), | ||
"hash", newBid.bid.Hash().TerminalString(), | ||
) |
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.
It is suggested to send a nil
error back to newBid.feedback
if no error happen, so that sendBid
can return ASAP
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.
if no error happen, it's 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.
check this note?
@@ -633,7 +643,7 @@ func (b *bidSimulator) simBid(interruptCh chan int32, bidRuntime *BidRuntime) { | |||
if b.config.GreedyMergeTx { | |||
delay := b.engine.Delay(b.chain, bidRuntime.env.header, &b.delayLeftOver) | |||
if delay != nil && *delay > 0 { | |||
bidTxsSet := mapset.NewSet[common.Hash]() | |||
bidTxsSet := mapset.NewThreadUnsafeSetWithSize[common.Hash](len(bidRuntime.bid.Txs)) |
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.
what is the motivation to change the hash set type?
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.
for no concurrent operation on bidTxsSet
chore: lower report issue log level
Description
Add builder bid arriving and comparing log into standard log output.