{"push_id":865741106,"size":16,"distinct_size":2,"ref":"refs/heads/database2","head":"54720315028db473a1c1f834766f04a978d392e9","before":"6767b42d4849dccb02b26ff1b122562055623172","commits":[{"sha":"3d6afcffe7b758fcb7f65e1ef593c9cbca50f7ab","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"Move non-mempool specific functions to new file.\n\nNo functional change. Add tests.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/3d6afcffe7b758fcb7f65e1ef593c9cbca50f7ab"},{"sha":"7811770d3119ea4007df3167348ad6790930dad5","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"Implement BIP0065 changeover logic for v4 blocks.\n\nThis commit implements the changeover logic for version 4 blocks as\ndescribed by BIP0065.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/7811770d3119ea4007df3167348ad6790930dad5"},{"sha":"489ba8d31d2c54ec2e1043396bc0e844c6253844","author":{"email":"0935ec5f9cfbf6c6fd9d8125cf83e60f7f3774c6@gmail.com","name":"Ben Echols"},"message":"Update minimum fee calculations to match Core.\n\nCalculate rate*fee first before dividing by 1000.\nAdd more unit tests around the fee calculations.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/489ba8d31d2c54ec2e1043396bc0e844c6253844"},{"sha":"4b7206b54fd3df7a9a254f22dec5c37ce72625c4","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"btcjson: Add optional locktime to createrawtransaction\n\nrpcserver:\nIf the locktime is given, the transaction inputs will be set to a\nnon-max value, activating the locktime.  The locktime for the\nnew transaction will be set to the given value.\n\nThis mimics Bitcoin Core commit 212bcca92089f406d9313dbe6d0e1d25143d61ff","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/4b7206b54fd3df7a9a254f22dec5c37ce72625c4"},{"sha":"912a8d8301b2854f2d97dda3b2e223c38043dc93","author":{"email":"baaad6f6c9f84b8fffb3351ecbf05366ee70aeb5@dirbaio.net","name":"Dario Nieuwenhuis"},"message":"Fix mempool transactions disappearing if a parent tx is confirmed.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/912a8d8301b2854f2d97dda3b2e223c38043dc93"},{"sha":"756f58b581fddb0bc30d72f4213f27c5482cda79","author":{"email":"effc0547ef5a706306658c248c1bb356b29eeaf2@riseup.net","name":"Justus Ranvier"},"message":"add installation instructions for Gentoo","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/756f58b581fddb0bc30d72f4213f27c5482cda79"},{"sha":"23bcb367b230e522b987ba9db5fb9bbcf15a58a3","author":{"email":"c3d3100ac1d259bc987fcc245095221cd7e91753@companyzero.com","name":"Josh Rickmar"},"message":"blockchain: Fix bogus error message.\n\nIn the presence of overflow, the actual output sum is still not\nnegative and should not be reported as so.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/23bcb367b230e522b987ba9db5fb9bbcf15a58a3"},{"sha":"aa0efa1f3ec03b8d0d77e3b1caf55dfb178dbf07","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"server: Allow IPv6 addresses with zone id.\n\nThis modifies the IP parsing code to work with IPv6 zone ids.  This is\nneeded since the net.ParseIP function does not allow zone ids even\nthough net.Listen does.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/aa0efa1f3ec03b8d0d77e3b1caf55dfb178dbf07"},{"sha":"cb71f278ec1e185408e72acd2ab8f9291ff3ca10","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"chaincfg: Move DNS Seeds to chaincfg.\n\nThis allows API users access to the DNS Seeds for use with SPV\nclients, seeders, etc.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/cb71f278ec1e185408e72acd2ab8f9291ff3ca10"},{"sha":"21d11e280987c93a1ad376ebecf0789c8c78783a","author":{"email":"35a94467dde03f02e373847106767df7d85180ad@gmail.com","name":"Javed Khan"},"message":"Fix failing test case because of wrong TimeOffset","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/21d11e280987c93a1ad376ebecf0789c8c78783a"},{"sha":"5016675d40c85e1db25fb54fe14c15d9681fd487","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"Move comment to where it belongs.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/5016675d40c85e1db25fb54fe14c15d9681fd487"},{"sha":"d765c73a419087c637ba03ff79d8d2f21040d70a","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"mempool: Remove returned error from ProcessOrphans\n\nProcessTransaction could have accepted a new transaction into mempool\nbut could have returned a reject message if a no-longer-orphan\ntransaction failed to be accepted.  This would also skip any\nadditional no-longer-orphans, keeping them in the orphan pool.\n\nInstead of returning an error incorrectly, log the error and skip\nthe no-longer-orphan transaction.  This allows the rest of the\nno-longer-orphans to be processed as well.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/d765c73a419087c637ba03ff79d8d2f21040d70a"},{"sha":"58e2762158fbd25134f715171287116167e974d6","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"mempool: Move checkTransactionStandard to policy.\n\nThis refactors the checkTransactionStandard function, along with related\nconstants, from the mempool to the policy.go file since it is strictly\nrelated to policy.\n\nIn addition, it adds tests for the function which cover all code paths.","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/58e2762158fbd25134f715171287116167e974d6"},{"sha":"365b1bd156bdb9e4972d155ae8c7f939cf786e18","author":{"email":"730dc73ed983ae2aadb8fa5ab00455602a5aab3d@mindcry.org","name":"David Hill"},"message":"mempool:  convert orphansByPrev from a list to a map.\n\nThis is more efficient and prevents duplicate entries which can\nlead to no-longer-orphans being attempted be added to the mempool\nmultiple times.\n\nBug found by me, debugged with @davecgh, and patch from @davecgh","distinct":false,"url":"https://api.github.com/repos/davecgh/btcd/commits/365b1bd156bdb9e4972d155ae8c7f939cf786e18"},{"sha":"713ec9dee0053d08e229f33aed5b2bfe725fe0cc","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":true,"url":"https://api.github.com/repos/davecgh/btcd/commits/713ec9dee0053d08e229f33aed5b2bfe725fe0cc"},{"sha":"54720315028db473a1c1f834766f04a978d392e9","author":{"email":"40f085f3e2c05dc127b0a330228985d077d6c8f7@conformal.com","name":"Dave Collins"},"message":"Implement database cache layer.\n\nThis commit adds a database cache layer to the ffldb database backend so\nthat callers can commit multiple transactions ithout having to incur the\noverhead of a disk sync on every new block.","distinct":true,"url":"https://api.github.com/repos/davecgh/btcd/commits/54720315028db473a1c1f834766f04a978d392e9"}]}