Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aggsender/aggsender.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (a *AggSender) sendCertificate(ctx context.Context) (*agglayer.SignedCertif
NewLocalExitRoot: certificate.NewLocalExitRoot,
PreviousLocalExitRoot: &prevLER,
FromBlock: fromBlock,
ToBlock: toBlock,
ToBlock: certificateParams.ToBlock,
CreatedAt: certificateParams.CreatedAt,
UpdatedAt: certificateParams.CreatedAt,
SignedCertificate: string(raw),
Expand Down
2 changes: 2 additions & 0 deletions aggsender/types/certificate_build_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"fmt"
"time"

"github.com/0xPolygon/cdk/bridgesync"
)
Expand Down Expand Up @@ -39,6 +40,7 @@ func (c *CertificateBuildParams) Range(fromBlock, toBlock uint64) (*CertificateB
ToBlock: toBlock,
Bridges: make([]bridgesync.Bridge, 0),
Claims: make([]bridgesync.Claim, 0),
CreatedAt: uint32(time.Now().UTC().Unix()),
}

for _, bridge := range c.Bridges {
Expand Down
2 changes: 2 additions & 0 deletions l1infotreesync/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func buildAppender(client EthClienter, globalExitRoot,
)
}
b.Events = append(b.Events, Event{VerifyBatches: &VerifyBatches{
BlockNumber: l.BlockNumber,
BlockPosition: uint64(l.Index),
RollupID: verifyBatches.RollupID,
NumBatch: verifyBatches.NumBatch,
Expand All @@ -176,6 +177,7 @@ func buildAppender(client EthClienter, globalExitRoot,
)
}
b.Events = append(b.Events, Event{VerifyBatches: &VerifyBatches{
BlockNumber: l.BlockNumber,
BlockPosition: uint64(l.Index),
RollupID: verifyBatches.RollupID,
NumBatch: verifyBatches.NumBatch,
Expand Down
1 change: 0 additions & 1 deletion l1infotreesync/processor_verifybatches.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func (p *processor) processVerifyBatches(tx db.Txer, blockNumber uint64, event *
return fmt.Errorf("error rollupExitTree.UpsertLeaf. err: %w", err)
}
verifyBatches := event
verifyBatches.BlockNumber = blockNumber
verifyBatches.RollupExitRoot = newRoot
if err = meddler.Insert(tx, "verify_batches", verifyBatches); err != nil {
return fmt.Errorf("error inserting verify_batches. err: %w", err)
Expand Down
Loading