Fix QN sync after transactions #4566
Labels
bug
Something isn't working
community-dev
issue suitable for community-dev pipeline
high-prio
release:2.0.0
Bug identified by @kdembler:
Context
After most transactions Pioneer waits for the block that includes the transaction to be processed by the QN to complete the flow and re-fetch data. It does so by checking the
queryNodeState
QN subscription. However it checksqueryNodeState.indexerHead
instead ofqueryNodeState.lastCompleteBlock
to query the hash that it compares to the transaction hash.As a result:
queryNodeState.indexerHead
is already ahead of the transaction block, the hash won't be found and the user will be asked to wait until a timeout happens.Scope
queryNodeState.lastCompleteBlock
instead ofqueryNodeState.indexerHead
.queryNodeState.lastCompleteBlock
to be equal or greater than this block height.The text was updated successfully, but these errors were encountered: