Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
matograine
silkaj
Commits
30d83142
Commit
30d83142
authored
Feb 02, 2019
by
matograine
Committed by
Moul
Mar 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[enh] #165: tx: add outputBackChange in confirmation table
parent
3bfbb08c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
silkaj/tx.py
silkaj/tx.py
+12
-2
No files found.
silkaj/tx.py
View file @
30d83142
...
...
@@ -82,7 +82,12 @@ async def send_transaction(
or
input
(
tabulate
(
await
transaction_confirmation
(
issuer_pubkey
,
pubkey_amount
[
0
],
tx_amount
,
outputAddresses
,
comment
issuer_pubkey
,
pubkey_amount
[
0
],
tx_amount
,
outputAddresses
,
outputbackchange
,
comment
,
),
tablefmt
=
"fancy_grid"
,
)
...
...
@@ -126,7 +131,7 @@ def check_transaction_values(
async
def
transaction_confirmation
(
issuer_pubkey
,
pubkey_amount
,
tx_amount
,
outputAddresses
,
comment
issuer_pubkey
,
pubkey_amount
,
tx_amount
,
outputAddresses
,
outputBackChange
,
comment
):
"""
Generate transaction confirmation
...
...
@@ -168,6 +173,11 @@ async def transaction_confirmation(
id_to
=
await
get_uid_from_pubkey
(
outputAddress
)
if
id_to
is
not
NO_MATCHING_ID
:
tx
.
append
([
"to (id)"
,
id_to
])
if
outputBackChange
:
tx
.
append
([
"Backchange (pubkey)"
,
outputBackChange
])
id_backchange
=
await
get_uid_from_pubkey
(
outputBackChange
)
if
id_backchange
is
not
NO_MATCHING_ID
:
tx
.
append
([
"Backchange (id)"
,
id_backchange
])
tx
.
append
([
"comment"
,
comment
])
return
tx
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment