Skip to content

Commit

Permalink
Merge pull request #28 from quai-network/kiltsonfire-patch-1
Browse files Browse the repository at this point in the history
Fixed typo in entropy calculation equation
  • Loading branch information
kiltsonfire authored Feb 9, 2024
2 parents 84f77bf + ef55a8e commit b25f7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qip-0006.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ the condition $S_{int} > S_{target}$ is met.

The transaction entropy for a set of transactions included in block $i$ is computed as follows:

$$ x_{tx,i,j} = log(k - hash_{tx,i,j}) $$
$$ x_{tx,i,j} = log(k/hash_{tx,i,j}) $$

$$ S_{tx,i} = \sum_{l=i-m}^{i} \frac{1}{2^{l}} \times e^{-S_{int,i}} \sum_{j=0}^{q_i} \frac{x_{tx,i,j}}{e^{-x_{tx,i,j}}} $$

Expand Down

0 comments on commit b25f7f9

Please sign in to comment.