You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the SendAndSubscribeTransactionStatuses endpoint will first return a message that the tx is pending, then finalized, executed and sealed all at once.
The goal of this endpoint is to provide feedback to the user quickly as the changes are happening, so waiting until the block seals to return the TransactionResult breaks that.
I'm not totally sure why, but I bet it's related to this check
returnnil, fmt.Errorf("failed to get execution result for block %s: %w", txInfo.BlockID, err)
}
That doesn't explain why it sometimes returns finalized at the same time as executed and sealed. it's possible that's because the node took a long time to get the collection from the collection nodes, but we should review the code closely to identify if there are any other sources of delays.
The text was updated successfully, but these errors were encountered:
Problem Definition
Currently, the
SendAndSubscribeTransactionStatuses
endpoint will first return a message that the tx is pending, then finalized, executed and sealed all at once.sometimes, finalized is returned earlier, but executed and sealed are returned at once.
The goal of this endpoint is to provide feedback to the user quickly as the changes are happening, so waiting until the block seals to return the
TransactionResult
breaks that.I'm not totally sure why, but I bet it's related to this check
flow-go/engine/access/rpc/backend/backend_stream_transactions.go
Lines 257 to 263 in f6814f8
That doesn't explain why it sometimes returns finalized at the same time as executed and sealed. it's possible that's because the node took a long time to get the collection from the collection nodes, but we should review the code closely to identify if there are any other sources of delays.
The text was updated successfully, but these errors were encountered: