
A new version of Lighthive is pushed to the Python package index with the tag 0.4.3
. As usual, pip install lighthive --upgrade
is enough to get the latest version.
Changelog
Use random integer instead of random UUIDs for the
id
field in the JSONRPC request body. Even though specs allow strings this is a convention that have been followed in other libraries, and recently Drone is released to the wild and it expects IDs as integers.Use
==
instead ofis
keywords at transaction builder class. This was harmless in practice but it was creating some mess in logs.
Credits to @brianoflondon for raising those issues.
Bonus
You can actually pass IDs as a library user. E.g:
from lighthive.client import Client
c = Client(nodes=["https://techcoderx.com"])
resp = c.get_dynamic_global_properties(id="whateveryouwant")
print(resp)
Not very useful for most of the apps, since ligthive is not async. But who knows, just in case, if you find a use case for it..