Skip to content

Conversation

tromp
Copy link
Contributor

@tromp tromp commented Apr 1, 2021


name: fixpastfees
about: remove dependence of fee() and fee_shift() functions on height
title: 'fix past fees'
labels: ''
assignees: ''


This PR implements the "fix past fees" RFC at https://github.com/mimblewimble/grin-rfcs/blob/master/text/0021-fix-prior-fees.md

It is consensus breaking in the weakest possible sense, in that older clients can disagree only if a many months deep reorg occurs that includes a > 40 bit fee (roughly 1100 Grin) prior to HF4.

This code has been tested on a sync-from-scratch.
No new tests are added, and only a few were removed that used to test that> 40 bit fees were allowed prior to HF4.

let height = 42; // arbitrary
assert!(tx1.validate(Weighting::AsTransaction, height).is_ok());
assert!(tx2.validate(Weighting::AsTransaction, height).is_ok());

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove superfluous blank line

@phyro
Copy link
Member

phyro commented Apr 5, 2021

We should block the merge of this one until mimblewimble/grin-rfcs#77 is accepted

@tromp
Copy link
Contributor Author

tromp commented Apr 5, 2021

Yes, that's what it says in top description:-)

@phyro
Copy link
Member

phyro commented Apr 5, 2021

Woops, missed it. But I did mean a literal merge block by making the PR draft (WIP, DNM or similar)

@tromp tromp changed the title implement fix past fees RFC with fee shift since genesis [DNM] implement fix past fees RFC with fee shift since genesis Apr 5, 2021
@antiochp
Copy link
Member

#3634 updates the config file -

accept_fee_base = 1000000
accept_fee_base = 500000

as part of updating the config file to "version 2".

So we should be safe to include cleanup around the "rewriting" of this config item at startup in this PR.

@phyro
Copy link
Member

phyro commented May 4, 2021

@tromp what's the state of this one?

@tromp tromp changed the title [DNM] implement fix past fees RFC with fee shift since genesis implement fix past fees RFC with fee shift since genesis May 4, 2021
@tromp
Copy link
Contributor Author

tromp commented May 4, 2021

Ready to be merged upon approval.

Copy link
Member

@antiochp antiochp left a comment

Choose a reason for hiding this comment

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

👍

@antiochp antiochp merged commit f51b6e1 into mimblewimble:master May 11, 2021
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.

5 participants