Commit graph

623 commits

Author SHA1 Message Date
David A. Harding
2c1615e75b
Dev Docs: Remove security confusion from P2SH intro
Somebody thought the paragraph being revised in this commit implied that
P2SH was implemented because P2PKH had security problems:

  http://bitcoin.stackexchange.com/q/36695/21052
2015-04-01 09:07:02 -04:00
David A. Harding
801ea9f4ad
Fix links for new glossary entries 2015-03-19 15:32:09 -04:00
David A. Harding
494dfaced7
Dev Docs: Add Glossary Entries & Search Links
This adds the data used to populate the glossary and search terms.

Closes #593
2015-03-19 15:31:44 -04:00
David A. Harding
037cd4553a
Add New Glossary Page And Developer Search Feature
This commit adds the code necessary to generate a new
en/developre-glossary page with entry pages in the en/glossary/
directory, e.g. en/glossary/51-percent-attack.

The glossary page and the individual term pages feature a JavaScript
search engine (no CGI) for just glossary terms.  This search box has
also been added to the following pages:

    * Developer Documentation (the index page)
    * Developer Guide
    * Developer Reference
    * Developer Examples

The search box requires the following MIT-licensed libraries:

    * JQuery
    * JQuery UI
    * JQuery UI CSS stylesheet

These allow our JS code to be almost trivially simple in js/devsearch.js

This commit adds only code.  Actual glossary entry data will be added in
a subsequent commit.
2015-03-19 15:31:28 -04:00
David A. Harding
7dad293c31
Merge pulls #783, #788, Addr fix
* #783: make 'Getting Started' more dense
* #788: fix typo on timereceived
* Addr fix: fix addr mislink reported by larshesel (thanks!)
2015-03-19 13:40:45 -04:00
Christopher Gurnee
7f4a590894 Fix 'addr message' reference links (fixes #792) 2015-03-19 11:53:20 -04:00
Diogo Quintela
15b779049b typo on timereceived (was timerecived) 2015-03-11 13:55:02 +00:00
David A. Harding
fc10efd3dc
Dev Docs: Fix Confusing Sentence About UTXO/Input Values
Reported by Nathan Wilcox (thanks!)

Closes #766
2015-02-24 16:25:48 -05:00
David A. Harding
2c44b59d88
Dev Docs: Use Sed To Convert Tables To YAML
Run sed -i -f <this_file.sed> _includes/ref/bitcoin-core/rpcs/rpcs/* _includes/ref/bitcoin-core/rest/requests/get_* _includes/helpers/vars.md

    ## On lines that start with a pipe:
    /^|/ {
        ## Delete all table header/table body divider lines
        /|----/d;

        ## Escape all double quotes
        s/"/\\"/g;

        ## Replace lines that look like NTPD headers with a itemplate start block
        s/^| Name *| Type.*/{% itemplate ntpd1 %}/;

        ## Delete extraneous whitespace
        s/ *|/|/g;

        ## Replace the first pipe with "- name:" plus a start quote
        s/^| */- n: "/;

        ## Replace the remaining pipes, starting each one with a newline and two spaces
        s/| */"\n  t: "/;
        s/| */"\n  p: "/;
        s/| */"\n  d: "/;

        ## Add a close quote and an empty line after the last list item
        ## built from a single table row, except for the header row. This
        ## improves readability/maintainability
        /[^}]$/s/$/"\n/;
    }

    ## Replace the old table class with the itemplate close tag
    s/{:.ntpd}/{% enditemplate %}/
2015-02-20 15:39:10 -05:00
David A. Harding
79fd671e90
Add New Inline-Template Plugin
Also add inline template for RPC and REST tables
2015-02-20 15:38:53 -05:00
David A. Harding
3d7ba837bb
Dev Docs: Fix a->an typo (thanks Saïvann!) 2015-02-19 07:22:17 -05:00
David A. Harding
72cc5f7f9e
Dev Docs: Add Section About Headers-First IBD
* Add flowchart illustration to blocks-first section to match new
  headers-first flowchart

* Add new headers-first initial block download (IBD) section

* Revise Block Broadcasting section

* Add paragraph about orphan block handling in headers-first to the
  Orphan Blocks section
2015-02-05 16:16:46 -05:00
David A. Harding
848429f0c9
Dev Docs: Tweak GetHashesPerSec Deprecation
* Ran `make manual-updates` to grab new summary

* Clarified that GHPS is part of 0.10.0 and is removed in master

* Autocrossref'd "Bitcoin Core master" to GitHub repo

