Skip to content
Snippets Groups Projects
Commit eb48b1f9 authored by matograine's avatar matograine
Browse files

Adding to constants.py :

MINIMAL_TX_AMOUNT = 0.01
CENT_MULT_TO_UNIT = 100
parent b40bdd8c
No related branches found
No related tags found
No related merge requests found
......@@ -23,3 +23,6 @@ G1_TEST_DEFAULT_ENDPOINT = "g1-test.duniter.org", "443"
CONNECTION_TIMEOUT = 10
ASYNC_SLEEP = 0.1
SOURCES_PER_TX = 40
MINIMAL_TX_AMOUNT = 0.01
CENT_MULT_TO_UNIT = 100
......@@ -130,7 +130,7 @@ async def send_transaction(
)
def amount_computation(amount, multiplicator):
return round( amount * multiplicator, -2) # "-2" is for testing on GTest. Change to round (amount * multiplicator) for prod.
return round( amount * multiplicator) #, -2) # "-2" is for testing on GTest. Change to round (amount * multiplicator) for prod.
async def transaction_amount(amount, amountUD, outputAddresses):
"""
......@@ -269,7 +269,6 @@ async def transaction_confirmation(
+ currency_symbol,
]
)
###
if outputBackChange:
tx.append(["Backchange (pubkey)", outputBackChange])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment