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

Create generatetoaddress rpc #214

Closed
wants to merge 4 commits into from

Conversation

deadalnix
Copy link
Contributor

Backport from core, depends on #213

@deadalnix deadalnix force-pushed the miningrpc branch 3 times, most recently from 556c308 to df3f29d Compare January 11, 2017 18:27
@deadalnix deadalnix force-pushed the miningrpc branch 4 times, most recently from 76214ce to 1c29000 Compare January 19, 2017 16:29
@deadalnix deadalnix changed the base branch from 0.12.1bu to dev January 19, 2017 17:05
@deadalnix deadalnix force-pushed the miningrpc branch 2 times, most recently from b229b88 to 1946474 Compare January 26, 2017 18:56
Leviathn and others added 4 commits February 12, 2017 08:35
This code removes the internal miner which is only useful on Testnet.
This leaves the internal miner that is useful on RegTest intact.
Creates the generatetoaddress rpc which is virtually identical to the generate rpc except that it takes an argument for the address to mine to. It does not rely on wallet functionality.

The mining code shared by generate and generatetoaddress has been moved to another method to reduce duplication.
Adds two RPC tests for the generatetoaddress RPC, one in the wallet, and one when the wallet is disabled.

The wallet RPC Test mines Bitcoin to another node's address and checks that that node has received the Bitcoin.

The RPC test without the wallet mines Bitcoin to an arbitrary address and checks that it works. It then mines to an arbitrary invalid address and checks that that fails.
@gandrewstone
Copy link
Collaborator

merged via PR 313

@deadalnix deadalnix deleted the miningrpc branch February 27, 2017 12:31
Justaphf pushed a commit to Justaphf/BitcoinUnlimited that referenced this pull request Apr 14, 2017
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.

None yet

3 participants