aligned_layer icon indicating copy to clipboard operation
aligned_layer copied to clipboard

add fallback support for `ChainReader` on `AvsReader`

Open JulianVentura opened this issue 1 year ago • 0 comments

We should add a ChainReaderFallback inside AvsReader, so we can tolerate RPC node failure, like so:

type AvsReader struct {
	ChainReader *sdkavsregistry.ChainReader
	ChainReaderFallback *sdkavsregistry.ChainReader
	AvsContractBindings            *AvsServiceBindings
	AlignedLayerServiceManagerAddr ethcommon.Address
	logger                         logging.Logger
}

then, refactor the functions which make use of it to add the fallback call in case of failure.

JulianVentura avatar Nov 19 '24 15:11 JulianVentura