Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
clients
python
DuniterPy
Commits
a668b3c7
Commit
a668b3c7
authored
7 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[fix]
#37
: examples: update documents to version 10.
parent
f9ba0c90
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/send_membership.py
+2
-2
2 additions, 2 deletions
examples/send_membership.py
examples/send_transaction.py
+1
-1
1 addition, 1 deletion
examples/send_transaction.py
with
3 additions
and
3 deletions
examples/send_membership.py
+
2
−
2
View file @
a668b3c7
...
@@ -41,7 +41,7 @@ def get_identity_document(current_block, uid, salt, password):
...
@@ -41,7 +41,7 @@ def get_identity_document(current_block, uid, salt, password):
# create identity document
# create identity document
identity
=
Identity
(
identity
=
Identity
(
version
=
2
,
version
=
10
,
currency
=
current_block
[
'
currency
'
],
currency
=
current_block
[
'
currency
'
],
pubkey
=
key
.
pubkey
,
pubkey
=
key
.
pubkey
,
uid
=
uid
,
uid
=
uid
,
...
@@ -76,7 +76,7 @@ def get_membership_document(mtype, current_block, identity, salt, password):
...
@@ -76,7 +76,7 @@ def get_membership_document(mtype, current_block, identity, salt, password):
# create identity document
# create identity document
membership
=
Membership
(
membership
=
Membership
(
version
=
2
,
version
=
10
,
currency
=
current_block
[
'
currency
'
],
currency
=
current_block
[
'
currency
'
],
issuer
=
key
.
pubkey
,
issuer
=
key
.
pubkey
,
membership_ts
=
timestamp
,
membership_ts
=
timestamp
,
...
...
This diff is collapsed.
Click to expand it.
examples/send_transaction.py
+
1
−
1
View file @
a668b3c7
...
@@ -24,7 +24,7 @@ BMA_ENDPOINT = "BASIC_MERKLED_API g1.duniter.org 10901"
...
@@ -24,7 +24,7 @@ BMA_ENDPOINT = "BASIC_MERKLED_API g1.duniter.org 10901"
AIOHTTP_SESSION
=
aiohttp
.
ClientSession
()
AIOHTTP_SESSION
=
aiohttp
.
ClientSession
()
# Version of the transaction document
# Version of the transaction document
TRANSACTION_VERSION
=
3
TRANSACTION_VERSION
=
10
def
get_transaction_document
(
current_block
,
source
,
from_pubkey
,
to_pubkey
):
def
get_transaction_document
(
current_block
,
source
,
from_pubkey
,
to_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