Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Oct 8, 2024
1 parent daf09b6 commit dba10d9
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
4 changes: 4 additions & 0 deletions state/model/l1infotree_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,7 @@ func (s *L1InfoTreeState) GetLeafsByL1InfoRoot(ctx context.Context, l1InfoRoot c
func (s *L1InfoTreeState) GetL1InfoLeafPerIndex(ctx context.Context, L1InfoTreeIndex uint32, dbTx stateTxType) (*L1InfoTreeLeaf, error) {
return s.storage.GetL1InfoLeafPerIndex(ctx, L1InfoTreeIndex, dbTx)
}

func (s *L1InfoTreeState) GetLatestL1InfoTreeLeaf(ctx context.Context, dbTx stateTxType) (*L1InfoTreeLeaf, error) {
return s.storage.GetLatestL1InfoTreeLeaf(ctx, dbTx)
}
59 changes: 59 additions & 0 deletions synchronizer/syncinterfaces/mocks/state_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions synchronizer/syncinterfaces/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type StateInterface interface {
GetL1InfoRootPerLeafIndex(ctx context.Context, L1InfoTreeIndex uint32, dbTx stateTxType) (common.Hash, error)
GetL1InfoLeafPerIndex(ctx context.Context, L1InfoTreeIndex uint32, dbTx stateTxType) (*entities.L1InfoTreeLeaf, error)
GetL1InfoTreeLeaves(ctx context.Context, indexLeaves []uint32, dbTx stateTxType) (map[uint32]entities.L1InfoTreeLeaf, error)
GetLatestL1InfoTreeLeaf(ctx context.Context, dbTx stateTxType) (*entities.L1InfoTreeLeaf, error)

AddForkID(ctx context.Context, newForkID entities.ForkIDInterval, dbTx stateTxType) error

Expand Down

0 comments on commit dba10d9

Please sign in to comment.