-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: foreign proposal transaction timeout #802
Conversation
f0fc700
to
7612699
Compare
2dce482
to
1e50f4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK, seems correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I don't think we should be using 'mined` when talking about L2 blocks.
@@ -74,6 +74,7 @@ message ForeignProposal { | |||
bytes block_id = 2; | |||
ForeignProposalState state = 3; | |||
uint64 mined_at = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest proposed_height
. This has already changed in development but I missed this in the proto file
dan_layer/state_store_sqlite/migrations/2023-06-08-091819_create_state_store/up.sql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Tested but only with a single shard
* development: feat: foreign proposal transaction timeout (tari-project#802) fix: use hash domains from tari_hash_domains (tari-project#925)
Description
Transaction (from foreign proposals) timeout.
For every Foreign proposal we store new column with all the transactions id. Once we receive local block where the transaction should be resolved and it's not (it's not finalized, or the current state is not at least LocalPrepared) we update the local decision to abort.
Motivation and Context
How Has This Been Tested?
N/A
What process can a PR reviewer use to test or verify this change?
Breaking Changes