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

icx_makeoffer do not override user set expiry #2738

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

Bushstar
Copy link
Member

@Bushstar Bushstar commented Dec 6, 2023

Summary

  • icx_makeoffer will always override the user set expiry. There is a check consensus side that the expiry is not less than the default amounts.

auto expiry = static_cast<int>(height) < consensus.DF10EunosPayaHeight ? CICXMakeOffer::DEFAULT_EXPIRY
: CICXMakeOffer::EUNOSPAYA_DEFAULT_EXPIRY;
if (makeoffer.expiry < expiry) {
return Res::Err("offer expiry must be greater than %d!", expiry - 1);
}

Implications

  • Storage

    • Database reindex required
    • Database reindex optional
    • Database reindex not required
    • None
  • Consensus

    • Network upgrade required
    • Includes backward compatible changes
    • Includes consensus workarounds
    • Includes consensus refactors
    • None

@prasannavl prasannavl merged commit 1559121 into master Dec 15, 2023
15 of 16 checks passed
@prasannavl prasannavl deleted the bush/offer-expiry branch December 15, 2023 22:43
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.

2 participants