Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
py-g1-migrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
tools
py-g1-migrator
Commits
92f9bc09
Commit
92f9bc09
authored
1 year ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
fix: do not convert pubkey to address, let Duniter do it depending on the network
parent
0cacfe21
Branches
Branches containing commit
No related tags found
1 merge request
!4
import data from Duniter 1.8 leveldb database
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/functions.py
+1
-1
1 addition, 1 deletion
lib/functions.py
with
1 addition
and
1 deletion
lib/functions.py
+
1
−
1
View file @
92f9bc09
...
@@ -105,7 +105,7 @@ def get_identities_and_wallets(start_timestamp: int, leveldb_path: str) -> tuple
...
@@ -105,7 +105,7 @@ def get_identities_and_wallets(start_timestamp: int, leveldb_path: str) -> tuple
# TODO make sure that index respects order of arrival
# TODO make sure that index respects order of arrival
# Get identities names by pubkey
# Get identities names by pubkey
for
pubkey
,
identity
in
identities_repository
:
for
pubkey
,
identity
in
identities_repository
:
address
=
v1_
pubkey
_to_v2_address
(
pubkey
)
address
=
pubkey
index
=
identity
[
"
wotb_id
"
]
+
1
index
=
identity
[
"
wotb_id
"
]
+
1
uid
=
identity
[
"
uid
"
]
uid
=
identity
[
"
uid
"
]
is_member
=
identity
[
"
member
"
]
is_member
=
identity
[
"
member
"
]
...
...
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