aligned_layer icon indicating copy to clipboard operation
aligned_layer copied to clipboard

perf (aggregator): send agg.sendAggregatedResponseToContract to go routine

Open taturosati opened this issue 1 year ago • 0 comments

when calling agg.sendAggregatedResponseToContract we wait for response before subscribing back to channel. This limits the amount of responses we can send, since it is slow to submit response on chain. It should be sent to separate go routine so that aggregations can be handled in parallel.

An issue may arise with tx nonces and we may need to implement our own sequential nonces.

taturosati avatar May 02 '24 19:05 taturosati