summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt David <matt@netki.com>2016-03-07 18:59:24 -0800
committerMatt David <matt@netki.com>2016-03-07 18:59:24 -0800
commit1b96cf1e78d8e015bb148d929f312da3ef495743 (patch)
tree2f56dfbe287e865be4bef32af97ffedac24b86c1
parentd8ec771cafe6af9fd1541ba2288bda6042933f34 (diff)
downloadbips-1b96cf1e78d8e015bb148d929f312da3ef495743.tar.xz
- Update PaymentDetails index
- Added bolding to replace_by_fee
-rw-r--r--bip-0075.mediawiki30
1 files changed, 15 insertions, 15 deletions
diff --git a/bip-0075.mediawiki b/bip-0075.mediawiki
index ff084e7..b7755b2 100644
--- a/bip-0075.mediawiki
+++ b/bip-0075.mediawiki
@@ -466,35 +466,35 @@ 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:
-
<pre>
- message PaymentDetails {
- optional string network [default = "main"];
- repeated Output outputs;
- required uint64 time;
- optional uint64 expires;
- optional string memo;
- optional string payment_url;
- optional bytes merchant_data;
- optional bool subtract_fee = 1;
- }
+message PaymentDetails {
+ optional string network = 1 [default = "main"];
+ repeated Output outputs = 2;
+ required uint64 time = 3;
+ optional uint64 expires = 4;
+ optional string memo = 5;
+ optional string payment_url = 6;
+ optional bytes merchant_data = 7;
+ optional bool subtract_fee = 1000;
+}
</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>
+ // PaymentDetails v2
message PaymentDetails {
...
- optional bool replace_by_fee = 2;
+ optional bool replace_by_fee = 1001;
}
</pre>
{| class="wikitable"
! Field Name !! Field Number || Payment Details Version !! Description
|-
-| subtract_fee || 1000 || 1 || If "true," indicates the sender can subtract the transaction fee from the requested amount. Otherwise, the transaction fee must be included separately from the requested amount.
+| subtract_fee || 1000 || 1 || If "true," indicates the sender can subtract the transaction fee from the requested amount. Otherwise, the transaction fee must be included separately from the requested amount.
|-
-| replace_by_fee || 1001 || 2 || If "true," indicates the sender can enable the Replace By Fee flag for this transaction and the receiver will still consider it accepted with zero confirmations. Otherwise, RBF transactions will not be accepted by the receiver until they are confirmed.
+| replace_by_fee || 1001 || 2 || If "true," indicates the sender can enable the Replace By Fee flag for this transaction and the receiver will still consider it accepted with zero confirmations. Otherwise, RBF transactions will not be accepted by the receiver until they are confirmed.
|}
==References==