Skip to content

Commit

Permalink
Revert way to calculate size
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Jun 14, 2024
1 parent 054bbeb commit b35fbb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pool/partials.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def calculate_estimated_size(self, points, time_target=None):
# K32 avg size = ((2 * 32) + 1) * (2 ** (32 - 1)) * 0.78005 = 108884400275.4560029506683350
# 20 points per day = 5444220013.77280014753341675
# points per second = 63011.80571496296467052565683
estimated_size = int(points * Decimal('63011.80571496296467052565683') * time_target)
#estimated_size = int(points * Decimal('63011.80571496296467052565683') * time_target)
estimated_size = int(int(points / (time_target * 1.0881482400062102e-15)) / 2)
if self.config['full_node']['selected_network'] in ('testnet7', 'testnet10'):
# DIFFICULTY_CONSTANT_FACTOR
# mainnet = 2 ** 67
Expand Down

0 comments on commit b35fbb8

Please sign in to comment.