Skip to content

Commit

Permalink
Fix Decimal dependency by removing need for Decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
EggPool authored Nov 28, 2019
1 parent 725be78 commit 07ad52b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mempool.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# from Cryptodome.PublicKey import RSA
# from Cryptodome.Signature import PKCS1_v1_5

__version__ = "0.0.7b"
__version__ = "0.0.7c"

"""
0.0.5g - Add default param to mergedts for compatibility
Expand All @@ -32,6 +32,7 @@
0.0.6c - Return last exception to client in all cases
0.0.7a - Add support for mandatory message addresses
0.0.7b - Reduce age of valid txns to 2 hours
0.0.7c - Remove unnecessary Decimal
"""

MEMPOOL = None
Expand Down Expand Up @@ -437,7 +438,7 @@ def space_left_for_tx(self, transaction, mempool_size):
return True
# Medium prio: 5 BIS or more
if mempool_size < 0.5:
if Decimal(transaction[3]) > Decimal(5):
if transaction[3] > 5:
return True
# High prio: allowed by config
if mempool_size < 0.6:
Expand Down

0 comments on commit 07ad52b

Please sign in to comment.