{"push_id":966703090,"size":12,"distinct_size":1,"ref":"refs/heads/doneChan","head":"b23379d52543447dc9625f375457256005c0fd7e","before":"31a25816c469e37be62eb52d91a365cb0384451f","commits":[{"sha":"407fcc2aafa96d2bbd06b1ad2345abd5353d2ec8","author":{"email":"0ab34d8e64464c3f5b3888c0b3ac990cf945f75c@gmail.com","name":"Jonathan Zeppettini"},"message":"Update LICENSE","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/407fcc2aafa96d2bbd06b1ad2345abd5353d2ec8"},{"sha":"e03fa30e8982a7abebee53d9c74a100ecb5e258f","author":{"email":"28d80ad2e2621c04cd5102e56db033164a0a10bc@gmail.com","name":"Jonathan Gillham"},"message":"peer: Simplify PushAddrMsg method loop.\n\nThis implementation ensures that all addresses have an equal chance of\nbeing included in the addr message. It also moves the pseudorandom number\ngenerator seeding to package level so that it can be overridden for\ntesting if required.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/e03fa30e8982a7abebee53d9c74a100ecb5e258f"},{"sha":"95361a2afcc69286024c0b0a1f696e45e102374a","author":{"email":"28d80ad2e2621c04cd5102e56db033164a0a10bc@gmail.com","name":"Jonathan Gillham"},"message":"wire: Minor code clean up.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/95361a2afcc69286024c0b0a1f696e45e102374a"},{"sha":"528ddaf23e0a68666a9992b81f978e49e2c61f5e","author":{"email":"1001b22c8e4adeb77ef10481ad06ff9c35006cb3@cShepherd.me","name":"Chris Shepherd"},"message":"txscript: Fix typo in README","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/528ddaf23e0a68666a9992b81f978e49e2c61f5e"},{"sha":"af3ed803f5d9bf5cb1d3570c75f29615357c6bec","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"database: Major redesign of database package.\n\nThis commit contains a complete redesign and rewrite of the database\npackage that approaches things in a vastly different manner than the\nprevious version.  This is the first part of several stages that will be\nneeded to ultimately make use of this new package.\n\nSome of the reason for this were discussed in #255, however a quick\nsummary is as follows:\n\n- The previous database could only contain blocks on the main chain and\n  reorgs required deleting the blocks from the database.  This made it\n  impossible to store orphans and could make external RPC calls for\n  information about blocks during the middle of a reorg fail.\n- The previous database interface forced a high level of bitcoin-specific\n  intelligence such as spend tracking into each backend driver.\n- The aforementioned point led to making it difficult to implement new\n  backend drivers due to the need to repeat a lot of non-trivial logic\n  which is better handled at a higher layer, such as the blockchain\n  package.\n- The old database stored all blocks in leveldb.  This made it extremely\n  inefficient to do things such as lookup headers and individual\n  transactions since the entire block had to be loaded from leveldb (which\n  entails it doing data copies) to get access.\n\nIn order to address all of these concerns, and others not mentioned, the\ndatabase interface has been redesigned as follows:\n\n- Two main categories of functionality are provided: block storage and\n  metadata storage\n- All block storage and metadata storage are done via read-only and\n  read-write MVCC transactions with both manual and managed modes\n  - Support for multiple concurrent readers and a single writer\n  - Readers use a snapshot and therefore are not blocked by the writer\n- Some key properties of the block storage and retrieval API:\n  - It is generic and does NOT contain additional bitcoin logic such spend\n    tracking and block linking\n  - Provides access to the raw serialized bytes so deserialization is not\n    forced for callers that don't need it\n  - Support for fetching headers via independent functions which allows\n    implementations to provide significant optimizations\n  - Ability to efficiently retrieve arbitrary regions of blocks\n    (transactions, scripts, etc)\n- A rich metadata storage API is provided:\n  - Key/value with arbitrary data\n  - Support for buckets and nested buckets\n  - Bucket iteration through a couple of different mechanisms\n  - Cursors for efficient and direct key seeking\n- Supports registration of backend database implementations\n- Comprehensive test coverage\n- Provides strong documentation with example usage\n\nThis commit also contains an implementation of the previously discussed\ninterface named ffldb (flat file plus leveldb metadata backend).  Here\nis a quick overview:\n\n- Highly optimized for read performance with consistent write performance\n  regardless of database size\n- All blocks are stored in flat files on the file system\n- Bulk block region fetching is optimized to perform linear reads which\n  improves performance on spindle disks\n- Anti-corruption mechanisms:\n  - Flat files contain full block checksums to quickly an easily detect\n    database corruption without needing to do expensive merkle root\n    calculations\n  - Metadata checksums\n  - Open reconciliation\n- Extensive test coverage:\n  - Comprehensive blackbox interface testing\n  - Whitebox testing which uses intimate knowledge to exercise uncommon\n    failure paths such as deleting files out from under the database\n  - Corruption tests (replacing random data in the files)\n\nIn addition, this commit also contains a new tool under the new database\ndirectory named dbtool which provides a few basic commands for testing the\ndatabase.  It is designed around commands, so it could be useful to expand\non in the future.\n\nFinally, this commit addresses the following issues:\n\n- Adds support for and therefore closes #255\n- Fixes #199\n- Fixes #201\n- Implements and closes #256\n- Obsoletes and closes #257\n- Closes #247 once the required chain and btcd modifications are in place\n  to make use of this new code","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/af3ed803f5d9bf5cb1d3570c75f29615357c6bec"},{"sha":"0b32febe5c83be9782671d5246f1a056255fc7ab","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"database: Implement cache layer.\n\nThis commit adds a database cache layer to the ffldb database backend so\nthat callers can commit multiple transactions without having to incur\nthe overhead of a disk sync on every new block.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/0b32febe5c83be9782671d5246f1a056255fc7ab"},{"sha":"3c2c85888846d405c189b6575a578ea9d8d072d8","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"btcjson: Specify constant size in tests.\n\nThis modifies the test for createrawtransaction to specify the constant\nsize passed as an int64.  This is necessary because the NewCmd function\naccepts the parameters as interfaces in order to support varargs and a\nraw numeric constant is treated as an integer.  Since the constant value\nis larger than an int32, this causes certain platforms like ARM which\ntreat a raw integer as a 32-bit integer to fail to compile.\n\nThis is work towards #600.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/3c2c85888846d405c189b6575a578ea9d8d072d8"},{"sha":"c7e6c1e88f74bb399233f573476d80e964165aee","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"txscript: Correct JSON float conversions in tests.\n\nThis modifies the conversion of the output index from the JSON-based\ntest data for valid and invalid transactions as well as the signature\nhash type for signature hash tests to first convert to a signed int and\nthen to an unsigned int.  This is necessary because the result of a\ndirect conversion of a float to an unsigned int is implementation\ndependent and doesn't result in the expected value on all platforms.\n\nAlso, while here, change the function names in the error prints to match\nthe actual names.\n\nFixes #600.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/c7e6c1e88f74bb399233f573476d80e964165aee"},{"sha":"16582789c31780d4d5a1b282c2dc6a52aedf41b8","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"rpcserver: Optimize filteraddr code.\n\nThis optimizes the filter address handling code in the RPC server\nhandleSearchRawTransasctions path in a few ways:\n\n- Only normalize the filter addresses provided in the command once\n  rather than for every transaction being returned\n- Reset the passes filter flag just before it's used\n- Use a local for the encoded address to avoid the bounds checking\n  overhead of accessing it from the slice\n- Avoiding subsequent map lookups once the filter has already passed\n\nAlso, while here, modify a few of the related comments to match code\nstyle and consistency.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/16582789c31780d4d5a1b282c2dc6a52aedf41b8"},{"sha":"383ed041ec5c4803581e5b6eafa231e62c78dda7","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"Use atomic operations instead of mutexes.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/383ed041ec5c4803581e5b6eafa231e62c78dda7"},{"sha":"ae00fff14ac58b189daa90b74029a1477249f258","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"wire: Implement sendheaders command (BIP0130)\n\nThis implements the wire protocol encoding portion of a new\nsendheaders message as described by BIP0130. It purpose is to request\nthat a peer sends header commands instead of inv commands when\nannouncing new blocks. This includes a protocol version bump to 70012\nand a wire version bump to 0.4.0.\n\nNote that this does not implement logic to handle the command in btcd,\nrather it only makes the command available at the wire protocol level.\nA future commit which honors the command and therefore provides full\nBIP0130 support is still required.","distinct":false,"url":"https://api.github.com/repos/dajohi/btcd/commits/ae00fff14ac58b189daa90b74029a1477249f258"},{"sha":"b23379d52543447dc9625f375457256005c0fd7e","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"peer: declare QueueMessage()'s doneChan as send only.\n\nThis ensures the channel passed to QueueMessage is writable and that\nQueueMessage will not read from the channel (write-only).\n\nThis change is merely a safety change.  If a user of the API passes\na read-only channel to QueueMessage, it will now be caught at compile\ntime instead of panicking during runtime.\n\nAlso update internal functions.","distinct":true,"url":"https://api.github.com/repos/dajohi/btcd/commits/b23379d52543447dc9625f375457256005c0fd7e"}]}