Skip to content

Fix getnetworkhashps return type in docs#591

Merged
tcharding merged 1 commit into
rust-bitcoin:masterfrom
jamillambert:0515-getnetworkhashps-f64
May 21, 2026
Merged

Fix getnetworkhashps return type in docs#591
tcharding merged 1 commit into
rust-bitcoin:masterfrom
jamillambert:0515-getnetworkhashps-f64

Conversation

@jamillambert
Copy link
Copy Markdown
Collaborator

getnetworkhashps returns an f64 but was marked as returning a bool in the types table, and returning nothing in verify.

Fix them both to be f64.

Update the test to specify the return type.

getnetworkhashps returns an f64 but was marked as returning a bool in
the types table, and returning nothing in verify.

Fix them both to be f64.

Update the test to specify the return type.
Copy link
Copy Markdown
Contributor

@satsfy satsfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 3d9846c

Solid fix. Verified on regtest, everything checks out.

Copy link
Copy Markdown
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3d9846c

@tcharding tcharding merged commit f626af1 into rust-bitcoin:master May 21, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants