-
Notifications
You must be signed in to change notification settings - Fork 495
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
Allow BlockMetadata to be generated when timeboost isn't enabled #2932
Conversation
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.
I see how this allows the block metadata to be recorded even when Timeboost is disabled. But, is there some other check somewhere that we are >= some target block number before we start collecting block metadata? We don't want to just unconditionally collect the block metadata, right?
timeboost/redis_coordinator.go
Outdated
@@ -92,7 +92,7 @@ func (rc *RedisCoordinator) GetAcceptedTxs(round, startSeqNum, endSeqNum uint64) | |||
fetchMsg := func(key string) *ExpressLaneSubmission { | |||
msgBytes, err := rc.client.Get(ctx, key).Bytes() | |||
if err != nil { | |||
log.Error("Error fetching accepted expressLane tx", "key", key, "err", err) | |||
log.Debug("Error fetching accepted expressLane tx", "key", key, "err", err) |
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.
Is this really an expected error that we want to just quietly ignore?
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.
yep its an expected error, since we have deterministic search of pending keys instead of redis.Scan
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.
We should log an error or warning normally but ignore it if it's redis.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.
ahh gotcha!
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.
LGTM
This is handled using TrackBlockMetadataFrom flag of transaction streamer nitro/arbnode/transaction_streamer.go Line 78 in b3022c6
|
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.
LGTM
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.
LGTM
ec4b665
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.
LGTM
No description provided.