-
Notifications
You must be signed in to change notification settings - Fork 850
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
Support provhdr on Stratis altcoin #787
Conversation
rebase? |
NBitcoin/RPC/RestClient.cs
Outdated
@@ -76,7 +76,7 @@ public RestClient(Uri address, Network network) | |||
/// <param name="blockId">The block identifier.</param> | |||
/// <returns>Given a block hash (id) returns the requested block object.</returns> | |||
/// <exception cref="System.ArgumentNullException">blockId cannot be null.</exception> | |||
public async Task<Block> GetBlockAsync(uint256 blockId) | |||
public async Task<Block> GetBlockAsync(uint256 blockId, int verbosity = 0) |
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.
should be enum
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.
Both RestClient
and RPCClient
inherit from IBlockRepository
, which defines a method Task<Block> GetBlockAsync(uint256 blockId, int verbosity);
. So I'm not sure what the best approach would be, unless perhaps the enum was renamed and moved to be used by both implementations.
This reverts commit 562dca4.
* Implement uptime RPC * Make test faster * Reuse function * Improve order: Place uptime after the "stop" just like it's in Bitcoin Core's help * Add back whitespace to improve diff * Remove time sensitive test.
* Write test. * Ensure backwards compatibility of getblockchaininfo
* Write test. * Ensure backwards compatibility of getblockchaininfo * Ensure testmempoolaccept backwards compatibility
* Fix: "Invalid Hex String" exception for DogeCash * Increase patch number
* Genesis fix for NBXplorer sync * Base58 format ordering
I've got this branch into a mess, reopening as a new PR |
Intended to supersede #692