Skip to content

Conversation

@ganeshvanahalli
Copy link
Contributor

No description provided.

ganeshvanahalli and others added 30 commits July 11, 2025 16:41
Message extraction function works with logs instead of receipts
@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 5.19481% with 219 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.15%. Comparing base (276f529) to head (47b25bb).

Additional details and impacted files
@@                    Coverage Diff                     @@
##           raul/mel-inbox-reading    #4152      +/-   ##
==========================================================
- Coverage                   29.29%   29.15%   -0.14%     
==========================================================
  Files                         457      460       +3     
  Lines                       55861    56013     +152     
==========================================================
- Hits                        16362    16331      -31     
- Misses                      36542    36713     +171     
- Partials                     2957     2969      +12     

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

❌ 799 Tests Failed:

Tests completed Failed Passed Skipped
4319 799 3520 0
View the top 3 failed tests by shortest run time
TestFastConfirmationWithSafe
Stack Traces | -0.000s run time
=== RUN   TestFastConfirmationWithSafe
=== PAUSE TestFastConfirmationWithSafe
TestDimLogSstoreWarmZeroToNonZeroValue
Stack Traces | -0.000s run time
=== RUN   TestDimLogSstoreWarmZeroToNonZeroValue
=== PAUSE TestDimLogSstoreWarmZeroToNonZeroValue
TestSetFinalityBlockHashMismatch
Stack Traces | -0.000s run time
=== RUN   TestSetFinalityBlockHashMismatch
=== PAUSE TestSetFinalityBlockHashMismatch

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov


func (mv *MELValidator) Start(ctx context.Context) {
mv.CallIteratively(func(ctx context.Context) time.Duration {
latestStaked, err := mv.rollup.LatestStakedAssertion(&bind.CallOpts{}, mv.boldStakerAddr)
Copy link
Contributor

Choose a reason for hiding this comment

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

This will only work if the current node's mv.boldStakerAddress is the one that is staked on the chain (needs $10 million USD). We should instead fetch the latest assertion we locally agree with. I think we need to expose a helper method for this, and I can do this once I return from holiday

if state.Hash() != wantState.Hash() {
return nil, fmt.Errorf("calculated MEL state hash in recording mode doesn't match the one computed in native mode, parentchainBlocknumber: %d", i)
}
if state.MsgCount >= toValidateMsgExtractionCount {
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice!

melValidator := staker.NewMELValidator(builder.L2.ConsensusNode.ArbDB, builder.L1.Client, builder.L2.ConsensusNode.MessageExtractor, blobReaderRegistry)
extractedMsgCount, err := builder.L2.ConsensusNode.TxStreamer.GetMessageCount()
Require(t, err)
entry, err := melValidator.CreateNextValidationEntry(ctx, startBlock, uint64(extractedMsgCount))
Copy link
Contributor

Choose a reason for hiding this comment

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

To test out multiple validations, we'll probably need to setup assertion posting...I can also help with this once Im back

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