Skip to content

Commit

Permalink
fix: cacheEncodedBlob, makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniFrenchBread committed Feb 5, 2024
1 parent f4ee4ac commit 44ddeb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/encoding/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (e *Encoder) Encode(data []byte, params core.EncodingParams) (core.BlobComm
}

if e.Config.CacheEncodedBlobs {
cacheKey = hashBlob(data, params)
e.Cache.Add(cacheKey, encodedValue{
commitments: commitments,
chunks: chunks,
Expand Down
10 changes: 7 additions & 3 deletions disperser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@ build_dataapi:

run_batcher: build_batcher
./bin/batcher \
--batcher.pull-interval 10s \
--batcher.pull-interval 5s \
--chain.rpc ETH_RPC_ENDPOINT \
--chain.private-key YOUR_PRIVATE_KEY \
--batcher.finalizer-interval 20s \
--chain.receipt-wait-rounds 180 \
--chain.receipt-wait-interval 1s \
--chain.gas-limit 2000000 \
--batcher.finalizer-interval 300s \
--batcher.confirmer-num 3 \
--batcher.aws.region us-east-1 \
--batcher.aws.access-key-id localstack \
--batcher.aws.secret-access-key localstack \
--batcher.aws.endpoint-url http://0.0.0.0:4566 \
--batcher.s3-bucket-name test-zgda-blobstore \
--batcher.dynamodb-table-name test-BlobMetadata \
--encoder-socket 0.0.0.0:34000 \
--batcher.batch-size-limit 10000 \
--batcher.batch-size-limit 50 \
--batcher.srs-order 300000 \
--encoding-timeout 10s \
--chain-read-timeout 12s \
Expand Down

0 comments on commit 44ddeb3

Please sign in to comment.