You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #260: Add '()' annotation and error handling to submit_header
d3a047e Add '()' annotation and error handling to submit_header (GideonBature)
Pull request description:
This is a patch for [PR #259](#259) that adds a `let _: () = ...` annotation and an `.expect("submitheader")` call to the integration test for `submit_header`.
The `.expect()` call is necessary to extract the `()` value from the result returned by `submit_header`, making the test both explicit and consistent with the other null-returning client function tests.
Also, Introduced a for loop to increment the header’s nonce until the PoW is valid. This ensures the header meets Bitcoin’s difficulty target before calling `submit_header`.
ACKs for top commit:
jamillambert:
ACK d3a047e
tcharding:
ACK d3a047e
Tree-SHA512: 18d02f72acdde75e293d5e9ea61bbad1841909d3ff09e63219e9fbd85dfa5af1c7a048645bb3111928ac4f4811c41337ea5f674e64528b2f4d01a9f40738f40e
0 commit comments