-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPC: improve supporting tx execution levels (#10792)
More about tx execution levels: https://docs.near.org/api/rpc/transactions#tx-status-result The levels that allow having not all the execution outcomes (Included, IncludedFinal), actually had to wait for all of the execution outcomes anyway. [1.37.3 had a separate partial fix for supporting Included status, but let's not overcomplicate] With the current change, we can show everything we have at the moment without extra waiting. Also, current change helps us to be 1 step closer to resolving #6834 That would be my next step after we merge this PR. TLDR: I partially copy pasted the code. I could have rewritten `chain:get_final_transaction_result` instead, but it has LOTS of usages everywhere. I decided it's just not safe. I anyway changed it a little with the new function `chain:get_execution_status` (hopefully in a better way) - see the details below in the comment. But the new logic with partial execution outcomes list is used only in view_client (aka RPC, as far as I see from the usages).
- Loading branch information
1 parent
22b603c
commit 1d082db
Showing
5 changed files
with
95 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters