1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-01-19 05:45:07 +01:00

Add minFeeRate optional parameter

This commit is contained in:
nicolas.dorier 2020-05-17 21:49:43 +09:00
parent 088cf9bf91
commit 233c094667
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -175,6 +175,7 @@ The sender should check the payjoin proposal before signing it to prevent a mali
* If the sender's inputs' sequence numbers the homogenous, check that the receiver's contributed inputs match those.
* Check that the sender's own outputs have not been modified, except for paying increased fee, or by simple shuffling.
* If sender specified <code>additionalfeeoutputindex=</code> (see later), the fee should have been subtracted from the output at the same index in the original PSBT.
* If <code>minfeerate</code> was specified, check that the estimated fee rate of the payjoin proposal is not less than this value.
* Check that the sent amount in the payjoin proposal is less than or equal to the sent amount of the original transaction. (Defined as the sum of the inputs' value to be signed minus the sender's ouput change)
If the sent amount in the payjoin proposal is above the amount sent in the original PSBT
@ -220,6 +221,8 @@ If the <code>additionalfeeoutputindex</code> is out of bounds or pointing to the
Note that if <code>maxadditionalfeecontribution</code> is too low, the sender should create a transaction with RBF disabled, as the original transaction could replace the payjoin transaction.
* <code>minfeerate=</code>, a decimal in satoshi per vbyte that the sender can use to constraint the receiver to not drop the minimum fee rate too much.
==Rationale==
There is several consequences of our proposal: