Commit Graph

116 Commits

Author SHA1 Message Date
Dave Collins
6a3c1fea49
docs: Update for txscript v2 module. 2019-06-24 15:13:40 -05:00
Dave Collins
a0b84e4005
docs: Update for dcrutil v2 module. 2019-06-19 12:09:20 -05:00
David Hill
893aa30dce multi: Use https links where available. 2019-06-18 14:20:06 -05:00
Dave Collins
6bb0838e84
docs: Update for dcrec/edwards v2 module.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to reflect the new module version.
2019-06-14 11:34:48 -05:00
Dave Collins
67ace6e117
docs: Update for chaincfg v2 module.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to reflect the new module version
2019-06-12 20:14:35 -05:00
Dave Collins
c1cf192f03
docs: Update for hdkeychain v2 module.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to reflect the new module version
2019-03-29 11:40:35 -05:00
Jamie Holdstock
9a2e8e5067 docs: allowHighFees arg has been implemented.
Update the RPC docs which state that the allowHighFees argument of
sendrawtransaction is not implemented.
2019-03-20 09:55:37 -05:00
Jamie Holdstock
598bd32a11 docs: move json rpc docs to mediawiki. 2019-03-19 17:33:38 +00:00
Dave Collins
334820db6d
docs: Update for lru module.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to reflect the new lru module.
2019-03-18 10:08:29 -05:00
Jamie Holdstock
9a5161ce9e rpcserver: Add difficultyratio to getblockchaininfo.
Add DifficultyRatio to GetBlockChainInfoResult, and bump the minor rpc
version accordingly. This is to maintain consistency with GetDifficulty
RPC. Also deprecate the existing Difficuly field in
GetBlockChainInfoResult, to be removed in a future major version bump.
2019-03-11 00:44:17 -05:00
Jamie Holdstock
9ea5bd3bb3 docs: fix formatting in json rpc doc.
Removes an unnecessary line from the `getblockheader` table in json_rpc_api.md which prevents it from displaying correctly.
2019-03-07 19:49:43 -06:00
Dave Collins
6f106adf57
docs: Update for mempool v2 module.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to reflect the new module version
2019-02-14 18:52:48 -06:00
Dave Collins
895020ac5e
docs: Update for rpcclient v2 module.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to reflect the new module version
2019-02-14 11:44:01 -06:00
Dave Collins
9265b40510
docs: Update for dcrjson v2 module.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to reflect the new module version.
2019-02-13 19:23:38 -06:00
Dave Collins
176ee29497
docs: Update for fees package.
This updates the docs/README.md file, module hierarchy graphviz, and
module hierarchy diagram to include the recently added fees package.
2018-12-07 22:59:23 -06:00
Dave Collins
6d647094ee
multi: Return total chain work in RPC results.
This modifies the getblock and getblockheader RPC results to include the
total number of hashes expected to produce the chain up to the requested
block in hex and updates the JSON-RPC API documentation accordingly.
2018-10-16 11:30:58 -05:00
Dave Collins
3a2bdcc332
multi: Cleanup getblock and getblockheader RPCs.
This modifies the getblock and getblockheader RPC results to be a little
more consistent in their ordering, to include the extra data field in
the getblockheader results, and to update the JSON-RPC API documentation
for both to match reality.  The documentation was missing several fields
and had some typos.
2018-10-16 11:24:46 -05:00
Dave Collins
81c76dcb78
multi: Break blockchain dependency on dcrjson.
This modifies the ChainTips function in blockchain to return the results
using a type defined in the blockchain package itself instead of
directly returning a dcrjson type.  This is preferable since nothing
else in the module depends on dcrjson and therefore allows the
dependency on the dcrjson module to be broken.

It also updates the RPC server that makes use of the function to perform
the necessary conversions.

Finally, the associated module hierarchy documentation is updated to
properly remove the no longer required dependency.

It should be noted that this is a breaking change to the API and thus
will need a v2 major version bump of the blockchain module to be
published before the changes can be externally consumed.
2018-10-10 16:44:20 -05:00
Dave Collins
0d3bbd2513
docs: Use unix line ending in mod hierarchy gv.
This converts the module hierarchy graphviz file to use unix line
endings so it is consistent with the rest of the code in the repository.
2018-10-10 13:12:31 -05:00
Donald Adu-Poku
1ec04c40a2 multi: Add getblockchaininfo rpc. 2018-10-09 18:28:17 -05:00
Dave Collins
79da9e6617
docs: Use relative versions in contrib checklist. 2018-09-13 15:15:15 -05:00
Dave Collins
817373d9d7
docs: Revamp main README.md and update docs.
This revamps the main README.md file in an attempt to provide a more
user-friendly introduction to the software and why someone would want to
run it and also updates the docs/README.md to remove some sections that
do not apply to Decred and update some others to reflect reality.

