Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add getnetworkinfo RPC #217

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

Open
ankh2054 wants to merge 3 commits into petertodd:master
base: master
Choose a base branch
Loading
from ankh2054:patch-1
Open

add getnetworkinfo RPC #217

ankh2054 wants to merge 3 commits into petertodd:master from ankh2054:patch-1

Conversation

@ankh2054
Copy link

@ankh2054 ankh2054 commented Oct 24, 2019

getnetworkinfo replaces getinfo on versions > 0.16.0 .

bitcoin/bitcoin#8780

acoutts reacted with thumbs up emoji acoutts reacted with hooray emoji
getnetworkinfo seems to replace getinfo on later versions. Version > 0.18.0 no longer support getinfo()
Copy link
Author

@ankh2054 ankh2054 left a 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()")
Copy link
Owner

@petertodd petertodd Oct 31, 2019

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.

Copy link
Author

@ankh2054 ankh2054 Nov 4, 2019

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.

Copy link

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?

Copy link
Owner

petertodd commented Aug 12, 2020 via email

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)
SachinMeier and kanzure reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@petertodd petertodd petertodd left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /