From 2d33b5bb4c179af354daaba3421099fd1c17f5ed Mon Sep 17 00:00:00 2001 From: Philipp Gackstatter Date: Fri, 24 Nov 2023 10:29:27 +0100 Subject: [PATCH] Update work score with Native Token Feature --- tips/TIP-0045/tip-0045.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tips/TIP-0045/tip-0045.md b/tips/TIP-0045/tip-0045.md index 91dc14564..2051aa2a5 100644 --- a/tips/TIP-0045/tip-0045.md +++ b/tips/TIP-0045/tip-0045.md @@ -1138,9 +1138,10 @@ Let the work score of a transaction be defined as follows. serialized _Transaction_. - Let `Input Score` be `Inputs Count * Work Score Parameters::Input`. - Let `Context Input Score` be `Context Inputs Count * Work Score Parameters::Context Input`. -- Let `Output Score` be the sum of work scores of each output `Output` in `Outputs`: - - Let `Native Token Score` be `Work Score Parameters::Native Token * Native Tokens Count` if `Output` contains - `Native Tokens`, `0` otherwise. +- Let `Outputs Score` be the sum of work scores of each output `Output` in `Outputs`, where the work score of `Output` + is defined as: + - Let `Native Token Score` be `Work Score Parameters::Native Token` if `Output` contains a `Native Token Feature`, `0` + otherwise. - Let `Token Scheme Score` be `Work Score Parameters::Native Token` if `Output` contains a _Simple Token Scheme_, `0` otherwise. - Let `Staking Score` be `Work Score Parameters::Staking` if `Output` contains a _Staking Feature_, `0` otherwise. @@ -1151,7 +1152,7 @@ Let the work score of a transaction be defined as follows. - Let `Allotment Score` be `Work Score Parameters::Allotment * Allotments Count`. - Let `Signature Score` be the sum of work scores of the signatures contained in _Signature Unlocks_ within `Unlocks`. - Signature work scores are defined in TIP-46. -- Return `Size Score + Input Score + Context Input Score + Output Score + Allotment Score + Signature Score`. +- Return `Size Score + Input Score + Context Input Score + Outputs Score + Allotment Score + Signature Score`. ## Validation