Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
35abbc88
Commit
35abbc88
authored
10 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Added a fix in transactions
parent
6f9caa06
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/ucoinpy/documents/transaction.py
+2
-1
2 additions, 1 deletion
lib/ucoinpy/documents/transaction.py
src/cutecoin/core/wallet.py
+7
-2
7 additions, 2 deletions
src/cutecoin/core/wallet.py
with
9 additions
and
3 deletions
lib/ucoinpy/documents/transaction.py
+
2
−
1
View file @
35abbc88
...
@@ -6,6 +6,7 @@ Created on 2 déc. 2014
...
@@ -6,6 +6,7 @@ Created on 2 déc. 2014
from
.
import
Document
from
.
import
Document
import
re
import
re
import
logging
class
Transaction
(
Document
):
class
Transaction
(
Document
):
'''
'''
...
@@ -40,7 +41,7 @@ SIGNATURE
...
@@ -40,7 +41,7 @@ SIGNATURE
'''
'''
re_type
=
re
.
compile
(
"
Type: (Transaction)
\n
"
)
re_type
=
re
.
compile
(
"
Type: (Transaction)
\n
"
)
re_header
=
re
.
compile
(
"
TX:([0-9]
)
+:([0-9]
)
+:([0-9]
)
+:([0-9]
)
+:(0|1)
\n
"
)
re_header
=
re
.
compile
(
"
TX:([0-9]+
)
:([0-9]+
)
:([0-9]+
)
:([0-9]+
)
:(0|1)
\n
"
)
re_issuers
=
re
.
compile
(
"
Issuers:
\n
"
)
re_issuers
=
re
.
compile
(
"
Issuers:
\n
"
)
re_inputs
=
re
.
compile
(
"
Inputs:
\n
"
)
re_inputs
=
re
.
compile
(
"
Inputs:
\n
"
)
re_outputs
=
re
.
compile
(
"
Outputs:
\n
"
)
re_outputs
=
re
.
compile
(
"
Outputs:
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
src/cutecoin/core/wallet.py
+
7
−
2
View file @
35abbc88
...
@@ -104,8 +104,13 @@ class Cache():
...
@@ -104,8 +104,13 @@ class Cache():
for
block_number
in
parsed_blocks
:
for
block_number
in
parsed_blocks
:
block
=
community
.
request
(
bma
.
blockchain
.
Block
,
block
=
community
.
request
(
bma
.
blockchain
.
Block
,
req_args
=
{
'
number
'
:
block_number
})
req_args
=
{
'
number
'
:
block_number
})
signed_raw
=
"
{0}{1}
\n
"
.
format
(
block
[
'
raw
'
],
block
[
'
signature
'
])
signed_raw
=
"
{0}{1}
\n
"
.
format
(
block
[
'
raw
'
],
block
[
'
signature
'
])
try
:
block_doc
=
Block
.
from_signed_raw
(
signed_raw
)
block_doc
=
Block
.
from_signed_raw
(
signed_raw
)
except
:
logging
.
debug
(
"
Error in {0}
"
.
format
(
block_number
))
raise
for
tx
in
block_doc
.
transactions
:
for
tx
in
block_doc
.
transactions
:
in_outputs
=
[
o
for
o
in
tx
.
outputs
in_outputs
=
[
o
for
o
in
tx
.
outputs
if
o
.
pubkey
==
self
.
wallet
.
pubkey
]
if
o
.
pubkey
==
self
.
wallet
.
pubkey
]
...
...
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