From bcedd61e2ce998bf2114aaa7305b1ef32501869e Mon Sep 17 00:00:00 2001 From: Thibaut Le Guilly Date: Sat, 10 Oct 2020 01:36:24 +0900 Subject: [PATCH] define sum function (#107) --- Transactions.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Transactions.md b/Transactions.md index f520044..7642911 100644 --- a/Transactions.md +++ b/Transactions.md @@ -102,7 +102,10 @@ The refund transaction is exactly the same as a [Contract Execution Transaction] ### Fee Calculation -All fee calculations for all transactions is based on the fee rate specified in the offer message and the *expected weight* of the transaction in question. +All fee calculations for all transactions are based on the fee rate specified in the offer message and the *expected weight* of the transaction in question. + +Hereafter, the `sum(calc)` function means computing `calc` for each of the input in the scope of the current computation and adding the results together. +As an example, if two inputs are in scope, `sum(script_sig_len) = script_sig_len_input_1 + script_sig_len_2`. The actual and expected weights vary for several reasons: