Skip to content
Merged
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
3 changes: 1 addition & 2 deletions bridgesync/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ type Claim struct {

// Event combination of bridge and claim events
type Event struct {
Pos uint64
Bridge *Bridge
Claim *Claim
}
Expand Down Expand Up @@ -302,7 +301,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 {
Expand Down