Commit Graph

37 Commits

Author SHA1 Message Date
Alex Yocom-Piatt
d4172fb0eb Bump for v1.1.2 2017-11-20 18:53:16 -06:00
Alex Yocom-Piatt
1500e972e2 Bump for v1.1.0 (#867) 2017-09-22 11:56:37 -05:00
David Hill
aa2b50714e Bump for v1.0.8 (#832) 2017-08-24 16:15:38 -05:00
David Hill
a8469025e4 Bump for v1.0.7 2017-08-15 14:47:48 -05:00
John C. Vernaleo
0d406ffde8 Bump for v1.0.5 2017-06-20 16:47:02 -04:00
John C. Vernaleo
b90ee0c98a Bump for v1.0.3 2017-06-07 13:45:19 -04:00
John C. Vernaleo
5bed758f85 Bump for v1.0.1 2017-04-28 11:22:19 -05:00
John C. Vernaleo
5c3e0d6454 Bump for v1.0.0
Remove beta label
2017-04-26 13:26:02 -05:00
John C. Vernaleo
f60aab08be Differentian dev and release in -V
By default, put 'dev' in the prerelease field.

For release builds we can add 'release' with the build scripts.

Update comment for current (post 1.5) usage on ldflags -X while there.
2017-02-20 09:24:36 -05:00
John C. Vernaleo
4af97d2d70 Bump for v0.8.2 2017-02-15 14:27:36 -05:00
John C. Vernaleo
71e3acce1e Bump for v0.8.0 2017-02-13 14:48:52 -05:00
John C. Vernaleo
a4de235531 Bump for v0.7.0 2016-12-23 17:05:03 -05:00
David Hill
b26ffbdb1b Bump to v0.6.1 (#492) 2016-11-25 21:34:20 -06:00
John C. Vernaleo
3000ee0e6b Bump for v0.6.0 2016-11-04 07:42:06 -04:00
John C. Vernaleo
af40801d40 Bump for v0.5.0 2016-10-04 12:16:42 -04:00
John C. Vernaleo
6c162def5f Bump for v0.4.0 (#336) 2016-09-01 13:30:12 -05:00
Dave Collins
b6d426241d blockchain: Rework to use new db interface.
This commit is the first stage of several that are planned to convert
the blockchain package into a concurrent safe package that will
ultimately allow support for multi-peer download and concurrent chain
processing.  The goal is to update btcd proper after each step so it can
take advantage of the enhancements as they are developed.

In addition to the aforementioned benefit, this staged approach has been
chosen since it is absolutely critical to maintain consensus.
Separating the changes into several stages makes it easier for reviewers
to logically follow what is happening and therefore helps prevent
consensus bugs.  Naturally there are significant automated tests to help
prevent consensus issues as well.

The main focus of this stage is to convert the blockchain package to use
the new database interface and implement the chain-related functionality
which it no longer handles.  It also aims to improve efficiency in
various areas by making use of the new database and chain capabilities.

The following is an overview of the chain changes:

- Update to use the new database interface
- Add chain-related functionality that the old database used to handle
  - Main chain structure and state
  - Transaction spend tracking
- Implement a new pruned unspent transaction output (utxo) set
  - Provides efficient direct access to the unspent transaction outputs
  - Uses a domain specific compression algorithm that understands the
    standard transaction scripts in order to significantly compress them
  - Removes reliance on the transaction index and paves the way toward
    eventually enabling block pruning
- Modify the New function to accept a Config struct instead of
  inidividual parameters
- Replace the old TxStore type with a new UtxoViewpoint type that makes
  use of the new pruned utxo set
- Convert code to treat the new UtxoViewpoint as a rolling view that is
  used between connects and disconnects to improve efficiency
- Make best chain state always set when the chain instance is created
  - Remove now unnecessary logic for dealing with unset best state
- Make all exported functions concurrent safe
  - Currently using a single chain state lock as it provides a straight
    forward and easy to review path forward however this can be improved
    with more fine grained locking
- Optimize various cases where full blocks were being loaded when only
  the header is needed to help reduce the I/O load
- Add the ability for callers to get a snapshot of the current best
  chain stats in a concurrent safe fashion
  - Does not block callers while new blocks are being processed
- Make error messages that reference transaction outputs consistently
  use <transaction hash>:<output index>
- Introduce a new AssertError type an convert internal consistency
  checks to use it
- Update tests and examples to reflect the changes
- Add a full suite of tests to ensure correct functionality of the new
  code

The following is an overview of the btcd changes:

- Update to use the new database and chain interfaces
- Temporarily remove all code related to the transaction index
- Temporarily remove all code related to the address index
- Convert all code that uses transaction stores to use the new utxo
  view
- Rework several calls that required the block manager for safe
  concurrency to use the chain package directly now that it is
  concurrent safe
- Change all calls to obtain the best hash to use the new best state
  snapshot capability from the chain package
- Remove workaround for limits on fetching height ranges since the new
  database interface no longer imposes them
- Correct the gettxout RPC handler to return the best chain hash as
  opposed the hash the txout was found in
- Optimize various RPC handlers:
  - Change several of the RPC handlers to use the new chain snapshot
    capability to avoid needlessly loading data
  - Update several handlers to use new functionality to avoid accessing
    the block manager so they are able to return the data without
    blocking when the server is busy processing blocks
  - Update non-verbose getblock to avoid deserialization and
    serialization overhead
  - Update getblockheader to request the block height directly from
    chain and only load the header
  - Update getdifficulty to use the new cached data from chain
  - Update getmininginfo to use the new cached data from chain
  - Update non-verbose getrawtransaction to avoid deserialization and
    serialization overhead
  - Update gettxout to use the new utxo store versus loading
    full transactions using the transaction index

The following is an overview of the utility changes:
- Update addblock to use the new database and chain interfaces
- Update findcheckpoint to use the new database and chain interfaces
- Remove the dropafter utility which is no longer supported

NOTE: The transaction index and address index will be reimplemented in
another commit.
2016-08-18 15:42:18 -04:00
John C. Vernaleo
864b4d34b9 Bump for v0.3.0 2016-08-10 15:11:49 -04:00
John C. Vernaleo
7716a500fd Bump version to v0.2.0 2016-07-22 11:22:12 -04:00
John C. Vernaleo
927932170b Bump for v0.1.6 2016-06-13 16:23:39 -04:00
John C. Vernaleo
b869593789 Bump for v0.1.5 2016-06-06 14:34:47 -04:00
John C. Vernaleo
f3e603aac0 Bump for v0.1.4 2016-05-25 12:05:45 -04:00
John C. Vernaleo
2aec09354a Bump for v0.1.3 2016-05-10 08:49:02 -04:00
John C. Vernaleo
f93cb9fd9f Bump for v0.1.2 2016-05-03 14:48:42 -04:00
John C. Vernaleo
4f8ad739a2 Bump for v0.1.1 2016-04-25 13:03:36 -04:00
John C. Vernaleo
a33985293b Bump for v0.1.0 (#123) 2016-04-18 16:33:44 -04:00
John C. Vernaleo
1517aaad07 Bump for v0.0.10 2016-04-05 15:47:29 -04:00
John C. Vernaleo
0ed0e815b0 Bump to v0.0.9 for release. 2016-04-01 12:56:01 -04:00
John C. Vernaleo
967952c7cb Bump for 0.0.8 2016-03-18 14:26:05 -04:00
cjepson
f2cc01cef2 Bump version for release 2016-03-09 12:11:35 -05:00
Alex Yocom-Piatt
7e2c687295 Fix build/test errors from merge 2016-03-07 11:42:51 -06:00
Alex Yocom-Piatt
5b2b97e858 Sync to upstream 0280fa0264
Conflicts:
	blockchain/chain.go
	blockchain/checkpoints.go
	blockchain/difficulty.go
	blockchain/internal_test.go
	blockchain/txlookup.go
	blockchain/validate.go
	blockchain/validate_test.go
	blockmanager.go
	chaincfg/params.go
	cmd/dropafter/dropafter.go
	cpuminer.go
	database/db.go
	database/interface_test.go
	database/ldb/block.go
	database/ldb/insertremove_test.go
	database/ldb/leveldb.go
	database/ldb/operational_test.go
	database/ldb/tx.go
	database/memdb/memdb.go
	database/reorg_test.go
	dcrjson/walletsvrcmds.go
	docs/README.md
	docs/json_rpc_api.md
	mempool.go
	mining.go
	peer.go
	rpcserver.go
	rpcserverhelp.go
	rpcwebsocket.go
	sample-dcrd.conf
	txscript/consensus.go
	txscript/script_test.go
	txscript/sign.go
	txscript/standard.go
	wire/blockheader_test.go
	wire/msgtx_test.go
2016-03-07 11:35:24 -06:00
John C. Vernaleo
8f0d8f2d85 Update to 0.0.6 for new release. 2016-03-04 13:17:22 -05:00
John C. Vernaleo
fbede49780 Update to 0.0.5 for new release 2016-02-26 11:14:23 -05:00
John C. Vernaleo
26fdbd149a Catch up dcrctl version too. 2016-02-25 15:20:30 -05:00
Frank Braun
1b42b8704c Bring version in sync with dcrd. 2016-02-12 15:22:40 -05:00
John C. Vernaleo
5076a00512 Initial Decred Commit.
Includes work by cjepson, ay-p, jolan, and jcv.

Initial conceptual framework by tacotime.
2016-02-07 14:00:12 -05:00