-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #820 from oasisprotocol/ptrus/feature/consensus-ac…
…counts-status runtime: Handle status of consensus-accounts txs
- Loading branch information
Showing
8 changed files
with
249 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Improve Status Reporting for Consensus-Accounts Transactions | ||
|
||
The handling of multi-step runtime transactions (`consensus.Deposit`, | ||
`consensus.Withdraw`, `consensus.Delegate`, and `consensus.Undelegate`) | ||
has been improved. Previously, these transactions were marked as successful | ||
once they were included in a block, even though the second step (executed in | ||
the next runtime block) could fail. This could result in misleading statuses | ||
for users. | ||
|
||
To address this: | ||
|
||
- These transactions will now be reported without a status until the second | ||
step is completed | ||
|
||
- Once the relevant event is received, the transaction status will be updated | ||
to either successful or failed |
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
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
16 changes: 16 additions & 0 deletions
16
storage/migrations/09_fast_sync_temp_transaction_status_updates.up.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
BEGIN; | ||
|
||
CREATE TABLE todo_updates.transaction_status_updates( -- Tracks transaction status updates for consensus-accounts transactions. | ||
runtime runtime NOT NULL, | ||
round UINT63 NOT NULL, | ||
method TEXT NOT NULL, | ||
sender oasis_addr NOT NULL, | ||
nonce UINT63 NOT NULL, | ||
|
||
success BOOLEAN NOT NULL, | ||
error_module TEXT, | ||
error_code UINT63, | ||
error_message TEXT | ||
); | ||
|
||
COMMIT; |