-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
specs/ledger/latex/utxo.tex
Outdated
% | ||
\fun{b} & \PPMMap \to \mathbb{N} & \text{minumum fee constant}\\ | ||
% | ||
\fun{x} & \Tx \to \mathbb{N} & \text{minimum fee per-transaction} |
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.
This should probably be something more like "size", which would be described something like "the abstract size of a transaction", which we would be thinking of as something like number-of-bytes in a serialization. The name x
might be a bit sparse and unclear.
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.
That makes sense. Thanks for the suggestion Jared. I'm changing it accordingly.
specs/ledger/latex/utxo.tex
Outdated
% | ||
\fun{b} & \PPMMap \to \mathbb{N} & \text{minumum fee constant}\\ | ||
% | ||
\fun{x} & \Tx \to \mathbb{N} & \text{minimum fee per-transaction} |
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.
why x
?
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 just took the variable names that we used in the minimum fee calculation. I think @JaredCorduan has a better name for it though, so I'm changing it accordingly.
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 it's ok, but maybe we could add a specific function that "converts" nat to lovelace? Then minfee
would become the calculation and application of that function. In reality, lovelace is bounded, so we cannot have a total minfee calculation. In a further refinement that could be added where appropriate.
dbc671f
to
dc4c11a
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.
looks great @dnadales, thanks!
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
bors r+ |
210: Make `Lovelace` and `minfee` concrete. r=dnadales a=dnadales - Merge primitive types into abstract types. - Add the set of natural numbers (`\mathbb{N}`) to the notation. - Make Lovelace an alias for natural numbers. - Replace `PrtclConsts` by `Ppms` (protocol-constants by protocol parameters), to make it consistent with the update mechanism spec. - Make function `minfee` concrete. This closes #179, closes #75, and closes #54. Co-authored-by: Damian Nadales <damian.nadales@iohk.io>
Timed out |
bors r+
|
210: Make `Lovelace` and `minfee` concrete. r=dnadales a=dnadales - Merge primitive types into abstract types. - Add the set of natural numbers (`\mathbb{N}`) to the notation. - Make Lovelace an alias for natural numbers. - Replace `PrtclConsts` by `Ppms` (protocol-constants by protocol parameters), to make it consistent with the update mechanism spec. - Make function `minfee` concrete. This closes #179, closes #75, and closes #54. Co-authored-by: Damian Nadales <damian.nadales@iohk.io>
Timed out |
- Merge primitive types into abstract types. - Add the set of natural numbers (`\mathbb{N}`) to the notation. - Make Lovelace an alias for natural numbers. - Replace `PrtclConsts` by `Ppms` (protocol-constants by protocol parameters), to make it consistent with the update mechanism spec. - Make function `minfee` concrete. - Make `balance` and `minfee` functions with range in the naturals. - Add a constraint in the UTxO rule so that balances do not exceed the Lovelace cap. - Make Lovelace a subset of the natural numbers.
dc4c11a
to
8214ec1
Compare
bors r+ |
210: Make `Lovelace` and `minfee` concrete. r=dnadales a=dnadales - Merge primitive types into abstract types. - Add the set of natural numbers (`\mathbb{N}`) to the notation. - Make Lovelace an alias for natural numbers. - Replace `PrtclConsts` by `Ppms` (protocol-constants by protocol parameters), to make it consistent with the update mechanism spec. - Make function `minfee` concrete. This closes #179, closes #75, and closes #54. Co-authored-by: Damian Nadales <damian.nadales@iohk.io>
Build succeeded |
\mathbb{N}
) to the notation.PrtclConsts
byPpms
(protocol-constants by protocol parameters),to make it consistent with the update mechanism spec.
minfee
concrete.This closes #179, closes #75, and closes #54.