Layr-Labs / eigenda-proxy

Secure and optimized communication layer for rollups using EigenDA.
MIT License
15 stars 22 forks source link

Fix config checker logic #138

Closed samlaf closed 1 month ago

samlaf commented 2 months ago

Since we merged the PR that fixed the confDepth=-1 bug, now confDepth is always a non-negative number, so the conf checker is broken. Running make run-memstore-server results in this CRIT:

CRIT [09-19|21:18:50.564] Application failed                       role=eigenda_proxy message="eth confirmation depth is set for certificate verification, but Eth RPC or SvcManagerAddr is not set"

I changed the checks a bit arbitrarily... not super sure if it's correct, @epociask please take a good look. When using the memstore we don't need ethRPC or svsManagerAddr do we?

Tests are failing, waiting for correct semantic before changing them. Also removed the -v from make test because that prints too much garbage and is impossible to find the actual error when a test fails.

samlaf commented 1 month ago

Let's update the README to reflect this new flag type

Done: ad6094d