Skip to content

Commit

Permalink
Bump espresso-sequencer-go
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJeremyHe committed Jan 22, 2024
1 parent d6fc588 commit 9075411
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
16 changes: 9 additions & 7 deletions arbos/parse_l2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ func TestEspressoParsing(t *testing.T) {
}
expectJst := &arbostypes.EspressoBlockJustification{
Header: espressoTypes.Header{
TransactionsRoot: espressoTypes.NmtRoot{Root: []byte{7, 8, 9}},
L1Head: 1,
Timestamp: 2,
Height: 3,
L1Finalized: &espressoTypes.L1BlockInfo{},
PayloadCommitment: espressoTypes.Bytes{1, 2, 3},
TransactionsRoot: espressoTypes.NmtRoot{Root: []byte{7, 8, 9}},
L1Head: 1,
Timestamp: 2,
Height: 3,
L1Finalized: &espressoTypes.L1BlockInfo{},
},
Proof: []byte{9},
}
Expand All @@ -38,7 +37,10 @@ func TestEspressoParsing(t *testing.T) {
Fail(t)
}

if !reflect.DeepEqual(actualJst, expectJst) {
if !reflect.DeepEqual(actualJst.Proof, expectJst.Proof) {
Fail(t)
}
if !reflect.DeepEqual(actualJst.Header.TransactionsRoot, expectJst.Header.TransactionsRoot) {
Fail(t)
}

Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace github.com/VictoriaMetrics/fastcache => ./fastcache
replace github.com/ethereum/go-ethereum => ./go-ethereum

require (
github.com/EspressoSystems/espresso-sequencer-go v0.0.3
github.com/EspressoSystems/espresso-sequencer-go v0.0.4
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible
github.com/Shopify/toxiproxy v2.1.4+incompatible
github.com/alicebob/miniredis/v2 v2.21.0
Expand Down Expand Up @@ -255,6 +255,7 @@ require (
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/samber/lo v1.36.0 // indirect
github.com/sigurn/crc8 v0.0.0-20220107193325-2243fe600f9f // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/supranational/blst v0.3.11 // indirect
github.com/urfave/cli/v2 v2.25.7 // indirect
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3
github.com/CloudyKit/jet/v3 v3.0.0/go.mod h1:HKQPgSJmdK8hdoAbKUUWajkHyHo4RaU5rMdUywE7VMo=
github.com/DataDog/zstd v1.5.2 h1:vUG4lAyuPCXO0TLbXvPv7EB7cNK1QV/luu55UHLrrn8=
github.com/DataDog/zstd v1.5.2/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
github.com/EspressoSystems/espresso-sequencer-go v0.0.3 h1:A227KQpb46Lfccz+b/OGEfA2+pjrHN8f6+XzxBVUVmw=
github.com/EspressoSystems/espresso-sequencer-go v0.0.3/go.mod h1:T3MyQRnfbCSTBhAAG2WASmVPCwWkl0/sPKKY5Z1ewtg=
github.com/EspressoSystems/espresso-sequencer-go v0.0.4 h1:/um6EBWciClEM2rBLpA9I8vIyok9D9rEGE+7zBVXR6g=
github.com/EspressoSystems/espresso-sequencer-go v0.0.4/go.mod h1:9dSL1bj0l+jpgaMRmi55YeRBd3AhOZz8/HXQcQ42mRQ=
github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
Expand Down Expand Up @@ -1552,6 +1552,8 @@ github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4=
github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw=
github.com/sigurn/crc8 v0.0.0-20220107193325-2243fe600f9f h1:1R9KdKjCNSd7F8iGTxIpoID9prlYH8nuNYKt0XvweHA=
github.com/sigurn/crc8 v0.0.0-20220107193325-2243fe600f9f/go.mod h1:vQhwQ4meQEDfahT5kd61wLAF5AAeh5ZPLVI4JJ/tYo8=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
Expand Down
2 changes: 1 addition & 1 deletion system_tests/espresso_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func createMockHotShot(ctx context.Context, t *testing.T, l2Info *BlockchainTest

httpmock.RegisterResponder(
"GET",
`=~http://127.0.0.1:50000/status/latest_block_height`,
`=~http://127.0.0.1:50000/status/block-height`,
func(r *http.Request) (*http.Response, error) {
return httpmock.NewStringResponse(200, strconv.Itoa(startHotShotBlock)), nil
},
Expand Down

0 comments on commit 9075411

Please sign in to comment.