Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Account that is created in a failing transaction may show up on the list in Explorer #223

Closed
1 task
frol opened this issue Mar 17, 2020 · 4 comments
Closed
1 task
Labels
blocked needs something from nearcore bug Something isn't working Priority 2 receipts receipts related issue

Comments

@frol
Copy link
Collaborator

frol commented Mar 17, 2020

Story

As a user who uses Explorer Accounts page, I want to know the correct information about the accounts.

It seems that currently, we may include an account from a CreateAccount action of a transaction that actually failed.

To resolve this we need to query individual transactions (since near/nearcore#1880 is not implemented yet) to know the status. While we are at it, we can also store this status in Explorer DB, so we don't need to query it from the node again and again.

This should be resolved with #218.

Acceptance Criteria

  • There should be no "ghost" accounts
@frol frol added bug Something isn't working Priority 2 labels Apr 3, 2020
@kcole16 kcole16 mentioned this issue Apr 3, 2020
4 tasks
@icerove icerove added the blocked needs something from nearcore label Apr 9, 2020
@frol frol mentioned this issue Apr 30, 2020
@icerove icerove added the receipts receipts related issue label Jul 14, 2020
@frol
Copy link
Collaborator Author

frol commented Sep 2, 2020

@bowenwang1996

In the case where the account is created through a transaction, you can check the final status of the transaction to see whether it succeeded or not. I understand that we still cannot track the accounts created through function calls, but I think we can at least make sure we don't display accounts that do not exist.

We cannot reason about the success of the whole transaction (#212 (comment), see (3)), and we don't track receipts here to match the execution outcome to it. /cc @khorolets FYI

@bowenwang1996
Copy link

We cannot reason about the success of the whole transaction

why? transaction status query allows you to check statuses of all receipts.

@frol
Copy link
Collaborator Author

frol commented Sep 3, 2020

@bowenwang1996 While it does, the receipts are applied independently, so the receipt that creates an account may succeed while the transaction may still contain some receipts that fail. To know whether an account was created or not, we need to track the receipt and its execution outcome (which will only be the case once we land the Indexer for Explorer)

@frol
Copy link
Collaborator Author

frol commented Dec 18, 2020

Resolved in Explorer baked by the Indexer for Explorer (see #236).

@frol frol closed this as completed Dec 18, 2020
@frol frol mentioned this issue Jun 23, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
blocked needs something from nearcore bug Something isn't working Priority 2 receipts receipts related issue
Projects
None yet
Development

No branches or pull requests

3 participants