mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
- Update PaymentDetails index
- Added bolding to replace_by_fee
This commit is contained in:
parent
d8ec771caf
commit
1b96cf1e78
@ -466,26 +466,26 @@ In this case, the Sender submits the transaction to the bitcoin network.
|
|||||||
|
|
||||||
To keep up with recent advancements in transaction type, two optional fields will be added to the BIP 70 PaymentDetails message. subtract_fee will be added to the current version 1 fields, making the complete list look like the following:
|
To keep up with recent advancements in transaction type, two optional fields will be added to the BIP 70 PaymentDetails message. subtract_fee will be added to the current version 1 fields, making the complete list look like the following:
|
||||||
|
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
message PaymentDetails {
|
message PaymentDetails {
|
||||||
optional string network [default = "main"];
|
optional string network = 1 [default = "main"];
|
||||||
repeated Output outputs;
|
repeated Output outputs = 2;
|
||||||
required uint64 time;
|
required uint64 time = 3;
|
||||||
optional uint64 expires;
|
optional uint64 expires = 4;
|
||||||
optional string memo;
|
optional string memo = 5;
|
||||||
optional string payment_url;
|
optional string payment_url = 6;
|
||||||
optional bytes merchant_data;
|
optional bytes merchant_data = 7;
|
||||||
optional bool subtract_fee = 1;
|
optional bool subtract_fee = 1000;
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
replace_by_fee will be added as a version 2 field, meaning it is only available if payment_details_version is set to 2 or higher in the PaymentRequest message:
|
<b>replace_by_fee</b> will be added as a version 2 field. It is only available if payment_details_version is set to 2 or higher in the PaymentRequest message:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
// PaymentDetails v2
|
||||||
message PaymentDetails {
|
message PaymentDetails {
|
||||||
...
|
...
|
||||||
optional bool replace_by_fee = 2;
|
optional bool replace_by_fee = 1001;
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user