* Removed GHPS from list of Mining RPCs now that it's in Removed RPCs
2015-02-02 09:59:20 -05:00
Rui Marinho
f2e268da4a Dev Docs: Deprecate gethashespersec rpc call in 0.10.0. 2015-02-02 01:19:36 +00:00
David A. Harding
a1b7d1e532
Dev Docs: Put summary_ variables in alphabetical order
* Simply ran `make manual-updates` using previously-commited sort patch
2015-02-01 18:21:51 -05:00
David A. Harding
e0f1a369da
Dev Docs: Merge Pull #685 and Pull #721
* 685: Dev Docs: Document Blocks-First IBD & Orphan Blocks
* 721: Dev Docs: Mention Upcoming v3 Blocks/BIP66
2015-02-01 18:20:38 -05:00
David A. Harding
3109903065
Dev Docs: Corrections to IBD Suggested By Saivann (Thanks!) 2015-01-31 16:12:57 -05:00
David A. Harding
ccda4caa0c
Dev Docs: Document Blocks-First IBD & Orphan Blocks
This commit provides a detailed overview of the current block download
method, which I've retroactively named blocks-first for parallelism with
headers-first.

New And Significantly Revised:

* New Initial Block Download (IBD) section (h3) with Blocks-First
  subsection (h4)

* New Orphan Block subsection (under Blocks Broadcasting) describing
  orphan blocks and how they're handled under blocks-first. Also
  includes a simple illustration of the difference between orphan blocks
  and stale blocks. Thanks to luke-jr for his s/orphan block/stale
  block/ commit a couple months ago---that made this commit much easier.

Edits:

* Cleaned up a couple cases missed by previous s/orphan/stale/ commit
  because they used past tense (orphaned).

* In P2P reference section, mentioned that a `block` message can be sent
  unsolicited by miners.

* Mention that `getheaders` and `headers` were added in protocol
  version 31800.

* Moved a few internal links around and added a few new internal links.

Administrivia:

* Started adding "TODOv0.10" in HTML comments to places that need to be
  updated when 0.10 is released so that I can easily git grep for that
  tag later.
2015-01-31 15:48:16 -05:00
David A. Harding
2312aa10fd
Dev Docs: Merge RPC and RPC Intro
This commit merges the RPC introduction section (h4), "JSON-RPC &
bitcoin-cli" into the currently-empty RPC section (h3).  To do this, it
splits the contents of the file `_includes/ref_core_rpc_intro.md` into
the new files `_includes/ref/bitcoin-core/api-intro.md` and
`_includes/ref/bitcoin-core/rpcs/intro.md`
2015-01-27 18:40:20 -05:00
David A. Harding
73eb097dd4
Dev Docs: REST: Add Security Note & Reindex Note
Added both notes to both JSON-RPC and REST docs.

Suggested by Jonas Schnelli (thanks!)
2015-01-26 14:41:05 -05:00
David A. Harding
dc5c161ee2
Dev Docs: Mention Upcoming v3 Blocks/BIP66 2015-01-26 14:14:54 -05:00
David A. Harding
5f532c59da
Dev Docs: Add REST Documentation
* Uses same basic format as JSON-RPC documentation.

Closes #715
2015-01-26 11:29:07 -05:00
David A. Harding
81d4f310d6
Dev Docs: Add Missing Details To ListTransactions RPC
Looks like I lost/forgot to include the variablized-table for this RPC.
2015-01-10 13:32:22 -05:00
shaulkf
e68d8f2f83 Dev Docs: Specify block halving time in regtest mode 2015-01-10 11:45:03 -05:00
David A. Harding
2d46b41e3e
Dev Docs: Update IsStandard ScriptSig Size For BCC 0.9.3/10.0.0
Also fix a few other minor issues in that section.

Thanks to gsalgado for reporting this!  Closes #705
2015-01-08 10:43:39 -05:00
David A. Harding
ddbc448553
Dev Docs: Fix Confusion About Chain Switching
As discussed on BitcoinTalk, there was confusion about whether a
non-upgraded node would switch to the strongest chain despite that chain
not following the consensus rules known to the non-upgraded node.  Also
updated to mention Bitcoin Core 0.10.0 now that it's RC'd.

Ref: https://bitcointalk.org/index.php?topic=909732.msg9999032#msg9999032
2015-01-03 09:36:28 -05:00
David A. Harding
9329c69cf8
Dev Docs: Put RPC Tables In Separate CSS Class
Suggested by Saivann: RPC tables with Name/Type/Presence/Description
format are now in .ntpd CSS class so that we can format them specially.

We also change the style of all dev doc tables to replace bold table
headings (thead) with a double-line border-bottom.  This makes the
theads look less like section headings and prevents us from over-using
bold.

Minor: a Makefile warning message has been made more explicit (also
suggested by Saivann) and another Makefile rule was updated to catch
more broken tables.
2014-12-30 16:03:19 -05:00
David A. Harding
b8abfb2dcd
Dev Docs: Add 114 Pages Of New/Rewritten RPC Docs
* All previously-documented RPCs have had their text completely
  rewritten.

* All new RPCs and changed RPCs in Bitcoin Core 0.10.0 have been
  documented, except for hidden RPCs.

* A new RPC "Quick Reference" section has been added to make finding the
  right RPC easier.

* A "See Also" subsection has been added to the end of every RPC
  pointing to other relevant information.

