Skip to content

Commit

Permalink
revert and add check
Browse files Browse the repository at this point in the history
  • Loading branch information
immersify-app committed Jan 3, 2025
1 parent c69886f commit e94a755
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,20 @@ cd bin/client
just run-client-native-against-devnet
```

![](./hokulea.jpeg)
To use eigenda proxy within optimism devnet, modify ops-bedrock/docker-compose.yaml

```
da-server:
image: ghcr.io/layr-labs/eigenda-proxy:v1.6.1
environment:
EIGENDA_PROXY_ADDR: 0.0.0.0
EIGENDA_PROXY_PORT: 3100
EIGENDA_PROXY_METRICS_ENABLED: true
EIGENDA_PROXY_METRICS_PORT: 7300
EIGENDA_PROXY_MEMSTORE_ENABLED: true
EIGENDA_PROXY_MEMSTORE_EXPIRATION: 45m
EIGENDA_PROXY_MEMSTORE_PUT_LATENCY: 0s
EIGENDA_PROXY_MEMSTORE_GET_LATENCY: 0s
EIGENDA_PROXY_EIGENDA_CERT_VERIFICATION_DISABLED: true
```
![](./hokulea.jpeg)
4 changes: 4 additions & 0 deletions bin/client/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ run-client-native-against-devnet verbosity='' block_number='' rollup_config_path
L1_BEACON_RPC="http://127.0.0.1:5052"
L2_RPC="http://127.0.0.1:9545"
ROLLUP_NODE_RPC="http://127.0.0.1:7545"
<<<<<<< HEAD
ROLLUP_CONFIG_PATH="/Users/bowenxue/Documents/eigenda-integration/optimism/.devnet/rollup.json"
=======
ROLLUP_CONFIG_PATH="{{justfile_directory()}}/../../optimism/.devnet/rollup.json"
>>>>>>> c69886f10873ba2f4f0d787af746f394873c74d1
if [ -z "{{block_number}}" ]; then
BLOCK_NUMBER=$(cast block finalized --json --rpc-url $L2_RPC | jq -r .number | cast 2d)
Expand Down
3 changes: 3 additions & 0 deletions crates/eigenda/src/eigenda_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ impl EigenDABlobData {
helpers::remove_empty_byte_from_padded_bytes_unchecked(codec_data.as_ref());
let blob_content: Bytes = blob_content.into();

if blob_content.len() < content_size as usize {
return Err(BlobDecodingError::InvalidLength);
}
// might insert a FFT here,

// take data
Expand Down

0 comments on commit e94a755

Please sign in to comment.