From edde9a7b53d4eb3166a7390bf199940bd2f1d10c Mon Sep 17 00:00:00 2001 From: "xingqiang.yuan" Date: Fri, 13 Jun 2025 18:03:05 +0800 Subject: [PATCH] use BlockPos instead of Pos as Pos is always 0 --- bridgesync/processor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridgesync/processor.go b/bridgesync/processor.go index b74976ccb..1c6a4a0ff 100644 --- a/bridgesync/processor.go +++ b/bridgesync/processor.go @@ -94,7 +94,6 @@ type Claim struct { // Event combination of bridge and claim events type Event struct { - Pos uint64 Bridge *Bridge Claim *Claim } @@ -294,7 +293,7 @@ func (p *processor) ProcessBlock(ctx context.Context, block sync.Block) error { return errors.New("failed to convert sync.Block.Event to Event") } if event.Bridge != nil { - if err = p.exitTree.AddLeaf(tx, block.Num, event.Pos, types.Leaf{ + if err = p.exitTree.AddLeaf(tx, block.Num, event.Bridge.BlockPos, types.Leaf{ Index: event.Bridge.DepositCount, Hash: event.Bridge.Hash(), }); err != nil {