Closed i-norden closed 1 year ago
It seems the async method + streamWrites is broken, see CICD history on this PR: https://github.com/cerc-io/eth-statediff-fill-service/pull/16
Can get tests to pass by using the sync WriteStateDiffFor
method, but not with async WriteStateDiffAt
using StreamWrites
to wait for completion.
I may also have made a mistake on the subscriber side.
In https://github.com/cerc-io/go-ethereum/pull/306
WriteStateDiffAt
was made async and now returns aJobID
whose progress can be monitored with theStreamWrites
endpoint now, butWriteStateDiffFor
is still using the old sync pattern. This should be a quick patch and done at the same time as #355Included in this issue, we need to add test coverage for the changes in https://github.com/cerc-io/go-ethereum/pull/306 and the new changes here.