* All previous examples in the RPC section have been re-run and updated
  as necessary.

* Syntax highlighting has been added wherever possible.

* Hash byte order has been specified as RPC byte order everywhere it's
  used in RPCs.
2014-12-24 18:46:03 -05:00
David A. Harding
e91bbd774c
Merge pull #688: Dev Docs: Briefly Describe JSON-RPC Format & bitcoin-cli 2014-12-23 08:59:37 -05:00
Saivann
d7db481feb Use consistent lowercase "bitcoin-cli" 2014-12-21 13:48:52 -05:00
Saivann
33b989dc34 Align RPC names in tables 2014-12-21 13:48:32 -05:00
Saivann
036493c0d9 Fix a broken icon link 2014-12-20 23:25:43 -05:00
David A. Harding
51a5a1b24a
Dev Docs: Briefly Describe JSON-RPC Format & bitcoin-cli
Briefly describe the JSON-RPC 1.0 format as used by Bitcoin Core and how
bitcoin-cli abstracts away some of the details.   Also link to the
Proper Money Handling wiki page.  (This as a vanguard PR preparing the
way for a larger overhaul of our RPC docs, including updating them for
0.10.)
2014-12-19 16:45:46 -05:00
David A. Harding
82f00e8df9
Dev Docs: Add Subhead-Links To "Not A Spec" Subsection 2014-12-16 07:42:43 -05:00
David A. Harding
f08b3e1bb4 Dev Docs: Remove Majority Mentions In Not A Spec (thanks saivann) 2014-12-16 07:40:01 -05:00
David A. Harding
8f0a80a939 Dev Docs: "Not A Specification"
Make explicit that the docs are not a specification and never will be.
2014-12-16 07:40:01 -05:00
David A. Harding
34edbe8461
Merge pull #682: Dev Docs: Add "Edit|History|Report Issue|Discuss" Links To Subheads 2014-12-16 07:13:19 -05:00
David A. Harding
53d4a6eebe
Dev Docs: Move Manual Sourcefile Lines To Auto Helper (thanks saivann!) 2014-12-14 08:12:12 -05:00
David A. Harding
f368d38e04
Dev Docs: Add "Edit|History|Report Issue|Discuss" Links To Subheads 2014-12-13 17:35:21 -05:00
David A. Harding
66bffab758
Dev Docs: Update Disclaimer (thanks saivann!) 2014-12-12 19:59:20 -05:00
David A. Harding
25acab7584
Clarify Tx Update To Header Hashing I/O (closes #675)
Thanks darren-a and Saïvann.
2014-12-10 20:48:31 -05:00
David A. Harding
217ddb0701
Dev Docs (Formatting Only): Convert Fake Subheadings To Real Subheadings
Converts fake subheadings created using **bold** to real HTML
subheadings without adding them to the table of contents.

Also fixes a link broken by commit 4e067ac89e and adds a Makefile
test to catch future similar breakage.
2014-11-28 19:54:31 -05:00
David A. Harding
464272eeb0
Merge Pull #657: Dev Docs: Describe Filterload Message (Final P2P Message To Document) 2014-11-28 19:30:20 -05:00
Saivann
64a6f780be Merge branch 'license' 2014-11-28 10:54:28 -05:00
David A. Harding
b3c14aad89
Dev Docs: Made Corrections To Filterload Docs Suggested By @saivann (Thanks!) 2014-11-27 21:36:10 -05:00
David A. Harding
a8fd82c6a6 Dev Docs: Describe Filterload Message (Final P2P Message To Document)
New material:

* Add documentation for `filterload` message to devref. This is the last
  P2P protocol message which needed documentation.

* Add an example for creating a bloom filter to the devex, as well as an
  example of checking data against that filter.

Edits:

* Change "object" to "element" in previous `filteradd` text. I decided
  "transaction element" made more sense than the more generic "object".
  Text should be fully consistent across both `filterload` and
  `filteradd` descriptions.

* Mentioned that I think the example hexdump in the `alert` section is
  public domain. (Only the hex is taken from the wiki; the annotation is
  my own work.)
2014-11-27 21:27:01 -05:00
David A. Harding
b9ee23615a
Dev Docs: Change MerkleBlock To Merkle Block (But Not P2P Message Form) 2014-11-27 21:13:14 -05:00
David A. Harding
ecd5a349aa
Dev Docs: Correct Connection Establishment Message Order
Text said: version/verack/version/verack.  Correct order (per code and
my own testing) is version/version/verack/verack.
2014-11-24 10:02:21 -05:00
David A. Harding
4e067ac89e
Merge branch 'control-messages' (pull #649) 2014-11-22 00:06:29 -05:00
David A. Harding
bc69bf573c
Dev Docs: Link To CC-BY License For Covered Code
A code snippet from the wiki was correctly attributed to its author, but
I didn't realize I also had to link to the license.  Corrected.
2014-11-21 23:54:48 -05:00