-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add getnetworkinfo RPC #217
base: master
Are you sure you want to change the base?
Conversation
getnetworkinfo seems to replace getinfo on later versions. Version > 0.18.0 no longer support getinfo()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added try and except to getinfo()m so it still runs getnetworkinfo() and prints warning.
bitcoin/rpc.py
Outdated
r['paytxfee'] = int(r['paytxfee'] * COIN) | ||
return r | ||
except: | ||
print("getnetworkinfo replaces getinfo on versions > 0.16.0, please use getnetworkinfo()") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should print to stderr or maybe call depreciationwarning or similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added DepreciationWarning seems to work well. Hope that works, otherwise let me know and I can add more. I'm very new to python so excuse my ignorance on some things.
I am currently working on a full update of RPC calls based on v0.19.0.1, which should cover this as well. I am almost done with writing the code. How should I handle conflicts with this PR? |
I'd say do whatever is best for your PR. We can fix conflicts later.
…On August 12, 2020 5:41:40 PM EDT, Sachin Meier ***@***.***> wrote:
I am currently working on a full update of RPC calls based on v0.19.0.1, which should cover this as well. I am almost done with writing the code. How should I handle conflicts with this PR?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#217 (comment)
|
getnetworkinfo replaces getinfo on versions > 0.16.0 .
bitcoin/bitcoin#8780