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
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
c35147ea
Commit
c35147ea
authored
10 years ago
by
Vincent Texier
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into view_in_wot
parents
f7bb5b0b
57e00bcf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/ucoinpy/documents/transaction.py
+2
-1
2 additions, 1 deletion
lib/ucoinpy/documents/transaction.py
src/cutecoin/__init__.py
+1
-1
1 addition, 1 deletion
src/cutecoin/__init__.py
src/cutecoin/core/wallet.py
+7
-2
7 additions, 2 deletions
src/cutecoin/core/wallet.py
with
10 additions
and
4 deletions
lib/ucoinpy/documents/transaction.py
+
2
−
1
View file @
c35147ea
...
@@ -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/__init__.py
+
1
−
1
View file @
c35147ea
__version_info__
=
(
'
0
'
,
'
7
'
,
'
5
'
)
__version_info__
=
(
'
0
'
,
'
7
'
,
'
6
'
)
__version__
=
'
.
'
.
join
(
__version_info__
)
__version__
=
'
.
'
.
join
(
__version_info__
)
This diff is collapsed.
Click to expand it.
src/cutecoin/core/wallet.py
+
7
−
2
View file @
c35147ea
...
@@ -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_doc
=
Block
.
from_signed_raw
(
signed_raw
)
block
[
'
signature
'
])
try
:
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