-
Notifications
You must be signed in to change notification settings - Fork 649
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
Add validation to HTLC Extend #1699
Conversation
|
||
account_id_type fee_payer()const { return to; } | ||
void validate()const { FC_ASSERT( !"virtual operation" ); } | ||
|
||
share_type calculate_fee(const fee_parameters_type& k)const { return 0; } | ||
|
||
htlc_id_type htlc_id; | ||
account_id_type from, to; | ||
account_id_type from, to, redeemer; |
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.
I think we need to bump DB_VERSION if to add a field here.
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.
Done.
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.
I disagree. We don't have any such operations in the database yet, therefore the change has no effect. We can avoid the replay.
(If you agree please drop the last two commits and force-push instead of reverting.)
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.
We can do the bump for testnet branch only.
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.
Done
bd7634e
to
8f5dddd
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.
Thanks!
Fixes #1696