From ce4f564aba11ef1bb3c084a2359d73258c49f3f9 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 29 Nov 2022 18:11:50 +0000 Subject: [PATCH] ZIP 317: put the values of parameters in the table describing them. Signed-off-by: Daira Hopwood --- zip-0317.html | 28 +++++++++++++--------------- zip-0317.rst | 23 ++++++++--------------- 2 files changed, 21 insertions(+), 30 deletions(-) diff --git a/zip-0317.html b/zip-0317.html index b416f5c93..6ac5ff879 100644 --- a/zip-0317.html +++ b/zip-0317.html @@ -63,6 +63,7 @@ Parameter + Value Units @@ -71,24 +72,36 @@ \(marginal\_fee\) + + \(5000\) + zatoshis per logical action (as defined below) \(grace\_actions\) + + \(2\) + logical actions \(p2pkh\_standard\_input\_size\) + + \(150\) + bytes \(p2pkh\_standard\_output\_size\) + + \(34\) + bytes @@ -156,21 +169,6 @@ -

The parameters are set to the following values:

-

It is not a consensus requirement that fees follow this formula; however, wallets SHOULD create transactions that pay this fee, in order to reduce information leakage, unless overridden by the user.

Rationale for logical actions

The intention is to make the fee paid for a transaction depend on its impact on the network, without discriminating between different protocols (Orchard, Sapling, or transparent). The impact on the network depends on the numbers of inputs and outputs.

diff --git a/zip-0317.rst b/zip-0317.rst index b470ce94c..f2502f9cf 100644 --- a/zip-0317.rst +++ b/zip-0317.rst @@ -91,14 +91,14 @@ Fee calculation This specification defines several parameters that are used to calculate the conventional fee: -===================================== ============================================== -Parameter Units -===================================== ============================================== -:math:`marginal\_fee` zatoshis per logical action (as defined below) -:math:`grace\_actions` logical actions -:math:`p2pkh\_standard\_input\_size` bytes -:math:`p2pkh\_standard\_output\_size` bytes -===================================== ============================================== +===================================== ============= ============================================== +Parameter Value Units +===================================== ============= ============================================== +:math:`marginal\_fee` :math:`5000` zatoshis per logical action (as defined below) +:math:`grace\_actions` :math:`2` logical actions +:math:`p2pkh\_standard\_input\_size` :math:`150` bytes +:math:`p2pkh\_standard\_output\_size` :math:`34` bytes +===================================== ============= ============================================== Wallets implementing this specification SHOULD use a conventional fee calculated in zatoshis per the following formula: @@ -128,13 +128,6 @@ Input Units Description :math:`nActionsOrchard` number the number of Orchard actions ============================ ====== =========================================== -The parameters are set to the following values: - -* :math:`marginal\_fee = 5000`; -* :math:`grace\_actions = 2`; -* :math:`p2pkh\_standard\_input\_size = 150` bytes; -* :math:`p2pkh\_standard\_output\_size = 34` bytes. - It is not a consensus requirement that fees follow this formula; however, wallets SHOULD create transactions that pay this fee, in order to reduce information leakage, unless overridden by the user.