Skip to content
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

Closed
wants to merge 36 commits into from
Closed

Conversation

zeptin
Copy link
Contributor

@zeptin zeptin commented Dec 13, 2019

Intended to supersede #692

@NicolasDorier
Copy link
Collaborator

rebase?

@@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should be enum

Copy link
Contributor Author

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.

mikedennis and others added 27 commits January 16, 2020 23:05
* 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
@zeptin
Copy link
Contributor Author

zeptin commented Jan 16, 2020

I've got this branch into a mess, reopening as a new PR

@zeptin zeptin closed this Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants