Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update large blob test to use 16mb #108

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .env.example.holesky
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0xD4A7E1Bd8015057293f0D0A557088c286942e84b
# EIGENDA_PROXY_GRPC_DISABLE_TLS=false

# Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB.
# EIGENDA_PROXY_MAX_BLOB_LENGTH=4MiB
# EIGENDA_PROXY_MAX_BLOB_LENGTH=16MiB

# Blob encoding version to use when writing blobs from the high-level interface
# EIGENDA_PROXY_PUT_BLOB_ENCODING_VERSION=0
Expand Down
2 changes: 1 addition & 1 deletion .env.example.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0x870679E138bCdf293b7Ff14dD44b70FC97e12fc0
# EIGENDA_PROXY_GRPC_DISABLE_TLS=false

# Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB.
# EIGENDA_PROXY_MAX_BLOB_LENGTH=4MiB
# EIGENDA_PROXY_MAX_BLOB_LENGTH=16MiB

# Blob encoding version to use when writing blobs from the high-level interface
# EIGENDA_PROXY_PUT_BLOB_ENCODING_VERSION=0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ In order to disperse to the EigenDA network in production, or at high throughput
| `--eigenda-eth-rpc` | | `$EIGENDA_PROXY_ETH_RPC` | JSON RPC node endpoint for the Ethereum network used for finalizing DA blobs. See available list here: https://docs.eigenlayer.xyz/eigenda/networks/ |
| `--eigenda-g1-path` | `"resources/g1.point"` | `$EIGENDA_PROXY_TARGET_KZG_G1_PATH` | Directory path to g1.point file. |
| `--eigenda-g2-tau-path` | `"resources/g2.point.powerOf2"` | `$EIGENDA_PROXY_TARGET_G2_TAU_PATH` | Directory path to g2.point.powerOf2 file. |
| `--eigenda-max-blob-length` | `"4MiB"` | `$EIGENDA_PROXY_MAX_BLOB_LENGTH` | Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB. |
| `--eigenda-max-blob-length` | `"16MiB"` | `$EIGENDA_PROXY_MAX_BLOB_LENGTH` | Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB. |
| `--eigenda-put-blob-encoding-version` | `0` | `$EIGENDA_PROXY_PUT_BLOB_ENCODING_VERSION` | Blob encoding version to use when writing blobs from the high-level interface. |
| `--eigenda-response-timeout` | `60s` | `$EIGENDA_PROXY_RESPONSE_TIMEOUT` | Total time to wait for a response from the EigenDA disperser. Default is 60 seconds. |
| `--eigenda-signer-private-key-hex` | | `$EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX` | Hex-encoded signer private key. This key should not be associated with an Ethereum address holding any funds. |
Expand Down
4 changes: 2 additions & 2 deletions e2e/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func TestProxyServerWithLargeBlob(t *testing.T) {
URL: ts.Address(),
}
daClient := client.New(cfg)
// 4MB blob
testPreimage := []byte(e2e.RandString(4_000_000))
// 16MB blob
testPreimage := []byte(e2e.RandString(16_000_000))
epociask marked this conversation as resolved.
Show resolved Hide resolved

t.Log("Setting input data on proxy server...")
blobInfo, err := daClient.SetData(ts.Ctx, testPreimage)
Expand Down
2 changes: 1 addition & 1 deletion server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func CLIFlags() []cli.Flag {
Name: MaxBlobLengthFlagName,
Usage: "Maximum blob length to be written or read from EigenDA. Determines the number of SRS points loaded into memory for KZG commitments. Example units: '30MiB', '4Kb', '30MB'. Maximum size slightly exceeds 1GB.",
EnvVars: prefixEnvVars("MAX_BLOB_LENGTH"),
Value: "4MiB",
Value: "16MiB",
},
&cli.StringFlag{
Name: G1PathFlagName,
Expand Down
2 changes: 1 addition & 1 deletion store/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (r *Router) multiSourceRead(ctx context.Context, commitment []byte, fallbac
continue
}
// verify cert:data using EigenDA verification checks
err = r.eigenda.Verify(key, data)
err = r.eigenda.Verify(commitment, data)
epociask marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
log.Warn("Failed to verify blob", "err", err, "backend", src.BackendType())
continue
Expand Down
Loading