Skip to content

Commit

Permalink
Merge pull request #6 from Layr-Labs/sm-calc
Browse files Browse the repository at this point in the history
Remove delta table for operatorShares
  • Loading branch information
seanmcgary authored Sep 6, 2024
2 parents c69ee15 + 8005a4e commit 8e90a17
Show file tree
Hide file tree
Showing 10 changed files with 246 additions and 156 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ require (
github.com/google/flatbuffers v24.3.25+incompatible // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/holiman/uint256 v1.3.1 // indirect
github.com/iden3/go-iden3-crypto v0.0.16 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZ
github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA=
github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU=
github.com/holiman/uint256 v1.2.4/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
github.com/holiman/uint256 v1.3.1 h1:JfTzmih28bittyHM8z360dCjIA9dbPIBlcTI6lmctQs=
github.com/holiman/uint256 v1.3.1/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
github.com/iden3/go-iden3-crypto v0.0.16 h1:zN867xiz6HgErXVIV/6WyteGcOukE9gybYTorBMEdsk=
Expand Down
2 changes: 1 addition & 1 deletion internal/eigenState/avsOperators/avsOperators.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (a *AvsOperators) IsInterestingLog(log *storage.TransactionLog) bool {
return a.BaseEigenState.IsInterestingLog(addresses, log)
}

func (a *AvsOperators) StartBlockProcessing(blockNumber uint64) error {
func (a *AvsOperators) InitBlockProcessing(blockNumber uint64) error {
return nil
}

Expand Down
3 changes: 3 additions & 0 deletions internal/eigenState/eigenstate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func Test_EigenStateManager(t *testing.T) {
assert.Equal(t, 0, indexes[0])
assert.Equal(t, 1, indexes[1])

err = esm.InitProcessingForBlock(200)
assert.Nil(t, err)

root, err := esm.GenerateStateRoot(200)
assert.Nil(t, err)
assert.True(t, len(root) > 0)
Expand Down
Loading

0 comments on commit 8e90a17

Please sign in to comment.