-
Notifications
You must be signed in to change notification settings - Fork 1
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
Policy lists via UTXO: lists updated before block confirmation. #59
Comments
Is this still a problem? |
Potentially, yes. Ideally, the policy lists etc. should be updated just before the "return true". However, this could affect transactions within the same block that depend on policy. |
Ok this sounds serious. Affect how do you mean? |
For example, an address is added to the freeze list in a policy transaction. In a later transaction, in the same block, the asset from the frozen address is spent. So in this case the earlier transaction invalidates the later transaction. |
Unless we want policy list changes only to take effect in the next block. |
I think this part is fine since policy lists are used for mempool rejection. Still we shouldn't be updating them until the block is fully validated. |
I'll push a fix for this in a moment. |
partly resolved. relevant issue open #128 |
This currently applies to the utxolists branch.
In validation.cpp, in ConnectBlock. The policy lists are updated from the transactions in the block before the block is fully validated; ConnectBlock could later return "false" with CValidationState other than "MODE_VALID".
The text was updated successfully, but these errors were encountered: