Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
eb48b1f9
Commit
eb48b1f9
authored
5 years ago
by
matograine
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
silkaj/constants.py
+3
-0
3 additions, 0 deletions
silkaj/constants.py
silkaj/tx.py
+1
-2
1 addition, 2 deletions
silkaj/tx.py
with
4 additions
and
2 deletions
silkaj/constants.py
+
3
−
0
View file @
eb48b1f9
...
...
@@ -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
This diff is collapsed.
Click to expand it.
silkaj/tx.py
+
1
−
2
View file @
eb48b1f9
...
...
@@ -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
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment