-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auxiliary data structures for tx re-verification #812
Comments
After persisting, first of all:
@jsolman, we would change the |
We are planning to include this in the specification before implementation. |
Why? |
I think Vitor mentioned this case Erik (imagine 5 transactions in a block, all from the same address A):
Now imagine that A2 and A3 will perform some payable operation, with 2 GAS each:
Note that |
The logic we are thinking for Neo 3.0 is the following Erik, can you confirm?
|
Are we not like this now? |
It's just like this, specifically for |
@neo-project/core closeable? |
It is still open discussion, not yet defined or implemented on Neo3. |
@vncoelho what is your proposal, when should be reverified the mempool? |
@shargon re-verified normally, it is just an auxiliary data structure for monitoring the balance during Application phase, or, more efficiently than it, an extra field in all We need to think about the most practical design. Re-verification should be straightforward, we should easily remove invalid tx from the mempool after block is defined as |
This one can be planned for the second release, preview-2. |
I will move NEP5 tokens to another issue. |
We probably must define a special balance structure for efficiently accounting remaining GAS of
senders
in order to quickly re-verify.Scenario 1:
network_fees
.tx_1
will not spend any GAS (that is why balance need to be updated before)The text was updated successfully, but these errors were encountered: