Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mlsuyt2718.gitlab.io
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mlsuyt2718
mlsuyt2718.gitlab.io
Commits
ff29b6fb
Commit
ff29b6fb
authored
Apr 21, 2019
by
Pascal Engélibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: type error in mix
parent
a51edc97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
server.py
server.py
+2
-4
No files found.
server.py
View file @
ff29b6fb
...
...
@@ -585,10 +585,9 @@ class ClientThread(Thread):
for
tx
in
self
.
pool
:
if
tx
.
tx_sent
:
continue
print
(
tx
.
in_comment
)
if
tx
.
need_send
or
tx
.
need_confirm
:
continue
wanted_output
=
tx
.
in_amount
+
":"
+
tx
.
in_base
+
":SIG("
+
self
.
keys
.
pubkey
+
")"
wanted_output
=
str
(
tx
.
in_amount
)
+
":"
+
str
(
tx
.
in_base
)
+
":SIG("
+
self
.
keys
.
pubkey
+
")"
ok
=
False
for
in_tx
in
history
[
"history"
][
"received"
]:
if
(
not
"output"
in
in_tx
and
not
"outputs"
in
in_tx
)
or
not
"comment"
in
in_tx
:
...
...
@@ -599,13 +598,12 @@ class ClientThread(Thread):
break
if
ok
:
ready_txs
.
append
(
tx
)
print
(
wanted_output
)
if
len
(
ready_txs
)
>=
self
.
conf
[
"mix"
][
"mix_min_txs"
]:
random
.
shuffle
(
ready_txs
)
for
tx
in
ready_txs
:
try
:
sendTransaction
(
self
.
keys
,
tx
.
receiver_pubkey
,
int
(
tx
.
out_amount
)
,
gen_comment
(
tx
.
out_seeds
))
sendTransaction
(
self
.
keys
,
tx
.
receiver_pubkey
,
tx
.
out_amount
,
gen_comment
(
tx
.
out_seeds
))
tx
.
tx_sent
=
True
tx
.
export_ubjson
(
self
.
db_txs
)
except
Exception
as
e
:
...
...
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