It also adds minimum recommended specifications for dcrd to the main
README.md and updates the build instruction for module-aware builds and
the recent changes the run_test.sh script.

Finally, it updates the contact information to point to the
decred.org/community page.
2018-09-12 15:11:03 -05:00
Dave Collins
5db19ddcab
multi: Include additional fields on RPC tx results.
This modifies the results provided by the getrawtransaction and
searchrawtransactions RPCs to make them consistent with each other.

In particular, it adds the transaction expiry, block height, and block
index fields to the searchrawtransactions result and ensures that both
omit the block height when it is zero so that it is not included in the
results for mempool transactions.

Since populating the block index requires additional details to be
stored to the transaction index to efficiently provide, only the
infrastructure is added and the value is left as the default for now,
which means it will be omitted and therefore not change the visible
behavior.

Finally, it also updates the RPC server help to provide consistent
descriptions for the fields and also updates the JSON-RPC documentation.
2018-09-10 09:18:01 -05:00
Dave Collins
ae9c2aae56
docs: Update docs for versioned modules.
This updates the overall docs README to include all of the new modules
as well as introduce a module hierarchy diagram.
2018-08-14 04:53:08 -05:00
Donald Adu-Poku
1acb88472e multi: add amount field to TransactionInput.
This adds an amount field to TransactionInput intended for specifying the prev out amount when creating a transaction. createraw/ssrtx/sgentx/transaction rpcs are also updated accordingly as well as associated tests.

A typo in assignField is also corrected.
2018-06-21 23:54:42 +00:00
matadormel
7103c7d350 docs: Update txaccepted method in json_rpc_api.md.
The 'txaccepted' method is currently showing an out of date parameter within json_rpc_api.md. The first parameter is currently set to 'TxSha', however it should be set to either 'TxID' or 'TxHash' .
2018-05-31 11:09:23 -05:00
Dave Collins
d04706089c
docs: Update node.js example for v8.11.1 LTS.
This modifies the example for connecting to the dcrd RPC server from
node.js to work with node.js v8.11.1 LTS and v10.0.1 along with calling
out the tested version and requirement for the additional ecdhCurve
parameter on v8.11.1 LTS.
2018-05-15 11:52:14 -05:00
Markus Richter
8deac318d0 docs: Fix links for internal packages.
dcrrpclient and dcrjson have been merged into dcrd.
Adjust links accordingly.
2018-03-09 16:16:58 +00:00
Markus Richter
cbc3c88533 docs: document how to use go test -coverprofile
Also some cleanups:

- Use proper punctuation.
- Use nicer link for Bitcoin white paper.
- Remove white spaces at the end of lines.
- Format paragraph.
2018-03-01 20:26:39 -06:00
Markus Richter
bca8d18cb1 docs: Remove carriage return.
Bite the bullet now and remove carriage return (`\r`) from all
documentation files to allow further edits without messy diffs.

No further changes have been made besides `sed -i 's/\r//g' docs/*`.
2018-03-01 20:14:55 -06:00
Markus Richter
1e42b8524d multi: Properly capitalize Decred.
Decred is inconsistencly capitalized in the code base,
change all occurences of decred to Decred.
2018-03-01 17:41:35 -06:00
Dave Collins
6573428e11
multi: Implement getchaintips JSON-RPC.
This implements the getchaintips JSON-RPC and updates the associated
JSON-RPC API documentation accordingly.

It should be noted that until the entire block index is loaded into
memory, the chain tips tracking currently only works with tips that have
been seen since the daemon was started.
2018-03-01 12:29:36 -06:00
Donald Adu-Poku
3603aeadb2 mempool: Add docs.go and flesh out README.md. 2018-02-21 12:27:31 +00:00
Donald Adu-Poku
a0438c81c3 rpcserver: add batched request support (json 2.0) 2018-02-13 17:12:08 -06:00
Markus Richter
239d4c84a3 docs: make example code compile
- wire.NewShaHashFromStr has been moved to chainhash.NewHashFromStr
- use mainnet port and genesis block hash
2018-01-17 16:29:07 -06:00
Markus Richter
ca60e4ae90 docs: rpcclient is now part of the main dcrd repo
Adjust links and  example code to reflect that.
Also update example output.
2018-01-17 16:29:07 -06:00
Donald Adu-Poku
bd8ff54a4b docs: Add fullblocktests entry and minor consistency updates 2017-12-31 12:25:01 +00:00
Josh Rickmar
6842aa006d Merge remaining dcrutil code into a dcrd package.
This merge commit adds the following code from the
github.com/decred/dcrutil package into a new
github.com/decred/dcrd/dcrutil package:

