Skip to content
Snippets Groups Projects
Commit ffb68a11 authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] upgrade duniterpy dependency to 0.57.*

HeadV2 now get all properties from Head, HeadV0 and HeadV1
parent e1e4af2e
No related branches found
No related tags found
1 merge request!778Release 0.51.0
...@@ -2,7 +2,7 @@ aiohttp==3.6.2 ...@@ -2,7 +2,7 @@ aiohttp==3.6.2
async-timeout==3.0.1 async-timeout==3.0.1
asynctest==0.13.0 asynctest==0.13.0
attrs==19.3.0 attrs==19.3.0
duniterpy==0.56.0 duniterpy==0.57.*
jsonschema==3.2.0 jsonschema==3.2.0
networkx==2.4 networkx==2.4
PyQt5==5.9.2 PyQt5==5.9.2
......
...@@ -152,14 +152,9 @@ class NodesProcessor: ...@@ -152,14 +152,9 @@ class NodesProcessor:
logging.debug("Update node: {0}".format(head.pubkey[:5])) logging.debug("Update node: {0}".format(head.pubkey[:5]))
node.previous_buid = node.current_buid node.previous_buid = node.current_buid
node.current_buid = head.blockstamp node.current_buid = head.blockstamp
# todo: https://git.duniter.org/clients/python/duniterpy/issues/120
# capture sofware and version # capture sofware and version
if isinstance(head, HeadV2): node.software = head.software
node.software = head.v1.software node.version = head.software_version
node.version = head.v1.software_version
else:
node.software = head.software
node.version = head.software_version
self._repo.update(node) self._repo.update(node)
return node, True return node, True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment