Skip to content
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

Merged
merged 6 commits into from
Apr 8, 2019
Merged

Add validation to HTLC Extend #1699

merged 6 commits into from
Apr 8, 2019

Conversation

jmjatlanta
Copy link
Contributor

Fixes #1696


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;
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@pmconrad pmconrad Apr 6, 2019

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.)

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@pmconrad pmconrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jmjatlanta jmjatlanta merged commit ac9bcfb into release Apr 8, 2019
@jmjatlanta jmjatlanta deleted the jmj_htlc_hotfix branch April 8, 2019 16:22
@abitmore abitmore added this to the 3.0.1 - hotfix milestone Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants