Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Create a "Testing Applications" subsection in devel-examples #453
Conversation
harding
commented on the diff
Jun 13, 2014
| @@ -0,0 +1,91 @@ | ||
| +## Testing Applications |
harding
Contributor
|
|
|
@harding Right! But I would need to define |
harding
commented on an outdated diff
Jun 13, 2014
| -Generate 101 blocks using a special version of the `setgenerate` RPC | ||
| -which is only available in regtest mode. This takes about 30 seconds on | ||
| -a generic PC. Because this is a new block chain using Bitcoin's default | ||
| -rules, the first 210,000 blocks pay a block reward of 50 bitcoins. | ||
| -However, a block must have 100 confirmations before that reward can be | ||
| -spent, so we generate 101 blocks to get access to the coinbase | ||
| -transaction from block #1. | ||
| - | ||
| -{% highlight bash %} | ||
| -bitcoin-cli -regtest getbalance | ||
| -50.00000000 | ||
| -{% endhighlight %} | ||
| - | ||
| -Verify that we now have 50 bitcoins available to spend. | ||
| +In order to use this tutorial, you will need to setup [Bitcoin Core][core executable] | ||
| +and create a [regression test mode][] environment. |
harding
Contributor
|
harding
commented on an outdated diff
Jun 13, 2014
| -* `bitcoind` is more useful for programming: it provides a full peer | ||
| - which you can interact with through RPCs to port 8332 (or 18332 | ||
| - for testnet). | ||
| - | ||
| -* `bitcoin-cli` allows you to send RPC commands to `bitcoind` from the | ||
| - command line. For example, `bitcoin-cli help` | ||
| - | ||
| -All three programs get settings from `bitcoin.conf` in the `Bitcoin` | ||
| -application directiory: | ||
| - | ||
| -* Windows: `%APPDATA%\Bitcoin\` | ||
| - | ||
| -* OSX: `$HOME/Library/Application Support/Bitcoin/` | ||
| - | ||
| -* Linux: `$HOME/.bitcoin/` | ||
| +The Developer Guide aims to provide the explanations you need to understand |
harding
Contributor
|
harding
commented on an outdated diff
Jun 13, 2014
| @@ -0,0 +1,19 @@ | ||
| +{% autocrossref %} | ||
| + | ||
| +The Developer Reference aims to provide specifications and APIs information |
harding
Contributor
|
|
Re: noref: actually, we changed it to ignore everything except whitespace, so even this should work without any additional definitions:
|
|
@harding Thanks! I updated the pull req and live preview with your feedback. Re: noref, that's strange, I had issues using it previously but for some reason, everything works fine now as you were suggesting, thanks! In the absence of critical feedback, this pull request will be merged on June 14th. |
|
@saivann LGTM. Thanks! |
saivann commentedJun 13, 2014
Live previews: (Merged)
This pull request mostly re-uses existing (great) regtest / testnet texts and moves them into a dedicated subsection for higher visibility and so anyone can easily refer & link to them.
Since they are more likely to be referred often from devel-examples and not from devel-guide, I've also moved the "Bitcoin Core setup instructions", and applied a consistent introduction for each page (this also lets us avoid repeating some of this information in "Transaction" examples).
I also needed to fix one regex and some code blocks syntax to prevent autocrossref.rb from inserting links in code blocks (it was replacing "regest" in some of them).