* Address handling
* Amount type
* AppDataDir func
* bitflags functions
* Block wrapper type
* Hash160 func
* Tx wrapper type
* WIF type

as well as all tests for this code.

The old github.com/decred/dcrutil/hdkeychain package has also been
merged and moved to github.com/decred/dcrd/dcrutil/hdkeychain.

dcrd packages have been updated to use the new packages and the dep
files have been updated for this change.
2017-10-11 22:06:36 -04:00
Donald Adu-Poku
f11fac8134 multi: update stakebase tx vin[0] structure.
modifications to the stakebase tx vin[0] required adding a stakebase
field to Vin and VinPrevOut structs as well as updating the
rpc documentation for the affected calls.
2017-09-23 03:24:55 -05:00
Donald Adu-Poku
a70d73e1db docs: update git commit messages section heading. 2017-09-19 18:27:01 -05:00
Donald Adu-Poku
8a40fb5bbf docs: crosscheck and update all rpc doc entries.
The following updates were done throughout and were made to make important
information in the docs stand out at a glance:

- updates to requests info
- stylistic changes to displaying params
- returns and their types

The extended methods section was also removed (entries are now listed as
standard methods) since that section only applied to upstream. A doc entry for
loadtxfilter was also added.
2017-09-11 01:46:49 -05:00
Donald Adu-Poku
3b8f09f752 docs: create entry for getstakeversions in rpcapi 2017-08-31 00:00:44 -05:00
Donald Adu-Poku
9ad88e3436 docs: rpcapi format update.
the updated format is easier to edit
and maintains the tabular presentation
of the original
2017-08-18 13:54:58 -05:00
Donald Adu-Poku
8c5a4ff140 docs: add commit prefix notes 2017-08-04 03:00:35 -05:00
Dave Collins
c50d43e3cb
rpcserver: Improve help text for getmininginfo.
This improves the help text for stakedifficulty field of the
getmininginfo RPC to clarify it is the value for the next block.

Also, update the JSON-RPC docs entry to include the field which should
have been done previously.
2017-07-18 21:13:39 -05:00
Dave Collins
e2b74d501c
multi: Update markdown files for GFM changes.
The github markdown interpreter has been changed such that it no longer
allows spaces in between the brackets and parenthesis of links and now
requires a newline in between anchors and other formatting.  This
updates all of the markdown files accordingly.

While here, it also corrects a couple of inconsistencies in some of the
README.md files and correct some previous merge conflicts.
2017-07-16 15:33:12 -05:00
John C. Vernaleo
e7b128a672 multi: Update markdown in README files to match change in github parser.
This borrows a lot from btcsuite/btcd 9918e2a56196fb6b1b2837a9e7fb84f3454098fd
2017-05-26 12:06:19 -04:00
David Hill
f54151cf18 docs: update json examples 2017-05-17 22:47:29 -04:00
Javed Khan
25c93e46e6 connmgr: Refactor connection management into pkg
This commit introduces package connmgr which contains connection
management related functionality.

The following is an overview of the features the package provides:

- Maintain fixed number of outbound connections
- Optional connect-only mode
- Retry persistent connections with increasing back-off
- Source peers from DNS seeds
- Use Tor to resolve DNS
- Dynamic ban scores
- Test coverage

In addition, btcd has been refactored to make use of the new package by
extending the connection manager to work with the server to source and
maintain peer connections. The following is a broad overview of the
changes to integrate the package:

- Simplify peer state by removing pending, retry peers
- Refactor to remove retries which are now handled by connmgr
- Use callback to add addresses sourced from the  DNS seed

Finally the following connection-related things have been improved as a
part of this refactor:

- Fixes 100% cpu usage when network is down
- Fixes issues with max peers
- Simplify outbound peer connections management
2017-03-21 19:42:19 -05:00
Dave Collins
26b74c431c
docs: Add chainhash to README.md
Upstream commit 4a5223266c.
2016-11-18 13:07:59 -06:00