EscrowFinish: maybe correct tx cost formula this time?

This commit is contained in:
mDuo13
2017-05-05 14:42:32 -07:00
parent ccd25d0e06
commit d8d6fc4480
4 changed files with 7 additions and 7 deletions

View File

@@ -195,7 +195,7 @@
</tr>
<tr>
<td><a href="reference-transaction-format.html#escrowfinish">EscrowFinish Transaction with Fulfillment</a></td>
<td>10 drops + (32 drops × (Fulfillment size in bytes ÷ 16))</td>
<td>10 drops × (32 + (Fulfillment size in bytes ÷ 16))</td>
</tr>
</tbody>
</table>
@@ -281,9 +281,9 @@
</tr>
<tr>
<td><a href="reference-transaction-format.html#escrowfinish">EscrowFinish transaction</a> with 32-byte preimage.</td>
<td>74</td>
<td>340</td>
<td>245</td>
<td>148</td>
<td>680</td>
<td>512</td>
</tr>
</tbody>

View File

@@ -20,7 +20,7 @@ Some transactions have different transaction costs:
| [Reference Transaction](#reference-transaction-cost) (Most transactions) | 10 drops |
| [Key Reset Transaction](#key-reset-transaction) | 0 |
| [Multi-signed Transaction](reference-transaction-format.html#multi-signing) | 10 drops × (1 + Number of Signatures Provided) |
| [EscrowFinish Transaction with Fulfillment](reference-transaction-format.html#escrowfinish) | 10 drops + (32 drops × (Fulfillment size in bytes ÷ 16)) |
| [EscrowFinish Transaction with Fulfillment](reference-transaction-format.html#escrowfinish) | 10 drops × (32 + (Fulfillment size in bytes ÷ 16)) |
## Beneficiaries of the Transaction Cost ##
@@ -102,7 +102,7 @@ _Fee levels_ represent the proportional difference between the minimum cost and
| Reference transaction (most transactions) | 10 | 256 | 20 | 512 |
| [Multi-signed transaction](reference-transaction-format.html#multi-signing) with 4 signatures | 50 | 256 | 100 | 512 |
| [Key reset transaction](concept-transaction-cost.html#key-reset-transaction) | 0 | (Effectively infinite) | N/A | (Effectively infinite) |
| [EscrowFinish transaction](reference-transaction-format.html#escrowfinish) with 32-byte preimage. | 74 | 245 | 148 | 512 |
| [EscrowFinish transaction](reference-transaction-format.html#escrowfinish) with 32-byte preimage. | 340 | 245 | 680 | 512 |
## Querying the Transaction Cost ##

View File

@@ -581,7 +581,7 @@ Any account may submit an EscrowFinish transaction.
* If the corresponding [EscrowCreate transaction][] specified a `FinishAfter` time that is after the close time of the most recently-closed ledger, the EscrowFinish transaction fails.
* If the corresponding [EscrowCreate transaction][] specified a `CancelAfter` time that is before the close time of the most recently-closed ledger, the EscrowFinish transaction fails.
**Note:** The [transaction cost](concept-transaction-cost.html) to submit an EscrowFinish transaction increases if it contains a fulfillment. An EscrowFinish transaction has a base cost of 10 [drops of XRP](reference-rippled.html#specifying-currency-amounts), plus an additional 32 drops for every 16 bytes in size of the preimage. For example, a fulfillment with a 32-byte preimage would cost 10 + (32 drops × (32 bytes / 16)) = 74 drops of XRP.
**Note:** The [transaction cost](concept-transaction-cost.html) to submit an EscrowFinish transaction increases if it contains a fulfillment. An EscrowFinish transaction has a base cost of 320 [drops of XRP](reference-rippled.html#specifying-currency-amounts), plus an additional 10 drops for every 16 bytes in size of the preimage. For example, a fulfillment with a 32-byte preimage would cost 10 × (32 drops + (32 bytes ÷ 16)) = 340 drops of XRP.

View File

@@ -1028,7 +1028,7 @@
<li>If the corresponding <a href="#escrowcreate">EscrowCreate transaction</a> specified a <code>FinishAfter</code> time that is after the close time of the most recently-closed ledger, the EscrowFinish transaction fails.</li>
<li>If the corresponding <a href="#escrowcreate">EscrowCreate transaction</a> specified a <code>CancelAfter</code> time that is before the close time of the most recently-closed ledger, the EscrowFinish transaction fails.</li>
</ul>
<p class="devportal-callout note"><strong>Note:</strong> The <a href="concept-transaction-cost.html">transaction cost</a> to submit an EscrowFinish transaction increases if it contains a fulfillment. An EscrowFinish transaction has a base cost of 10 <a href="reference-rippled.html#specifying-currency-amounts">drops of XRP</a>, plus an additional 32 drops for every 16 bytes in size of the preimage. For example, a fulfillment with a 32-byte preimage would cost 10 + (32 drops × (32 bytes / 16)) = 74 drops of XRP.</p>
<p class="devportal-callout note"><strong>Note:</strong> The <a href="concept-transaction-cost.html">transaction cost</a> to submit an EscrowFinish transaction increases if it contains a fulfillment. An EscrowFinish transaction has a base cost of 320 <a href="reference-rippled.html#specifying-currency-amounts">drops of XRP</a>, plus an additional 10 drops for every 16 bytes in size of the preimage. For example, a fulfillment with a 32-byte preimage would cost 10 × (32 drops + (32 bytes ÷ 16)) = 340 drops of XRP.</p>
<h2 id="offercancel">OfferCancel</h2>
<p><a href="https://github.com/ripple/rippled/blob/master/src/ripple/app/tx/impl/CancelOffer.cpp" title="Source">[Source]<br/></a></p>
<p>An OfferCancel transaction removes an Offer node from the Ripple Consensus Ledger.</p>