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

@@ -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.