Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: b4ebd0057bfaf02fe74ee9a892a71fe21548e6ff
      
https://github.com/btcsuite/btcd/commit/b4ebd0057bfaf02fe74ee9a892a71fe21548e6ff
  Author: Dave Collins <[email protected]>
  Date:   2013-05-08 (Wed, 08 May 2013)

  Changed paths:
    A .gitignore
    A README.md

  Log Message:
  -----------
  Initial commit.


  Commit: 69b27dd5d3effb7229e9cc759e87ec9836ce3942
      
https://github.com/btcsuite/btcd/commit/69b27dd5d3effb7229e9cc759e87ec9836ce3942
  Author: Dave Collins <[email protected]>
  Date:   2013-05-08 (Wed, 08 May 2013)

  Changed paths:
    A LICENSE
    M README.md
    A blockheader.go
    A blockheader_test.go
    A common.go
    A common_test.go
    A cov_report.sh
    A doc.go
    A fakeconn_test.go
    A fakemessage_test.go
    A fixedIO_test.go
    A genesis.go
    A genesis_test.go
    A internal_test.go
    A invvect.go
    A invvect_test.go
    A message.go
    A message_test.go
    A msgaddr.go
    A msgaddr_test.go
    A msgalert.go
    A msgalert_test.go
    A msgblock.go
    A msgblock_test.go
    A msggetaddr.go
    A msggetaddr_test.go
    A msggetblocks.go
    A msggetblocks_test.go
    A msggetdata.go
    A msggetdata_test.go
    A msggetheaders.go
    A msggetheaders_test.go
    A msgheaders.go
    A msgheaders_test.go
    A msginv.go
    A msginv_test.go
    A msgmempool.go
    A msgmempool_test.go
    A msgnotfound.go
    A msgnotfound_test.go
    A msgping.go
    A msgping_test.go
    A msgpong.go
    A msgpong_test.go
    A msgtx.go
    A msgtx_test.go
    A msgverack.go
    A msgverack_test.go
    A msgversion.go
    A msgversion_test.go
    A netaddress.go
    A netaddress_test.go
    A protocol.go
    A protocol_test.go
    A shahash.go
    A shahash_test.go
    A test_coverage.txt

  Log Message:
  -----------
  Initial implementation.


  Commit: ff7d582c66340b1872efc8882e8eeabd893ff1d1
      
https://github.com/btcsuite/btcd/commit/ff7d582c66340b1872efc8882e8eeabd893ff1d1
  Author: Dave Collins <[email protected]>
  Date:   2013-05-08 (Wed, 08 May 2013)

  Changed paths:
    M msgheaders_test.go

  Log Message:
  -----------
  Remove a few unused variables and constants.


  Commit: e473fd6eb8b63eb26c64ab86218d3cab028ecdb4
      
https://github.com/btcsuite/btcd/commit/e473fd6eb8b63eb26c64ab86218d3cab028ecdb4
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M message.go
    M message_test.go

  Log Message:
  -----------
  Add message tests for MsgAlert and MsgMemPool.


  Commit: bf5c0b58d8e21a3800cdcaed404533f64a6b7ea9
      
https://github.com/btcsuite/btcd/commit/bf5c0b58d8e21a3800cdcaed404533f64a6b7ea9
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M blockheader.go
    M common_test.go
    M msgblock.go

  Log Message:
  -----------
  Fix a few comment typos.


  Commit: 5e416389b1559751627c65e7c2b3ef9b054ce7be
      
https://github.com/btcsuite/btcd/commit/5e416389b1559751627c65e7c2b3ef9b054ce7be
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M msgping_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgPing.

This commit add tests the error paths when encoding and decoding MsgPing.


  Commit: 3cd90355dff06171a1a261f03078c2512f21dd98
      
https://github.com/btcsuite/btcd/commit/3cd90355dff06171a1a261f03078c2512f21dd98
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M common_test.go

  Log Message:
  -----------
  Correct error output string colon placement.


  Commit: c369c0c16e1c6fe21dcd7557e9d18ec68ce1d3f4
      
https://github.com/btcsuite/btcd/commit/c369c0c16e1c6fe21dcd7557e9d18ec68ce1d3f4
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M message.go

  Log Message:
  -----------
  Correct discardInput comment for buffer size.

This was pointed out by kaptin on IRC.


  Commit: cdc17121b8df7a6eefed798a2c71a35e8580bc1f
      
https://github.com/btcsuite/btcd/commit/cdc17121b8df7a6eefed798a2c71a35e8580bc1f
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M cov_report.sh

  Log Message:
  -----------
  Display correct import path for gocov.

This was pointed out by kaptin on IRC.


  Commit: 4fc0089f63c464ea73291027d03f3c68ac554ea6
      
https://github.com/btcsuite/btcd/commit/4fc0089f63c464ea73291027d03f3c68ac554ea6
  Author: Matthew Dempsky <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M msgping.go

  Log Message:
  -----------
  Fix typo: s/MsgPong/MsgPing/


  Commit: 4c160efc9699bda6172d5772c90c1664cf4b93d2
      
https://github.com/btcsuite/btcd/commit/4c160efc9699bda6172d5772c90c1664cf4b93d2
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M doc.go

  Log Message:
  -----------
  Fix a minor typo in the package overview doco.


  Commit: 970b9c129d932a24be2691d993ab2c655c72dfc7
      
https://github.com/btcsuite/btcd/commit/970b9c129d932a24be2691d993ab2c655c72dfc7
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M message.go

  Log Message:
  -----------
  Remove dead error check.

The io.ReadFull function always returns an error if the full payload can't
be read, so there is no reason to further check if the payload length
matches after a successful read.


  Commit: d829f688b984b6bc6ddb2b1c17eb7e8c9be5172d
      
https://github.com/btcsuite/btcd/commit/d829f688b984b6bc6ddb2b1c17eb7e8c9be5172d
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M shahash.go

  Log Message:
  -----------
  Fix comment typo.


  Commit: 6286a39378e91ec8c92aeb44cb89985e548be640
      
https://github.com/btcsuite/btcd/commit/6286a39378e91ec8c92aeb44cb89985e548be640
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M internal_test.go
    M message.go
    M test_coverage.txt

  Log Message:
  -----------
  Combine readMessage with ReadMessage.

These functions used to be split into multiple files, but since the code
was reorganized there is no longer any reason to split them.


  Commit: ec6ebb391610a84c3fedc23d57e63acc827d9e68
      
https://github.com/btcsuite/btcd/commit/ec6ebb391610a84c3fedc23d57e63acc827d9e68
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M doc.go
    A error.go
    M message.go

  Log Message:
  -----------
  Add initial implementation of MessageError type.

This commit adds a new MessageError type that is intended to allow the
caller to differentiate between general io errors and and errors that
resulted from malformed messages.


  Commit: aa4086a1b12fa9fc7a3b5a0e2769a7713602ebeb
      
https://github.com/btcsuite/btcd/commit/aa4086a1b12fa9fc7a3b5a0e2769a7713602ebeb
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M test_coverage.txt

  Log Message:
  -----------
  Update test coverage report.


  Commit: 149d77ad3fc92a96f6991354c0514ca72aaca5c0
      
https://github.com/btcsuite/btcd/commit/149d77ad3fc92a96f6991354c0514ca72aaca5c0
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M internal_test.go
    M message_test.go

  Log Message:
  -----------
  Add negative tests for ReadMessage.

This commit adds tests for the error paths when reading the initial
message header and message payload from the wire.


  Commit: e7abb08b6bfbc309ff59b39575d16b752e1d75ed
      
https://github.com/btcsuite/btcd/commit/e7abb08b6bfbc309ff59b39575d16b752e1d75ed
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Fix a comment typo.


  Commit: f182e4f3238a9acdcc5f9639fa961fa9544b87d8
      
https://github.com/btcsuite/btcd/commit/f182e4f3238a9acdcc5f9639fa961fa9544b87d8
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M msgping_test.go

  Log Message:
  -----------
  Correct error output colon string placement.


  Commit: 2aee754448efbd583905aff39dedc5e4d1f1a323
      
https://github.com/btcsuite/btcd/commit/2aee754448efbd583905aff39dedc5e4d1f1a323
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M message.go
    M message_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add test for discarding invalid large messages.


  Commit: 4aea957b19571ed30f104d1b5abc7acd76b14af5
      
https://github.com/btcsuite/btcd/commit/4aea957b19571ed30f104d1b5abc7acd76b14af5
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M netaddress_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for NetAddress.

This commit adds tests for the error paths when encoding and
decoding NetAddress with and without the timestamp field.


  Commit: 135552cd728c4c49d7e32f6c78201b91448c5a13
      
https://github.com/btcsuite/btcd/commit/135552cd728c4c49d7e32f6c78201b91448c5a13
  Author: Dave Collins <[email protected]>
  Date:   2013-05-09 (Thu, 09 May 2013)

  Changed paths:
    M msgblock_test.go

  Log Message:
  -----------
  Improve MsgBlock tests.

This commit corrects the tests so that the main API functions are tested
against the latest protocol version, but the TxSha and BlockSha functions
are run against the specific protocol version used to encode the test
data.  This will help future proof the tests against protocol changes.


  Commit: e026f5048635129e92e3ae7cba0e7e389a9c7b55
      
https://github.com/btcsuite/btcd/commit/e026f5048635129e92e3ae7cba0e7e389a9c7b55
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msggetblocks_test.go

  Log Message:
  -----------
  Improve MsgGetBlocks tests.

This commit corrects the MsgGetBlocks tests so that the protocol version
in the multiLocators data matches the wire encoded test data.  This will
help future proof the tests against protocol changes.  Also, while here
modify the casing of the local vars to be consistent.


  Commit: 862374115fc700dba6399658c0e20185e127cf71
      
https://github.com/btcsuite/btcd/commit/862374115fc700dba6399658c0e20185e127cf71
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M protocol.go

  Log Message:
  -----------
  Bump the protocol version to 70001.

As documented in the package overview, this package does not yet support
BIP0037 which was the reason for this bump.


  Commit: 953a236e2a2951ea6603da9dc4afabcc32abd38e
      
https://github.com/btcsuite/btcd/commit/953a236e2a2951ea6603da9dc4afabcc32abd38e
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgblock_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgBlock.

This commit adds tests for the error paths when encoded and decoding
MsgBlock.


  Commit: 036f14ff4971831ef4d8dc76e1685408dc3551f6
      
https://github.com/btcsuite/btcd/commit/036f14ff4971831ef4d8dc76e1685408dc3551f6
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msginv.go

  Log Message:
  -----------
  Convert MsgInv errors to new MessageError type.


  Commit: 59d64ee07625f180a14af21f6d8f4e4da4d8eefa
      
https://github.com/btcsuite/btcd/commit/59d64ee07625f180a14af21f6d8f4e4da4d8eefa
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msginv_test.go

  Log Message:
  -----------
  Add negative tests for MsgInv.

This commit adds tests for the error paths when encoded and decoding
MsgInv.


  Commit: 72fa9f4b7b4b86bc8e04416b0b5490414f969ad4
      
https://github.com/btcsuite/btcd/commit/72fa9f4b7b4b86bc8e04416b0b5490414f969ad4
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M test_coverage.txt

  Log Message:
  -----------
  Update test coverage report.


  Commit: 29cd3a724668cd1e10d781b333e5b65ef3f816bd
      
https://github.com/btcsuite/btcd/commit/29cd3a724668cd1e10d781b333e5b65ef3f816bd
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M cov_report.sh

  Log Message:
  -----------
  Fix comment typo in test coverage report script.


  Commit: d33fdb2c3ce62f1e253feec35ce8b6f582ba37a8
      
https://github.com/btcsuite/btcd/commit/d33fdb2c3ce62f1e253feec35ce8b6f582ba37a8
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Add additional doco on how btcwire relates to btcd.


  Commit: e41a3bcaf34234b8d55fd8ceca29d9138268063f
      
https://github.com/btcsuite/btcd/commit/e41a3bcaf34234b8d55fd8ceca29d9138268063f
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msginv.go

  Log Message:
  -----------
  Correct a couple of func prefixes in err messages.


  Commit: 9b798b6306aacb1099fd9f629f3eb3d3fe70b850
      
https://github.com/btcsuite/btcd/commit/9b798b6306aacb1099fd9f629f3eb3d3fe70b850
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgnotfound.go

  Log Message:
  -----------
  Convert MsgNotFound errors to MessageError type.


  Commit: 0c65e7da892ccb54b0ca9f58e49bb6cc7236d0c4
      
https://github.com/btcsuite/btcd/commit/0c65e7da892ccb54b0ca9f58e49bb6cc7236d0c4
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgnotfound_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgNotFound.

This commit adds tests for the error paths when encoded and decoding
MsgNotFound.


  Commit: 7c3129bf8938d62e87f61c9298624bb750d6d176
      
https://github.com/btcsuite/btcd/commit/7c3129bf8938d62e87f61c9298624bb750d6d176
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msggetdata.go

  Log Message:
  -----------
  Convert MsgGetData errors to MessageError type.


  Commit: 2665b4358ec5b924e25689a925b0d15b4d3c43c7
      
https://github.com/btcsuite/btcd/commit/2665b4358ec5b924e25689a925b0d15b4d3c43c7
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msggetdata_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgGetData.

This commit adds tests for the error paths when encoded and decoding
MsgGetData.


  Commit: 72348986c9011e6955a9ef253cbd099188093a5f
      
https://github.com/btcsuite/btcd/commit/72348986c9011e6955a9ef253cbd099188093a5f
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msggetdata.go

  Log Message:
  -----------
  Correct func prefix in GetData error message.


  Commit: 1f72b408234d47f3ebdcfc116c9791bd79ef133b
      
https://github.com/btcsuite/btcd/commit/1f72b408234d47f3ebdcfc116c9791bd79ef133b
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgaddr.go

  Log Message:
  -----------
  Convert MsgAddr errors to MessageError type.


  Commit: e699ca0bef5b9ec3d249cdc4033bd2602a10d712
      
https://github.com/btcsuite/btcd/commit/e699ca0bef5b9ec3d249cdc4033bd2602a10d712
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msggetdata_test.go

  Log Message:
  -----------
  Cleanup a few comments.


  Commit: cfb17f7da4db4cb4c766b037d53617aa38d773d6
      
https://github.com/btcsuite/btcd/commit/cfb17f7da4db4cb4c766b037d53617aa38d773d6
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M cov_report.sh

  Log Message:
  -----------
  Update gocov path in comments to correct path.


  Commit: 1220e72f35ad5e18a1b6e2b1a013f034d3275ef6
      
https://github.com/btcsuite/btcd/commit/1220e72f35ad5e18a1b6e2b1a013f034d3275ef6
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgaddr_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgAddr.

This commit adds tests for the error paths when encoded and decoding
MsgAddr.


  Commit: cbb28edb30f361f6e56213b8b4adae1142c2c56a
      
https://github.com/btcsuite/btcd/commit/cbb28edb30f361f6e56213b8b4adae1142c2c56a
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgpong.go

  Log Message:
  -----------
  Convert MsgPong errors to MessageError type.


  Commit: 88e1d7634fd0b4e7979d7b6feafa11f63e029009
      
https://github.com/btcsuite/btcd/commit/88e1d7634fd0b4e7979d7b6feafa11f63e029009
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgpong_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgPong.

This commit adds tests for the error paths when encoded and decoding
MsgPong.


  Commit: 40a9a90e4b30a48f599f1fd0b0fea798ae0a7529
      
https://github.com/btcsuite/btcd/commit/40a9a90e4b30a48f599f1fd0b0fea798ae0a7529
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgheaders.go

  Log Message:
  -----------
  Convert MsgHeaders errors to MessageError type.


  Commit: 95aa4a7da8d066c6b36cc32d8e45f099a717d0ac
      
https://github.com/btcsuite/btcd/commit/95aa4a7da8d066c6b36cc32d8e45f099a717d0ac
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msgheaders_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgHeaders.

This commit adds tests for the error paths when encoded and decoding
MsgHeaders.


  Commit: 9bd97a59723931f34ba2171634050f1f941b95f1
      
https://github.com/btcsuite/btcd/commit/9bd97a59723931f34ba2171634050f1f941b95f1
  Author: Dave Collins <[email protected]>
  Date:   2013-05-10 (Fri, 10 May 2013)

  Changed paths:
    M msggetheaders.go

  Log Message:
  -----------
  Convert MsgGetHeaders errors to MessageError type.


  Commit: bd1dcf8a0c92b0d6fdf90bf5eac31b2f5cb37c44
      
https://github.com/btcsuite/btcd/commit/bd1dcf8a0c92b0d6fdf90bf5eac31b2f5cb37c44
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M msggetblocks.go

  Log Message:
  -----------
  Convert MsgGetBlocks errors to MessageError type.


  Commit: f6cdbd430e1c3f0e2c7d5ca023666a8fdb425f2d
      
https://github.com/btcsuite/btcd/commit/f6cdbd430e1c3f0e2c7d5ca023666a8fdb425f2d
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M msgmempool.go

  Log Message:
  -----------
  Convert MsgMemPool errors to MessageError type.


  Commit: cbcbe5eb43793e2b8207c0587acb0b6a23da9ba0
      
https://github.com/btcsuite/btcd/commit/cbcbe5eb43793e2b8207c0587acb0b6a23da9ba0
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M msgversion.go

  Log Message:
  -----------
  Convert MsgVersion errors to MessageError type.


  Commit: 20bebc13a5d2c14266cc80d2bac646475ca4b5e8
      
https://github.com/btcsuite/btcd/commit/20bebc13a5d2c14266cc80d2bac646475ca4b5e8
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M message.go

  Log Message:
  -----------
  Convert WriteMessage errors to MessgeError type.


  Commit: 2a2745d0d3acf1ae6c2ecbcac2e21b02f55ae50f
      
https://github.com/btcsuite/btcd/commit/2a2745d0d3acf1ae6c2ecbcac2e21b02f55ae50f
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M msggetheaders_test.go

  Log Message:
  -----------
  Add negative tests for MsgGetHeaders.

This commit adds tests for the error paths when encoded and decoding
MsgHeaders.   Also, while here modify the casing of the local vars to be
consistent.


  Commit: 61b86b1bb582dfb9bea2cf331a960240f253db13
      
https://github.com/btcsuite/btcd/commit/61b86b1bb582dfb9bea2cf331a960240f253db13
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M msggetblocks_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgGetBlocks.

This commit adds tests for the error paths when encoded and decoding
MsgGetBlocks.


  Commit: 3d303feefba1839c8665fedc32570286a819c0d7
      
https://github.com/btcsuite/btcd/commit/3d303feefba1839c8665fedc32570286a819c0d7
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M shahash_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative test for NewShaHash.

This commit adds a test to ensure NewShaHash fails as expected when the
passed buffer has too many bytes to be a valid sha hash.


  Commit: 93070ef9605721034006485e5bc66868437ec2d6
      
https://github.com/btcsuite/btcd/commit/93070ef9605721034006485e5bc66868437ec2d6
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M msgalert_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgAlert.

This commit adds tests for the error paths when encoding and decoding
MsgAlert.


  Commit: 7385f6ff24af8215bd058f99e9852935b5d2c9e4
      
https://github.com/btcsuite/btcd/commit/7385f6ff24af8215bd058f99e9852935b5d2c9e4
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M msgaddr_test.go
    M msggetblocks_test.go
    M msggetdata_test.go
    M msggetheaders_test.go
    M msgheaders_test.go
    M msginv_test.go
    M msgnotfound_test.go
    M msgpong_test.go

  Log Message:
  -----------
  Correct several test error messages.


  Commit: 0400d0cec317824cd9bbaa85c7de75d1c82a0127
      
https://github.com/btcsuite/btcd/commit/0400d0cec317824cd9bbaa85c7de75d1c82a0127
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M message.go

  Log Message:
  -----------
  Remove dead error check in WriteMessage.

The io.Writer.Write function always returns an error if the bytes written
is less than provided, so there is no reason to further check if the
payload length matches after a successful write.


  Commit: c9d2dfea3d509418a16fe1515c7960158a6d3260
      
https://github.com/btcsuite/btcd/commit/c9d2dfea3d509418a16fe1515c7960158a6d3260
  Author: Dave Collins <[email protected]>
  Date:   2013-05-11 (Sat, 11 May 2013)

  Changed paths:
    M fakemessage_test.go
    M message_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for WriteMessage.

This commit adds tests for the error paths when writing a message
to the wire.


  Commit: 4e16030fe8cf66fbecd63da45ef81058fd35f9df
      
https://github.com/btcsuite/btcd/commit/4e16030fe8cf66fbecd63da45ef81058fd35f9df
  Author: Dave Collins <[email protected]>
  Date:   2013-05-12 (Sun, 12 May 2013)

  Changed paths:
    M msgblock_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add tests for MsgBlock transaction location decode.


  Commit: 0e033023bf585394209234b5af6dbce3efc586cf
      
https://github.com/btcsuite/btcd/commit/0e033023bf585394209234b5af6dbce3efc586cf
  Author: Dave Collins <[email protected]>
  Date:   2013-05-12 (Sun, 12 May 2013)

  Changed paths:
    M msgblock_test.go

  Log Message:
  -----------
  Improve MsgBlock negative tests.

Rather than decoding from a zero-filled buffer, use valid block encoded
test data.


  Commit: 1ca8015ea0e639b78c9ad55b63047e47e228b447
      
https://github.com/btcsuite/btcd/commit/1ca8015ea0e639b78c9ad55b63047e47e228b447
  Author: Dave Collins <[email protected]>
  Date:   2013-05-12 (Sun, 12 May 2013)

  Changed paths:
    M msgblock_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgBlock tx location decode.

This commit adds tests for the error paths when decoding MsgBlock via the
transaction location decode variant.


  Commit: 1bab947596206109cbe2411af4145de95cf31081
      
https://github.com/btcsuite/btcd/commit/1bab947596206109cbe2411af4145de95cf31081
  Author: Dave Collins <[email protected]>
  Date:   2013-05-12 (Sun, 12 May 2013)

  Changed paths:
    M blockheader.go
    M msgblock.go
    M msgtx.go
    M test_coverage.txt

  Log Message:
  -----------
  Remove a few dead error checks.

The functions for generating transaction and block hashes contained a few
error checks for conditions which could never fail without run-time
panics.  This commit removes those superfluous checks and adds explanatory
comments.


  Commit: 3aef93f442c9f4d6d5fc5b78336d49f76823e31d
      
https://github.com/btcsuite/btcd/commit/3aef93f442c9f4d6d5fc5b78336d49f76823e31d
  Author: Dave Collins <[email protected]>
  Date:   2013-05-12 (Sun, 12 May 2013)

  Changed paths:
    M msgversion_test.go

  Log Message:
  -----------
  Make MsgVersion test data available to all funcs.

Rather than having to repeat the same data for positive and negative
tests, make the same test data available to both.


  Commit: f9b6375d5be12b0eabbd21c061edc824affc3d20
      
https://github.com/btcsuite/btcd/commit/f9b6375d5be12b0eabbd21c061edc824affc3d20
  Author: Dave Collins <[email protected]>
  Date:   2013-05-12 (Sun, 12 May 2013)

  Changed paths:
    M msgversion_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgVersion.

This commit adds tests for the error paths when encoding and decoding
MsgVersion.


  Commit: 6f511eb75d9635d9dca34787899adab137fccc0a
      
https://github.com/btcsuite/btcd/commit/6f511eb75d9635d9dca34787899adab137fccc0a
  Author: Dave Collins <[email protected]>
  Date:   2013-05-13 (Mon, 13 May 2013)

  Changed paths:
    M msgtx_test.go

  Log Message:
  -----------
  Make MsgTx test data available to all funcs.

Rather than having to repeat the same data for positive and negative
tests, make the same test data available to both.


  Commit: 5b78dee7e1aa11199fdd56a5621692c847c0de97
      
https://github.com/btcsuite/btcd/commit/5b78dee7e1aa11199fdd56a5621692c847c0de97
  Author: Dave Collins <[email protected]>
  Date:   2013-05-13 (Mon, 13 May 2013)

  Changed paths:
    M msgtx_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for MsgTx.

This commit adds tests for the error paths when encoding and decoding
MsgTx.  This commit also achieves 100% test coverage.


  Commit: a3226897f09aa3ffe5e43c123054f67f4e5109dc
      
https://github.com/btcsuite/btcd/commit/a3226897f09aa3ffe5e43c123054f67f4e5109dc
  Author: Dave Collins <[email protected]>
  Date:   2013-05-13 (Mon, 13 May 2013)

  Changed paths:
    M doc.go

  Log Message:
  -----------
  Update package overview Errors section.

Now that all errors are either underlying IO errors or of type
MessageError, update the package overview documentation accordingly.


  Commit: f8553b4a578d34f98ed837da8d100c5cba52f0e8
      
https://github.com/btcsuite/btcd/commit/f8553b4a578d34f98ed837da8d100c5cba52f0e8
  Author: Dave Collins <[email protected]>
  Date:   2013-05-13 (Mon, 13 May 2013)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Remove test coverage TODO since it's now 100%.


  Commit: c164de16927926e04383d7f2eb56e4ebc539fa4c
      
https://github.com/btcsuite/btcd/commit/c164de16927926e04383d7f2eb56e4ebc539fa4c
  Author: Dave Collins <[email protected]>
  Date:   2013-05-15 (Wed, 15 May 2013)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Fix version typos in README.


  Commit: d8007e938728a5e33a1871ef36dbe221726caaf2
      
https://github.com/btcsuite/btcd/commit/d8007e938728a5e33a1871ef36dbe221726caaf2
  Author: Dave Collins <[email protected]>
  Date:   2013-05-15 (Wed, 15 May 2013)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Update README to reflect 100% test coverage.


  Commit: 14a1da417fff2540f5b8df781df04526af6e208b
      
https://github.com/btcsuite/btcd/commit/14a1da417fff2540f5b8df781df04526af6e208b
  Author: Dave Collins <[email protected]>
  Date:   2013-05-16 (Thu, 16 May 2013)

  Changed paths:
    M fakemessage_test.go
    M message.go
    M message_test.go
    M msgblock.go
    M msgblock_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Enforce max block payload size of 1MB.

This commit changes MsgBlock to enforce a 1MB max payload per the spec.
Previously it was only limited to the max overall message size.  While
here, also enforce max payloads per message type (instead of only the max
overall message payload) when writing messages.


  Commit: 7630a957246e49184ff28d6c906676480132e45d
      
https://github.com/btcsuite/btcd/commit/7630a957246e49184ff28d6c906676480132e45d
  Author: mischief <[email protected]>
  Date:   2013-05-29 (Wed, 29 May 2013)

  Changed paths:
    M shahash.go

  Log Message:
  -----------
  fix Stringer interface for ShaHash.

http://golang.org/ref/spec#Method_sets for why this is necessary


  Commit: d54fba85b473b57d1805c82a400ed531e482f3a9
      
https://github.com/btcsuite/btcd/commit/d54fba85b473b57d1805c82a400ed531e482f3a9
  Author: Dave Collins <[email protected]>
  Date:   2013-06-20 (Thu, 20 Jun 2013)

  Changed paths:
    M msgblock.go

  Log Message:
  -----------
  Export the MaxBlockPayload constant.

Although you can technically get at this value via the MaxPayloadLength
function on a block, it is less overhead for any consumers that need to
know the value to simply export it directly.


  Commit: 65eae1828559d8f93b86b4dae06fa39765b9c997
      
https://github.com/btcsuite/btcd/commit/65eae1828559d8f93b86b4dae06fa39765b9c997
  Author: Dave Collins <[email protected]>
  Date:   2013-07-24 (Wed, 24 Jul 2013)

  Changed paths:
    M common_test.go
    M msggetheaders_test.go
    M msgnotfound_test.go

  Log Message:
  -----------
  Remove a couple of incorrect comments.


  Commit: a90a8bf341a0615d6ad9393e399168285aaaf3c4
      
https://github.com/btcsuite/btcd/commit/a90a8bf341a0615d6ad9393e399168285aaaf3c4
  Author: Dave Collins <[email protected]>
  Date:   2013-07-24 (Wed, 24 Jul 2013)

  Changed paths:
    M genesis.go

  Log Message:
  -----------
  Add genesis block for the regression test network.


  Commit: b8f80da5126999d48c7bbc56a7549031d3484222
      
https://github.com/btcsuite/btcd/commit/b8f80da5126999d48c7bbc56a7549031d3484222
  Author: Dave Collins <[email protected]>
  Date:   2013-07-24 (Wed, 24 Jul 2013)

  Changed paths:
    M genesis_test.go

  Log Message:
  -----------
  Add tests for genesis block of regression testnet.


  Commit: 166123ae790923d06e8b86bb530e2b15abb50fca
      
https://github.com/btcsuite/btcd/commit/166123ae790923d06e8b86bb530e2b15abb50fca
  Author: Dave Collins <[email protected]>
  Date:   2013-07-24 (Wed, 24 Jul 2013)

  Changed paths:
    M genesis.go

  Log Message:
  -----------
  Add genesis block for the test network (version 3).


  Commit: ab064fd4d479c92e802bb521710571f585c63def
      
https://github.com/btcsuite/btcd/commit/ab064fd4d479c92e802bb521710571f585c63def
  Author: Dave Collins <[email protected]>
  Date:   2013-07-24 (Wed, 24 Jul 2013)

  Changed paths:
    M genesis_test.go

  Log Message:
  -----------
  Add tests for genesis block of testnet (version 3).


  Commit: 60dfddc9d05436981f68ba7d2b04312cf98ad956
      
https://github.com/btcsuite/btcd/commit/60dfddc9d05436981f68ba7d2b04312cf98ad956
  Author: Dave Collins <[email protected]>
  Date:   2013-07-24 (Wed, 24 Jul 2013)

  Changed paths:
    M genesis.go

  Log Message:
  -----------
  Use common coinbase transaction for Genesis blocks.

Since the same coinbase transaction is used for the genesis blocks of
all three currently supposed networks, separate it into its own var and
use a reference to it in each of the genesis block defintions.


  Commit: 4e6b649be65ba20510cb75b99ef23fab48479664
      
https://github.com/btcsuite/btcd/commit/4e6b649be65ba20510cb75b99ef23fab48479664
  Author: Dave Collins <[email protected]>
  Date:   2013-07-25 (Thu, 25 Jul 2013)

  Changed paths:
    M protocol.go

  Log Message:
  -----------
  Add constant for regression test netowrk port.


  Commit: ea3107d962098c6d92c139b5c4e9e55e3eee9be7
      
https://github.com/btcsuite/btcd/commit/ea3107d962098c6d92c139b5c4e9e55e3eee9be7
  Author: Dave Collins <[email protected]>
  Date:   2013-07-25 (Thu, 25 Jul 2013)

  Changed paths:
    M doc.go
    M protocol.go

  Log Message:
  -----------
  Add comments and doco to clairfy test networks.

There was not much documentation about the difference between testnet and
testnet3, so make it clear that testnet is used for regression tests and
testnet3 is the public test network (version 3).


  Commit: 9989865fa2f6268b22b15c4054732dfe2b36c87e
      
https://github.com/btcsuite/btcd/commit/9989865fa2f6268b22b15c4054732dfe2b36c87e
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M msgblock.go

  Log Message:
  -----------
  Use correct max block payload size.

The maximum block payload size is actually 1000000 bytes, not 1MB.


  Commit: 90bf9e7449bffcf1814f06b625f8de92b7636247
      
https://github.com/btcsuite/btcd/commit/90bf9e7449bffcf1814f06b625f8de92b7636247
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M msgblock_test.go

  Log Message:
  -----------
  Update tests for corrected max block payload size.


  Commit: 562bde6902726ef306ed426268f61b97230b19c4
      
https://github.com/btcsuite/btcd/commit/562bde6902726ef306ed426268f61b97230b19c4
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M msgblock_test.go
    M msgtx_test.go
    M shahash_test.go

  Log Message:
  -----------
  Use byte literals in tests to make go vet happy.

The go vet command complains about untagged struct initializers when
defining a ShaHash directly.  This seems to be a limitation where go vet
does not exclude the warning for types which are a constant size byte array
like it does for normal constant size byte array definition.

This commit simply modifies the tests to use a constant definition cast to a
ShaHash to overcome the limitation of go vet.


  Commit: 99b06f8bce894796b27045c4aea626c62290d78d
      
https://github.com/btcsuite/btcd/commit/99b06f8bce894796b27045c4aea626c62290d78d
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M msgpong_test.go

  Log Message:
  -----------
  Add format specifier in pong test error output.

The error message did not have a format specifier even though it was
passing an argument to show.  Found by go vet.


  Commit: bfbc08beed9ad6daf9b16fc1f0cf610d8eb0886a
      
https://github.com/btcsuite/btcd/commit/bfbc08beed9ad6daf9b16fc1f0cf610d8eb0886a
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M genesis.go
    M msgblock_test.go
    M msgtx_test.go
    M msgversion_test.go

  Log Message:
  -----------
  Allow var defs to infer type from right-hand side.

Found by golint.


  Commit: d6752d8f997b6cb27fdfb3cf332c59f11a4d1a03
      
https://github.com/btcsuite/btcd/commit/d6752d8f997b6cb27fdfb3cf332c59f11a4d1a03
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M msgheaders.go
    M msgmempool.go
    M msgtx.go
    M protocol.go

  Log Message:
  -----------
  Update comments to fix typos and use proper form.


  Commit: 035a9c3dc36d00e69d1db2d2c1b71ca3e5539e3d
      
https://github.com/btcsuite/btcd/commit/035a9c3dc36d00e69d1db2d2c1b71ca3e5539e3d
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M protocol.go
    M shahash.go

  Log Message:
  -----------
  Add several comments for exported constants.


  Commit: 69446009b2b7c420d150bfff88d4c6de77db66ab
      
https://github.com/btcsuite/btcd/commit/69446009b2b7c420d150bfff88d4c6de77db66ab
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M msgtx.go
    M protocol.go

  Log Message:
  -----------
  Move TxVersion constant definition to msgtx.go.

This moves the definition closer to the associated type and mirrors the
rest of the package.


  Commit: 81120958f03e07904fd9af614407a65a4dc82b42
      
https://github.com/btcsuite/btcd/commit/81120958f03e07904fd9af614407a65a4dc82b42
  Author: Dave Collins <[email protected]>
  Date:   2013-07-27 (Sat, 27 Jul 2013)

  Changed paths:
    M invvect.go

  Log Message:
  -----------
  Comment inventory vector constants.


  Commit: 088f3c923dc33e98cfa788cdc578999462c9b3bd
      
https://github.com/btcsuite/btcd/commit/088f3c923dc33e98cfa788cdc578999462c9b3bd
  Author: Dave Collins <[email protected]>
  Date:   2013-08-05 (Mon, 05 Aug 2013)

  Changed paths:
    M msgblock.go
    M msgtx.go

  Log Message:
  -----------
  Add Serialize/Deserialize for MsgBlock and MsgTx.

This commit introduces two new functions for MsgBlock and MsgTx named
Serialize and Deserialize.  The functions provide a stable mechanism for
serializing and deserializing blocks and transactions to and from disk
without having to worry about the protocol version.  Instead these
functions use the Version fields in the blocks and transactions.

These new functions differ from BtcEncode and BtcDecode in that the latter
functions are intended to encode/decode blocks and transaction from the
wire which technically can differ depending on the protocol version and
don't even really need to use the same format as the stored data.

Currently, there is no difference between the two, and due to how
intertwined they are in the reference implementaiton, they may not ever
diverge, but there is a difference and the goal for btcwire is to provide
a stable API that is flexible enough to deal with encoding changes.


  Commit: 29eb4d4250096ecdde3adf421760ed47ef00b65a
      
https://github.com/btcsuite/btcd/commit/29eb4d4250096ecdde3adf421760ed47ef00b65a
  Author: Dave Collins <[email protected]>
  Date:   2013-08-05 (Mon, 05 Aug 2013)

  Changed paths:
    M msgblock_test.go
    M msgtx_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add tests for new Serialize/Deserialize functions.


  Commit: dea1bac359feb878badffe57bdc48added624e73
      
https://github.com/btcsuite/btcd/commit/dea1bac359feb878badffe57bdc48added624e73
  Author: Dave Collins <[email protected]>
  Date:   2013-08-05 (Mon, 05 Aug 2013)

  Changed paths:
    M msgblock_test.go
    M msgtx_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for Serialize/Deserialize funcs.

This commit adds tests for the error paths when serializing and
deserializing MsgBlock and MsgTx.


  Commit: d90740728e2d6deec396bb2b3b2a91f31c8622ff
      
https://github.com/btcsuite/btcd/commit/d90740728e2d6deec396bb2b3b2a91f31c8622ff
  Author: Dave Collins <[email protected]>
  Date:   2013-08-05 (Mon, 05 Aug 2013)

  Changed paths:
    M blockheader.go
    M genesis_test.go
    M msgblock.go
    M msgblock_test.go
    M msgtx.go
    M msgtx_test.go

  Log Message:
  -----------
  Remove protocol version param from BlockSha/Txsha.

Both of these depend on the serialized bytes which are dependent on the
version field in the block/transaction.  They must be independent of the
protocol version so there is no need to require it.


  Commit: b4b7204a9713a71b8eaff44aec5eddf55ccf0239
      
https://github.com/btcsuite/btcd/commit/b4b7204a9713a71b8eaff44aec5eddf55ccf0239
  Author: Dave Collins <[email protected]>
  Date:   2013-08-05 (Mon, 05 Aug 2013)

  Changed paths:
    M msgblock.go
    M msgblock_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Remove BtcDecodeTxLoc since it has been replaced.

BtcDecodeTxLoc is no longer needed since it has been replaced by
DeserializeTxLoc.


  Commit: 335736e59f4d6b84794d5046af2b2c6da5e30c78
      
https://github.com/btcsuite/btcd/commit/335736e59f4d6b84794d5046af2b2c6da5e30c78
  Author: Dave Collins <[email protected]>
  Date:   2013-08-07 (Wed, 07 Aug 2013)

  Changed paths:
    M netaddress.go
    M test_coverage.txt

  Log Message:
  -----------
  Add new func NetAddressIPPort.

This function is a convenience method to create a new NetAddress
from a net.IP and uint16 port as opposed to a net.Addr which must be of
type *net.TCPAddr.  This allows callers to support connection types that
don't provide access to a concrete *net.TCPAddr implementation.


  Commit: 8679275090e99c66e7026b0bb521e36058e6f90d
      
https://github.com/btcsuite/btcd/commit/8679275090e99c66e7026b0bb521e36058e6f90d
  Author: Andrew Tian <[email protected]>
  Date:   2013-08-12 (Mon, 12 Aug 2013)

  Changed paths:
    M doc.go

  Log Message:
  -----------
  Fix doc example typo


  Commit: e7f808378ec8893a8e5f0aa193c752e8abe6ed42
      
https://github.com/btcsuite/btcd/commit/e7f808378ec8893a8e5f0aa193c752e8abe6ed42
  Author: Dave Collins <[email protected]>
  Date:   2013-09-19 (Thu, 19 Sep 2013)

  Changed paths:
    M msgtx.go
    M msgtx_test.go

  Log Message:
  -----------
  Make max payload for a transaction max block size.

The maximum payload for a transaction is limited to the size of a block
rather than the maximum payload for a given message.


  Commit: 5f971e10e626cdb48d2ef0dd834d943408274280
      
https://github.com/btcsuite/btcd/commit/5f971e10e626cdb48d2ef0dd834d943408274280
  Author: Dave Collins <[email protected]>
  Date:   2013-09-25 (Wed, 25 Sep 2013)

  Changed paths:
    M msgaddr.go
    M msgblock.go
    M msggetblocks.go
    M msggetdata.go
    M msggetheaders.go
    M msgheaders.go
    M msginv.go
    M msgnotfound.go
    M msgtx.go
    M test_coverage.txt

  Log Message:
  -----------
  Pre-allocate space for slices.

Several of the messages store the parts that have a variable number of
elements as slices.  This commit modifies the code to choose sane defaults
for the backing arrays for the slices so when the entries are actually
appended, a lot of the overhead of growing the backing arrays and copying
the data multiple times is avoided.

Along the same lines, when decoding messages, the actual size is known and
now is pre-allocated instead of dynamically growing the backing array
thereby avoiding some overhead.


  Commit: 95ecbadb8e58cd2c0212d56b2456cc7a6587668d
      
https://github.com/btcsuite/btcd/commit/95ecbadb8e58cd2c0212d56b2456cc7a6587668d
  Author: Dave Collins <[email protected]>
  Date:   2013-10-06 (Sun, 06 Oct 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Ensure readVarInt handles short buf on first byte.

It is technically possible for the Read method on a reader to return zero
bytes read with a nil error even though that behavior is "discouraged" by
the interface documenation.  This commit switches the read of the first
byte to use io.ReadFull which will always error in this case.


  Commit: 93d86305a2ef3da7b6d192258d6d41dffe36472d
      
https://github.com/btcsuite/btcd/commit/93d86305a2ef3da7b6d192258d6d41dffe36472d
  Author: Dave Collins <[email protected]>
  Date:   2013-10-08 (Tue, 08 Oct 2013)

  Changed paths:
    M invvect.go
    M invvect_test.go
    A legacy.go
    M msggetdata_test.go
    M msginv_test.go
    M msgnotfound_test.go

  Log Message:
  -----------
  Deprecate InvVect_* constants in favor of InvType*.

This commit changes the InvVect_* constants, which are not standard Go
style, to the InvType*. In order to preserve backwards compatibility, it
also adds a legacy.go file which maps the old public constant names to the
new ones.

Closes #1.


  Commit: 5c8fddf4b4c04e47e13f56c2b28e0a97c2b6238e
      
https://github.com/btcsuite/btcd/commit/5c8fddf4b4c04e47e13f56c2b28e0a97c2b6238e
  Author: Dave Collins <[email protected]>
  Date:   2013-10-08 (Tue, 08 Oct 2013)

  Changed paths:
    M legacy.go

  Log Message:
  -----------
  Add deprecated comments to legacy InvVect_* consts.

This makes it a little more obvious in the documentation that they are
deprecated.


  Commit: fa1d343430ecff479bee0652a7a000aed61f3f6f
      
https://github.com/btcsuite/btcd/commit/fa1d343430ecff479bee0652a7a000aed61f3f6f
  Author: Jonathan Gillham <[email protected]>
  Date:   2013-10-14 (Mon, 14 Oct 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Removed extra local variable assignment from DoubleSha256.


  Commit: 70aa92bf0d822d2ad5265924ed474af6328510df
      
https://github.com/btcsuite/btcd/commit/70aa92bf0d822d2ad5265924ed474af6328510df
  Author: Dale Rahn <[email protected]>
  Date:   2013-10-24 (Thu, 24 Oct 2013)

  Changed paths:
    M common_test.go

  Log Message:
  -----------
  Test some boundary conditions that exercise 'flaws' in the current
btcwire protocol.


  Commit: 5cc32bbfc7dff4a672161d4b16a2fcb82cd031fc
      
https://github.com/btcsuite/btcd/commit/5cc32bbfc7dff4a672161d4b16a2fcb82cd031fc
  Author: Dave Collins <[email protected]>
  Date:   2013-10-25 (Fri, 25 Oct 2013)

  Changed paths:
    M common.go
    M msgblock.go
    M msgtx.go

  Log Message:
  -----------
  Add bounds checking to all variable length allocs.

Several of the bitcoin data structures contain variable length entries,
many of which have well-defined maximum limits.  However, there are still
a few cases, such as variable length strings and number of transactions
which don't have clearly defined maximum limits.  Instead they are only
limited by the maximum size of a message.

In order to efficiently decode messages, space is pre-allocated for the
slices which hold these variable length pieces as to avoid needing to
dynamically grow the backing arrays.  Due to this however, it was
previously possible to claim extremely high slice lengths which exceed
available memory (or maximum allowed slice lengths).

This commit imposes limits to all of these cases based on calculating
the maximum possible number of elements that could fit into a message
and using those as sane upper limits.

The variable length string case was found (and tests added to hit it) by
drahn@ which prompted an audit to find all cases.


  Commit: d1edbf1f0b86075d41fecc52c750addd70376665
      
https://github.com/btcsuite/btcd/commit/d1edbf1f0b86075d41fecc52c750addd70376665
  Author: Dave Collins <[email protected]>
  Date:   2013-10-25 (Fri, 25 Oct 2013)

  Changed paths:
    M msgblock_test.go
    M msgtx_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add tests to exercise intential malicious overflow.

This commit adds several tests which intentionally attempt to feed
malicious data to the various deserialize functions.


  Commit: a4c5c620c60d9e85626187a245b71c8bc21f2124
      
https://github.com/btcsuite/btcd/commit/a4c5c620c60d9e85626187a245b71c8bc21f2124
  Author: Dave Collins <[email protected]>
  Date:   2013-10-25 (Fri, 25 Oct 2013)

  Changed paths:
    M msgheaders_test.go

  Log Message:
  -----------
  Finish a TODO in the message headers tests.


  Commit: bd297491b9ccc5611057abf9c3f43199dedeb7f0
      
https://github.com/btcsuite/btcd/commit/bd297491b9ccc5611057abf9c3f43199dedeb7f0
  Author: Dave Collins <[email protected]>
  Date:   2013-10-25 (Fri, 25 Oct 2013)

  Changed paths:
    M common_test.go

  Log Message:
  -----------
  Make var length string overflow tests consistent.

This commit modifies the variable length string overflow tests slight to
make them consistent with the other overflow tests.


  Commit: cbf648a02f20ecf1a366e335e15c209371b9fa39
      
https://github.com/btcsuite/btcd/commit/cbf648a02f20ecf1a366e335e15c209371b9fa39
  Author: Dave Collins <[email protected]>
  Date:   2013-10-30 (Wed, 30 Oct 2013)

  Changed paths:
    M common.go
    M test_coverage.txt

  Log Message:
  -----------
  Slightly optimize writeVarInt for the normal case.

Most variable length integers are smaller numbers, so this commit reverses
the order of the if checks in the writeVarInt to assume smaller numbers
are more common.

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27


  Commit: 26cb71d805c1d80ba0b3eba35fea967c9c282282
      
https://github.com/btcsuite/btcd/commit/26cb71d805c1d80ba0b3eba35fea967c9c282282
  Author: Dave Collins <[email protected]>
  Date:   2013-10-31 (Thu, 31 Oct 2013)

  Changed paths:
    M common.go
    M msgtx.go

  Log Message:
  -----------
  Expose new SerializeSize API for transactions.

This commit adds a new function named SerializeSize to the public API for
MsgTx, TxOut, and TxIn which can be used to determine how many bytes the
serialized data would take without having to actually serialize it.

The following benchmark shows the difference between using the new
function to get the serialize size for a typical transaction and
serializing into a temporary buffer and taking the length of it:

Bufffer: BenchmarkTxSerializeSizeBuffer     200000           7050 ns/op
New:     BenchmarkTxSerializeSizeNew     100000000             18 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: b7b700fd5aebb86addc93efecaa367a2f4976058
      
https://github.com/btcsuite/btcd/commit/b7b700fd5aebb86addc93efecaa367a2f4976058
  Author: Dave Collins <[email protected]>
  Date:   2013-10-31 (Thu, 31 Oct 2013)

  Changed paths:
    M common_test.go
    M internal_test.go
    M msgtx_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add tests for the new SerializeSize functions.

This commit adds tests for the new SerializeSize functions for variable
length integers and transactions (and indirectly transaction inputs and
outputs).


  Commit: 900db0b44471965de9597af2998e99a089454885
      
https://github.com/btcsuite/btcd/commit/900db0b44471965de9597af2998e99a089454885
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    A bench_test.go

  Log Message:
  -----------
  Add benchmarks for writeVarInt.

This commit adds a few benchmarks for the writeVarInt function.


  Commit: 50c10faf4e679d96b25a633a7c33e5f80e894628
      
https://github.com/btcsuite/btcd/commit/50c10faf4e679d96b25a633a7c33e5f80e894628
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Optimize writeVarInt.

Before:

BenchmarkWriteVarInt1   10000000               173 ns/op
BenchmarkWriteVarInt3    2000000               965 ns/op
BenchmarkWriteVarInt5    2000000               966 ns/op
BenchmarkWriteVarInt9    2000000               968 ns/op

After:

BenchmarkWriteVarInt1   20000000               101 ns/op
BenchmarkWriteVarInt3   20000000               136 ns/op
BenchmarkWriteVarInt5   10000000               142 ns/op
BenchmarkWriteVarInt9   10000000               156 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 87ce23d6791917c41533c85f9113c13512c7f555
      
https://github.com/btcsuite/btcd/commit/87ce23d6791917c41533c85f9113c13512c7f555
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add benchmarks for readVarInt.

This commit adds a few benchmarks for the readVarInt function.


  Commit: 6263efcc716b6827158afaa7eb6bad62bd79effa
      
https://github.com/btcsuite/btcd/commit/6263efcc716b6827158afaa7eb6bad62bd79effa
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Slightly optimize readVarInt.

This commit slightly optimizes the readVarInt function in the case of
multiple-byte variable length integers.  It also reduces the amount of
memory garbage it generates.

Before:

BenchmarkReadVarInt1     5000000               386 ns/op
BenchmarkReadVarInt3     5000000               693 ns/op
BenchmarkReadVarInt5     2000000               793 ns/op
BenchmarkReadVarInt9     5000000               709 ns/op

After:

BenchmarkReadVarInt1     5000000               387 ns/op
BenchmarkReadVarInt3     5000000               471 ns/op
BenchmarkReadVarInt5     5000000               575 ns/op
BenchmarkReadVarInt9     5000000               473 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 052c2ca8d3688fc5d9f8549627968d3ca27b1967
      
https://github.com/btcsuite/btcd/commit/052c2ca8d3688fc5d9f8549627968d3ca27b1967
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Correct benchmark comments.


  Commit: b830e2ddf3ed719889d1c11da8d73ef09d82a68b
      
https://github.com/btcsuite/btcd/commit/b830e2ddf3ed719889d1c11da8d73ef09d82a68b
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add benchmarks for readVarString.

This commit adds a few benchmarks for the readVarString function.


  Commit: 4002051a22d914db76fef4cbaff00253665564b9
      
https://github.com/btcsuite/btcd/commit/4002051a22d914db76fef4cbaff00253665564b9
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Optimize readVarString.

Before:

BenchmarkReadVarStr4     1000000              1698 ns/op
BenchmarkReadVarStr10    1000000              1812 ns/op

After:

BenchmarkReadVarStr4     2000000               853 ns/op
BenchmarkReadVarStr10    5000000               712 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: fa8f666e8ca2ef9aca035952faab38cfdd5a1fb6
      
https://github.com/btcsuite/btcd/commit/fa8f666e8ca2ef9aca035952faab38cfdd5a1fb6
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add benchmarks for writeVarString.

This commit adds a couple of benchmarks for the writeVarString function.


  Commit: 8a1828a2d66cef3d49e034c591d9ed9a140e1f83
      
https://github.com/btcsuite/btcd/commit/8a1828a2d66cef3d49e034c591d9ed9a140e1f83
  Author: Dave Collins <[email protected]>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Optimize writeVarString.

Before:

BenchmarkWriteVarStr4    1000000              1114 ns/op
BenchmarkWriteVarStr10   1000000              1352 ns/op

After:

BenchmarkWriteVarStr4    5000000               291 ns/op
BenchmarkWriteVarStr10  10000000               248 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 547b6487023e6591b27187f819fdbbbf7388a013
      
https://github.com/btcsuite/btcd/commit/547b6487023e6591b27187f819fdbbbf7388a013
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go
    M internal_test.go

  Log Message:
  -----------
  Add benchmarks for writeOutPoint.

This commit adds a benchmark for the writeOutPoint function.


  Commit: f54b010e4b106737aaade12066246e72cc7aa5a2
      
https://github.com/btcsuite/btcd/commit/f54b010e4b106737aaade12066246e72cc7aa5a2
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize writeOutPoint.

Before: BenchmarkWriteOutPoint    500000              2664 ns/op
After:  BenchmarkWriteOutPoint  10000000               151 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: d63e0dd455f0551cd2d57f116282a88dae20533c
      
https://github.com/btcsuite/btcd/commit/d63e0dd455f0551cd2d57f116282a88dae20533c
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go
    M internal_test.go

  Log Message:
  -----------
  Add benchmarks for readOutPoint.

This commit adds a benchmark for the readOutPoint function.


  Commit: 73f4ee623b335b363b3d155870c6e9aa0a00ddef
      
https://github.com/btcsuite/btcd/commit/73f4ee623b335b363b3d155870c6e9aa0a00ddef
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize readOutPoint.

Before: BenchmarkReadOutPoint     500000              2946 ns/op
After:  BenchmarkReadOutPoint    5000000               582 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 48c350f379ba663549fa71319e9d6d40ac75181f
      
https://github.com/btcsuite/btcd/commit/48c350f379ba663549fa71319e9d6d40ac75181f
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M test_coverage.txt

  Log Message:
  -----------
  Update test coverage report.


  Commit: ab8c8e2d39986d127dff8ec85f46fcea498ead1a
      
https://github.com/btcsuite/btcd/commit/ab8c8e2d39986d127dff8ec85f46fcea498ead1a
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go
    M internal_test.go
    M msgtx.go

  Log Message:
  -----------
  Add benchmarks for writeTxOut.

This commit adds a benchmark for the writeTxOut function.


  Commit: a7e3ee6aebc928fb5baa6595fb2f7ab797552a15
      
https://github.com/btcsuite/btcd/commit/a7e3ee6aebc928fb5baa6595fb2f7ab797552a15
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize writeTxOut.

Before: BenchmarkWriteTxOut       500000              4050 ns/op
After:  BenchmarkWriteTxOut     10000000               248 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 0228508172bb6aaa8fc54ff492ffcbde14642f9c
      
https://github.com/btcsuite/btcd/commit/0228508172bb6aaa8fc54ff492ffcbde14642f9c
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go
    M internal_test.go

  Log Message:
  -----------
  Add benchmarks for readTxOut.

This commit adds a benchmark for the readTxOut function.


  Commit: cece305f7824208a2ba16d07f7ce8f517e9c015d
      
https://github.com/btcsuite/btcd/commit/cece305f7824208a2ba16d07f7ce8f517e9c015d
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize readTxOut.

Before: BenchmarkReadTxOut        500000              4576 ns/op
After:  BenchmarkReadTxOut       2000000               871 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 1fe9f9e165ae31f5df6c418dd70568e72b798379
      
https://github.com/btcsuite/btcd/commit/1fe9f9e165ae31f5df6c418dd70568e72b798379
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go
    M internal_test.go

  Log Message:
  -----------
  Add benchmarks for readTxIn.

This commit adds a benchmark for the readTxIn function.


  Commit: 59da6921317b6d0cb23d4157c181d915c53badeb
      
https://github.com/btcsuite/btcd/commit/59da6921317b6d0cb23d4157c181d915c53badeb
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize readTxIn.

Before: BenchmarkReadTxIn        1000000              2435 ns/op
After:  BenchmarkReadTxIn        1000000              1427 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 63cc0851e5bee7fe6152ace2c46fd796b1b08ca6
      
https://github.com/btcsuite/btcd/commit/63cc0851e5bee7fe6152ace2c46fd796b1b08ca6
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go
    M internal_test.go

  Log Message:
  -----------
  Add benchmarks for writeTxIn.

This commit adds a benchmark for the writeTxIn function.


  Commit: 1a1f93865f7bda02f26811fdf18a94ec889cfb31
      
https://github.com/btcsuite/btcd/commit/1a1f93865f7bda02f26811fdf18a94ec889cfb31
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize writeTxIn.

Before: BenchmarkWriteTxIn       5000000               422 ns/op
After:  BenchmarkWriteTxIn       5000000               389 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: fe713b8013d355b335d7422a5b6244484332c0bb
      
https://github.com/btcsuite/btcd/commit/fe713b8013d355b335d7422a5b6244484332c0bb
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add benchmarks for transaction Serialize.

This commit adds a benchmark for the MsgTx.BtcEncode/Serialize functions.


  Commit: a81e081cc48935edf08ca060e9bbbd2c08502854
      
https://github.com/btcsuite/btcd/commit/a81e081cc48935edf08ca060e9bbbd2c08502854
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize transaction Serialize.

The benchmark results for the current commit:

Before: BenchmarkSerializeTx     1000000              1233 ns/op
After:  BenchmarkSerializeTx     1000000              1083 ns/op

The cumulative benchmark results since commit 
b7b700fd5aebb86addc93efecaa367a2f4976058:

Before: BenchmarkSerializeTx     1000000              5437 ns/op
After:  BenchmarkSerializeTx     1000000              1083 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 92b2f9e6b34dda683ed7ab18b7c5dab3af27a432
      
https://github.com/btcsuite/btcd/commit/92b2f9e6b34dda683ed7ab18b7c5dab3af27a432
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add benchmarks for transaction Deserialize.

This commit adds a benchmark for the MsgTx.BtcDecode/Deserialize
functions.


  Commit: 9b7e3527b0a87c6b0d353ff45642cb560d2440d1
      
https://github.com/btcsuite/btcd/commit/9b7e3527b0a87c6b0d353ff45642cb560d2440d1
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Optimize transaction Deserialize.

The benchmark results for the current commit:

Before: BenchmarkDeserializeTx    500000              4018 ns/op
After:  BenchmarkDeserializeTx    500000              3780 ns/op

The cumulative benchmark results since commit 
b7b700fd5aebb86addc93efecaa367a2f4976058:

Before: BenchmarkDeserializeTx    200000             10665 ns/op
After:  BenchmarkDeserializeTx    500000              3780 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: d21050a8aa1d9f578e8a736dde00dd946b2542ca
      
https://github.com/btcsuite/btcd/commit/d21050a8aa1d9f578e8a736dde00dd946b2542ca
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add benchmark for readBlockHeader.

This commit adds a benchmark for the readBlockHeader function.


  Commit: bc85a3101699e5e4f33dd9abd90fead9d6c11727
      
https://github.com/btcsuite/btcd/commit/bc85a3101699e5e4f33dd9abd90fead9d6c11727
  Author: Dave Collins <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Optimize readElement.

The following benchmark results show the results for deserializing a block 
header:

Before: BenchmarkReadBlockHeader          500000              5916 ns/op
After:  BenchmarkReadBlockHeader         1000000              2078 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 7de20add63e82fda5b8adda82fc77b93f72985b9
      
https://github.com/btcsuite/btcd/commit/7de20add63e82fda5b8adda82fc77b93f72985b9
  Author: Dave Collins <[email protected]>
  Date:   2013-11-07 (Thu, 07 Nov 2013)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add benchmark for writeBlockHeader.

This commit adds a benchmark for the writeBlockHeader function.


  Commit: 9ee6a8aeb666d50684137e49b1dcc41b895690ff
      
https://github.com/btcsuite/btcd/commit/9ee6a8aeb666d50684137e49b1dcc41b895690ff
  Author: Dave Collins <[email protected]>
  Date:   2013-11-07 (Thu, 07 Nov 2013)

  Changed paths:
    M blockheader.go
    M common.go
    M invvect.go
    M msggetblocks.go
    M msggetheaders.go

  Log Message:
  -----------
  Optimize writeElement.

This commit modifies the writeElement function to have a "fast path" which uses 
type
assertions for all of the types which btcwire write so the more expensive
reflection-based binary.Write can be avoided.

Also, this changes all cases that were writing raw ShaHash (32-byte) arrays 
(which
requires a stack copy) instead simply passing the pointer.

The following benchmark results show the results for serializing a block header
after these changes:

Before: BenchmarkWriteBlockHeader         500000              5566 ns/op
After:  BenchmarkWriteBlockHeader        1000000               991 ns/op

This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27.


  Commit: 119a2ddc75b3d06c14962caf5ddb6794e061e37d
      
https://github.com/btcsuite/btcd/commit/119a2ddc75b3d06c14962caf5ddb6794e061e37d
  Author: Dave Collins <[email protected]>
  Date:   2013-11-07 (Thu, 07 Nov 2013)

  Changed paths:
    M common_test.go
    M internal_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add tests for updated readElement/writeElement.

This commit adds tests to ensure the new "fast" paths in readElement and
writeElement work properly including proper fallback to the slower
reflection based read/write of the binary package.


  Commit: 6f61e0acc2531e77c077ea6bf267ec74e20cfdd9
      
https://github.com/btcsuite/btcd/commit/6f61e0acc2531e77c077ea6bf267ec74e20cfdd9
  Author: Dave Collins <[email protected]>
  Date:   2013-11-07 (Thu, 07 Nov 2013)

  Changed paths:
    M common_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add negative tests for updated read/writeElement.

This commit adds tests for the error paths in the updated readElement and
writeElement functions.

This brings the test coverage back up to 100%.


  Commit: dd41f7e91a682b7c1ceed633e12ece6ba7b6bc72
      
https://github.com/btcsuite/btcd/commit/dd41f7e91a682b7c1ceed633e12ece6ba7b6bc72
  Author: Dave Collins <[email protected]>
  Date:   2013-11-07 (Thu, 07 Nov 2013)

  Changed paths:
    M common.go
    M msgtx.go
    M shahash.go

  Log Message:
  -----------
  Minor cleanup.

This commit fixes a couple of comments and cleans up a couple of things
golint complained about.


  Commit: 6ad853019a1c2474236ba5abe0bbb12da91c1627
      
https://github.com/btcsuite/btcd/commit/6ad853019a1c2474236ba5abe0bbb12da91c1627
  Author: Marco Peereboom <[email protected]>
  Date:   2013-11-19 (Tue, 19 Nov 2013)

  Changed paths:
    M common.go

  Log Message:
  -----------
  use fastsha256


  Commit: 977d47641f887c575edee118f3598c0dd13a0363
      
https://github.com/btcsuite/btcd/commit/977d47641f887c575edee118f3598c0dd13a0363
  Author: Dave Collins <[email protected]>
  Date:   2013-12-09 (Mon, 09 Dec 2013)

  Changed paths:
    A .travis.yml
    M README.md

  Log Message:
  -----------
  Add support for TravisCI.

Also add TravisCI build status badge to README.md.


  Commit: e5a09bdfaa139999d8195c10cea07312dbeb1065
      
https://github.com/btcsuite/btcd/commit/e5a09bdfaa139999d8195c10cea07312dbeb1065
  Author: Dave Collins <[email protected]>
  Date:   2013-12-10 (Tue, 10 Dec 2013)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Configure TravisCI to pull pkgs needed for tests.


  Commit: 626662fb5fe042ad574fb817f0f1cce357fc6446
      
https://github.com/btcsuite/btcd/commit/626662fb5fe042ad574fb817f0f1cce357fc6446
  Author: Dave Collins <[email protected]>
  Date:   2014-01-03 (Fri, 03 Jan 2014)

  Changed paths:
    M protocol.go

  Log Message:
  -----------
  Add Stringer to BitcoinNet.


  Commit: e64e6f07576535fc30283f0ed2bed0d236497092
      
https://github.com/btcsuite/btcd/commit/e64e6f07576535fc30283f0ed2bed0d236497092
  Author: Dave Collins <[email protected]>
  Date:   2014-01-03 (Fri, 03 Jan 2014)

  Changed paths:
    M protocol_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add tests for new BitcoinNet Stringer.


  Commit: 497aac6d4accaabd0df9a2706b7399a5afe819ea
      
https://github.com/btcsuite/btcd/commit/497aac6d4accaabd0df9a2706b7399a5afe819ea
  Author: Dave Collins <[email protected]>
  Date:   2014-01-08 (Wed, 08 Jan 2014)

  Changed paths:
    M msggetdata.go
    M msginv.go

  Log Message:
  -----------
  Add new funcs to allow size hints on getdata/inv.

This commit adds two new functions named NewMsgGetDataSizeHint and
NewMsgInvSizeHint.  These are intended to allow callers which know in
advance how large the inventory lists will grow the ability to provides
that information when creating the message.  This in turn provides a
mechanism to avoid the need to perform several grow operations of the
backing array when adding large number of inventory vectors.


  Commit: 2458841855ed7783f5fc2bfce519dcee4fe9b10a
      
https://github.com/btcsuite/btcd/commit/2458841855ed7783f5fc2bfce519dcee4fe9b10a
  Author: Dave Collins <[email protected]>
  Date:   2014-01-08 (Wed, 08 Jan 2014)

  Changed paths:
    M msggetdata_test.go
    M msginv_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add tests for new size hint functions.

This brings the test coverage back up to 100%.


  Commit: 6c7f45fdb74e92e8de38775a691545ef888d8998
      
https://github.com/btcsuite/btcd/commit/6c7f45fdb74e92e8de38775a691545ef888d8998
  Author: Dave Collins <[email protected]>
  Date:   2014-01-08 (Wed, 08 Jan 2014)

  Changed paths:
    M LICENSE
    M bench_test.go
    M blockheader.go
    M blockheader_test.go
    M common.go
    M common_test.go
    M doc.go
    M error.go
    M fakeconn_test.go
    M fakemessage_test.go
    M fixedIO_test.go
    M genesis.go
    M genesis_test.go
    M internal_test.go
    M invvect.go
    M invvect_test.go
    M legacy.go
    M message.go
    M message_test.go
    M msgaddr.go
    M msgaddr_test.go
    M msgalert.go
    M msgalert_test.go
    M msgblock.go
    M msgblock_test.go
    M msggetaddr.go
    M msggetaddr_test.go
    M msggetblocks.go
    M msggetblocks_test.go
    M msggetdata.go
    M msggetdata_test.go
    M msggetheaders.go
    M msggetheaders_test.go
    M msgheaders.go
    M msgheaders_test.go
    M msginv.go
    M msginv_test.go
    M msgmempool.go
    M msgmempool_test.go
    M msgnotfound.go
    M msgnotfound_test.go
    M msgping.go
    M msgping_test.go
    M msgpong.go
    M msgpong_test.go
    M msgtx.go
    M msgtx_test.go
    M msgverack.go
    M msgverack_test.go
    M msgversion.go
    M msgversion_test.go
    M netaddress.go
    M netaddress_test.go
    M protocol.go
    M protocol_test.go
    M shahash.go
    M shahash_test.go

  Log Message:
  -----------
  Add 2014 to copyright dates.


  Commit: 144822d4bfce9cf302d7d5ade8b9604964c79f94
      
https://github.com/btcsuite/btcd/commit/144822d4bfce9cf302d7d5ade8b9604964c79f94
  Author: Dave Collins <[email protected]>
  Date:   2014-01-18 (Sat, 18 Jan 2014)

  Changed paths:
    M blockheader.go
    M blockheader_test.go
    M genesis.go
    M msgblock.go
    M msgblock_test.go
    M msgheaders.go
    M msgheaders_test.go

  Log Message:
  -----------
  Remove BlockHeader.TxnCount field.

This commit removes the TxnCount field from the BlockHeader type and
updates the tests accordingly.  Note that this change does not affect the
actual wire protocol encoding in any way.

The reason the field has been removed is it really doesn't belong there
even though the wire protocol wiki entry on the official bitcoin wiki
implies it does.  The implication is an artifact from the way the
reference implementation serializes headers (MsgHeaders) messages.  It
includes the transaction count, which is naturally always 0 for headers,
along with every header.  However, in reality, a block header does not
include the transaction count.  This can be evidenced by looking at how a
block hash is calculated.  It is only up to and including the Nonce field
(a total of 80 bytes).

>From an API standpoint, having the field as part of the BlockHeader type
results in several odd cases.

For example, the transaction count for MsgBlocks (the only place that
actually has a real transaction count since MsgHeaders does not) is
available by taking the len of the Transactions slice.  As such, having
the extra field in the BlockHeader is really a useless field that could
potentially get out of sync and cause the encode to fail.

Another example is related to deserializing a block header from the
database in order to serve it in response to a getheaders (MsgGetheaders)
request.  If a block header is assumed to have the transaction count as a
part of it, then derserializing a block header not only consumes more than
the 80 bytes that actually comprise the header as stated above, but you
then need to change the transaction count to 0 before sending the headers
(MsgHeaders) message.  So, not only are you reading and deserializing more
bytes than needed, but worse, you generally have to make a copy of it so
you can change the transaction count without busting cached headers.

This is part 1 of #13.


  Commit: d6aea22adb80ac93ef7feb57dce3070c9f5cbbb5
      
https://github.com/btcsuite/btcd/commit/d6aea22adb80ac93ef7feb57dce3070c9f5cbbb5
  Author: Dave Collins <[email protected]>
  Date:   2014-01-18 (Sat, 18 Jan 2014)

  Changed paths:
    R legacy.go

  Log Message:
  -----------
  Remove deprecated InvType_* constants.

This closes #13.


  Commit: 06d1236d490d5db07f7ba0b9b3428981b4fd3379
      
https://github.com/btcsuite/btcd/commit/06d1236d490d5db07f7ba0b9b3428981b4fd3379
  Author: Dave Collins <[email protected]>
  Date:   2014-01-18 (Sat, 18 Jan 2014)

  Changed paths:
    M blockheader.go

  Log Message:
  -----------
  Add Serialize/Deserialize for BlockHeader.

This commit introduces two new functions for Blockheader named Serialize
and Deserialize.  The functions provide a stable mechanism for serializing
and deserializing block headers to and from disk.  The main benefit here
is deserialization of the header since typically only full blocks are
serialized to disk.  Then when a header is needed, only the header portion
of the block is read and deserialized.


  Commit: 6672f71d68ecdd68bfdcfe9b297711045621443e
      
https://github.com/btcsuite/btcd/commit/6672f71d68ecdd68bfdcfe9b297711045621443e
  Author: Dave Collins <[email protected]>
  Date:   2014-01-18 (Sat, 18 Jan 2014)

  Changed paths:
    M blockheader_test.go

  Log Message:
  -----------
  Add tests for new Serialize/Deserialize functions.


  Commit: ff783faf530a841544821099485c67463ac6de21
      
https://github.com/btcsuite/btcd/commit/ff783faf530a841544821099485c67463ac6de21
  Author: Dave Collins <[email protected]>
  Date:   2014-02-03 (Mon, 03 Feb 2014)

  Changed paths:
    M internal_test.go
    M message.go
    M message_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add Read/WriteMessageN to return number of bytes.

This commit adds two new funtions named ReadMessageN and WriteMessageN
which return an additional paramter for the number of bytes read or written,
respectively.

It also adds tests to ensure the number of bytes read and written are the
expected values both for successful reads/writes and unsuccessful ones.

Closes #6.


  Commit: d0dfff8292cd09e85db4ff5da0732115ff93f1a8
      
https://github.com/btcsuite/btcd/commit/d0dfff8292cd09e85db4ff5da0732115ff93f1a8
  Author: David Hill <[email protected]>
  Date:   2014-02-04 (Tue, 04 Feb 2014)

  Changed paths:
    M common_test.go

  Log Message:
  -----------
  fix typo in test: use %s for strings


  Commit: f6b03bf8a8308837a5663e537be297956279dd67
      
https://github.com/btcsuite/btcd/commit/f6b03bf8a8308837a5663e537be297956279dd67
  Author: David Hill <[email protected]>
  Date:   2014-02-04 (Tue, 04 Feb 2014)

  Changed paths:
    M genesis.go
    M msgblock_test.go
    M msgtx_test.go

  Log Message:
  -----------
  gofmt


  Commit: 13e0b0e7b9b6cf79e7b14d2adee40a2f52437150
      
https://github.com/btcsuite/btcd/commit/13e0b0e7b9b6cf79e7b14d2adee40a2f52437150
  Author: Dave Collins <[email protected]>
  Date:   2014-02-24 (Mon, 24 Feb 2014)

  Changed paths:
    M blockheader.go
    M msgversion.go
    M netaddress.go

  Log Message:
  -----------
  Limit generated timestamps to one second precision.

This commit changes all cases which generate default timestamps to
time.Now to limit the timestamp to one second precision.  The code which
serializes and deserializes timestamps already does this, but it is useful
to make sure defaults don't exceed the precision of the protocol either.

With this change there is less chance that developers using defaults will
end up with structures that have a higher time precision than what will
ultimately be sent across the wire.


  Commit: 1623818c1201d7333118695fa0824ec004db7644
      
https://github.com/btcsuite/btcd/commit/1623818c1201d7333118695fa0824ec004db7644
  Author: Dave Collins <[email protected]>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Export a new constant for MaxPrevOutIndex.

This commit exports a new constant for the maximum index a previous
outpoint can contain.


  Commit: b9c21bd5186a3ba654eafce7315419ba1cdd2ed0
      
https://github.com/btcsuite/btcd/commit/b9c21bd5186a3ba654eafce7315419ba1cdd2ed0
  Author: Dave Collins <[email protected]>
  Date:   2014-03-03 (Mon, 03 Mar 2014)

  Changed paths:
    M common.go
    M common_test.go
    M internal_test.go
    M msgtx.go

  Log Message:
  -----------
  Export VarIntSerializeSize function.

This commit exports the VarIntSerializeSize function to provide callers
with an easy method to determine how many bytes it would take to serialize
the passed value as a variable length integer.


  Commit: e5d15b0fa8a1e311fef6925502761c9f27bf292d
      
https://github.com/btcsuite/btcd/commit/e5d15b0fa8a1e311fef6925502761c9f27bf292d
  Author: Dave Collins <[email protected]>
  Date:   2014-03-11 (Tue, 11 Mar 2014)

  Changed paths:
    M common.go
    M msgaddr.go
    M msggetblocks.go
    M msggetdata.go
    M msggetheaders.go
    M msgheaders.go
    M msginv.go
    M msgnotfound.go
    M msgversion.go

  Log Message:
  -----------
  Export MaxVarIntPayload.


  Commit: 0e1f6a6628100803b2e0e0e7e14da1a74e688bf3
      
https://github.com/btcsuite/btcd/commit/0e1f6a6628100803b2e0e0e7e14da1a74e688bf3
  Author: Dave Collins <[email protected]>
  Date:   2014-03-11 (Tue, 11 Mar 2014)

  Changed paths:
    M blockheader.go
    M msgheaders.go

  Log Message:
  -----------
  Export MaxBlockHeaderPayload.


  Commit: 2de1b73d122516c0c194698328e4f3fb7d87382d
      
https://github.com/btcsuite/btcd/commit/2de1b73d122516c0c194698328e4f3fb7d87382d
  Author: Dave Collins <[email protected]>
  Date:   2014-03-20 (Thu, 20 Mar 2014)

  Changed paths:
    M bench_test.go

  Log Message:
  -----------
  Add a benchmark for TxSha.

This commit adds a benchmark for the TxSha function of a MsgTx.


  Commit: b6e6fc25dbb8bb1a820ddf22ef0e9aead704de1a
      
https://github.com/btcsuite/btcd/commit/b6e6fc25dbb8bb1a820ddf22ef0e9aead704de1a
  Author: David Hill <[email protected]>
  Date:   2014-03-20 (Thu, 20 Mar 2014)

  Changed paths:
    M message.go
    M msgtx.go

  Log Message:
  -----------
  Preallocate memory for the message header in WriteMessageN and the
serialization buffer in MsgTx's TxSha().

Benchmarking shows this is slightly faster due to avoiding the extra
garbage collection in addition to less peak memory usage.

Before: BenchmarkTxShaOld  500000         5626 ns/op
After:  BenchmarkTxShaNew  500000         5457 ns/op


  Commit: dfb2c149f6806408cb4a43cd59792cf775b4ffab
      
https://github.com/btcsuite/btcd/commit/dfb2c149f6806408cb4a43cd59792cf775b4ffab
  Author: Dave Collins <[email protected]>
  Date:   2014-03-30 (Sun, 30 Mar 2014)

  Changed paths:
    M fixedIO_test.go

  Log Message:
  -----------
  Finish uncompleted comments in fixedIO_test.go.


  Commit: c9178993037dcd44bc3c64ab6031bec0baa9bf8a
      
https://github.com/btcsuite/btcd/commit/c9178993037dcd44bc3c64ab6031bec0baa9bf8a
  Author: Dave Collins <[email protected]>
  Date:   2014-03-30 (Sun, 30 Mar 2014)

  Changed paths:
    M msgversion.go
    M msgversion_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Allow optional fields in MsgVersion decode.

This commit modifies the MsgVersion.BtcDecode function to match the
behavior where fields after the first address field (AddrYou) are optional
and only read if the buffer contains remaining bytes.

Unfortunately this means the reader for MsgVersion.BtcDecode must be a
*bytes.Buffer or an error is returned.  This is not an issue for the vast
majority of cases since all of the message reading code which is the main
way messages are read is already using a *bytes.Buffer, however, this
change might affect external callers if they are doing something special
with custom readers.

Fixes #14.


  Commit: 872134805129ccfeb696870c0a8d6bf8d981f806
      
https://github.com/btcsuite/btcd/commit/872134805129ccfeb696870c0a8d6bf8d981f806
  Author: Dave Collins <[email protected]>
  Date:   2014-03-30 (Sun, 30 Mar 2014)

  Changed paths:
    M msgversion_test.go

  Log Message:
  -----------
  Add tests for optional message fields.

Since fields of a version message after the AddrMe field are optional,
this commit adds a series of tests which ensure parsing version messages
which omit each of the optional fields works properly.


  Commit: e9a18fb14c58c516399977ebe738c85061ce2542
      
https://github.com/btcsuite/btcd/commit/e9a18fb14c58c516399977ebe738c85061ce2542
  Author: David Hill <[email protected]>
  Date:   2014-03-30 (Sun, 30 Mar 2014)

  Changed paths:
    M common.go
    M message_test.go
    M msgversion.go
    M msgversion_test.go

  Log Message:
  -----------
  Support RelayTx param in ver message for 70001+.

This commit adds support for the version message RelayTx parameter for
protocol version 70001+ as added by BIP0037.


  Commit: 937374c95a0fa242080c2f3024d54d63651b1e38
      
https://github.com/btcsuite/btcd/commit/937374c95a0fa242080c2f3024d54d63651b1e38
  Author: Dave Collins <[email protected]>
  Date:   2014-03-31 (Mon, 31 Mar 2014)

  Changed paths:
    M common_test.go
    M msgversion.go
    M msgversion_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Cleanup and finish relay transaction work.

- Coalesce the new bytes into the max message size constant to stay
  consistent
- Correct optional relay tx field handling
- Rename the relay transactions field to DisableRelayTx so the zero value
  of false has the correct default behavior
- Add tests for new bool fast paths in read/writeElement
- Stay consistent with version order in tests
- Add a single entry to TestVersionWire to test the new functionality
  instead of adding a whole new TextVersionRelayTx function.
- Use BIP0037 in tests instead of hard coding 70001
- Nuke XXX that 70001 is different since this is handled now
- Fix and cleanup some comments
- Update test coverage report


  Commit: 0e1f8fda6df25a85026438ff763140c1f843c65b
      
https://github.com/btcsuite/btcd/commit/0e1f8fda6df25a85026438ff763140c1f843c65b
  Author: Dave Collins <[email protected]>
  Date:   2014-04-05 (Sat, 05 Apr 2014)

  Changed paths:
    M msgblock_test.go

  Log Message:
  -----------
  Correct some comments in block bytes breakdown.


  Commit: f0581b565c5c3aa03bab01b324dd221f13fa91c1
      
https://github.com/btcsuite/btcd/commit/f0581b565c5c3aa03bab01b324dd221f13fa91c1
  Author: Dave Collins <[email protected]>
  Date:   2014-04-06 (Sun, 06 Apr 2014)

  Changed paths:
    M msgblock_test.go

  Log Message:
  -----------
  Correct two more comments in block bytes breakdown.


  Commit: 805ce37d31c3f92a69c75da28100a1786a924c1e
      
https://github.com/btcsuite/btcd/commit/805ce37d31c3f92a69c75da28100a1786a924c1e
  Author: David Hill <[email protected]>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M common.go
    M message.go
    M msgtx.go

  Log Message:
  -----------
  Use the stack for most known sizes.

By using the stack for known sizes, there is less pressure on the
garbage collector.


  Commit: 9130de2de239b994f40bcd7727d6c14ed020b6ea
      
https://github.com/btcsuite/btcd/commit/9130de2de239b994f40bcd7727d6c14ed020b6ea
  Author: Javed Khan <[email protected]>
  Date:   2014-04-19 (Sat, 19 Apr 2014)

  Changed paths:
    M .gitignore

  Log Message:
  -----------
  add tmp wire file to .gitignore


  Commit: 6b82da13b4eff794bd9e79e39064546b811cefc2
      
https://github.com/btcsuite/btcd/commit/6b82da13b4eff794bd9e79e39064546b811cefc2
  Author: Dave Collins <[email protected]>
  Date:   2014-04-19 (Sat, 19 Apr 2014)

  Changed paths:
    M .travis.yml
    M README.md

  Log Message:
  -----------
  Setup TravisCI to report cov stats to coveralls.io.

Also add a coveralls.io test coverage badge to the README.


  Commit: 755944738a3abf64dcdc0f1d26f80506af926d05
      
https://github.com/btcsuite/btcd/commit/755944738a3abf64dcdc0f1d26f80506af926d05
  Author: Dave Collins <[email protected]>
  Date:   2014-04-19 (Sat, 19 Apr 2014)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Instruct TravisCI to install coverage report tool.


  Commit: 44e34926a7051373472d332f6ed39e61fad68a5f
      
https://github.com/btcsuite/btcd/commit/44e34926a7051373472d332f6ed39e61fad68a5f
  Author: Dave Collins <[email protected]>
  Date:   2014-04-19 (Sat, 19 Apr 2014)

  Changed paths:
    M README.md
    R test_coverage.txt

  Log Message:
  -----------
  Remove test coverage report refs from README.md.

This is no longer needed since the repository is now configured to work
with coveralls.io for test coverage reporting.

Closes #17


  Commit: a9293bd32eb0480649a15961290c918050ededa3
      
https://github.com/btcsuite/btcd/commit/a9293bd32eb0480649a15961290c918050ededa3
  Author: Dave Collins <[email protected]>
  Date:   2014-04-19 (Sat, 19 Apr 2014)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Add godoc reference badge to README.md.


  Commit: 620cbdeb8e8d91f1977699b928d75f5f2d312f30
      
https://github.com/btcsuite/btcd/commit/620cbdeb8e8d91f1977699b928d75f5f2d312f30
  Author: Javed Khan <[email protected]>
  Date:   2014-04-21 (Mon, 21 Apr 2014)

  Changed paths:
    M README.md
    M doc.go
    M message_test.go
    M msgversion.go
    M msgversion_test.go

  Log Message:
  -----------
  Implemented BIP 0014 format for user agent

the new function AddUserAgent adds the user agent to the stack
and formats it as per BIP 0014
e.g: "/btcwire:0.1.4/myclient:1.2.3(optional; comments)/"

the validation on UserAgent has been moved to a new function
validateUserAgent


  Commit: d848bc453bebc744d17d6db7d2545f60be215ca4
      
https://github.com/btcsuite/btcd/commit/d848bc453bebc744d17d6db7d2545f60be215ca4
  Author: Dave Collins <[email protected]>
  Date:   2014-04-20 (Sun, 20 Apr 2014)

  Changed paths:
    M msgversion.go

  Log Message:
  -----------
  Improve comments on new AddUserAgent function.


  Commit: 8857485fa8c91f62b33b6179c45898762787ada6
      
https://github.com/btcsuite/btcd/commit/8857485fa8c91f62b33b6179c45898762787ada6
  Author: Dave Collins <[email protected]>
  Date:   2014-04-20 (Sun, 20 Apr 2014)

  Changed paths:
    M msgblock.go

  Log Message:
  -----------
  Remove note that is no longer true.

The code was updated to automatically handle the transaction count in the
block header without having the additional field some time ago.  This
comment was outdated.


  Commit: 2cc89bbf5ba47baf9f8f60d7d9408fe85474fd53
      
https://github.com/btcsuite/btcd/commit/2cc89bbf5ba47baf9f8f60d7d9408fe85474fd53
  Author: Dave Collins <[email protected]>
  Date:   2014-04-21 (Mon, 21 Apr 2014)

  Changed paths:
    M shahash.go

  Log Message:
  -----------
  Remove function name from ShaHash error message.

This makes golint happy.


  Commit: bdec7f8abb55c26d87f2aecc7d5ea4844bffaa73
      
https://github.com/btcsuite/btcd/commit/bdec7f8abb55c26d87f2aecc7d5ea4844bffaa73
  Author: Javed Khan <[email protected]>
  Date:   2014-05-05 (Mon, 05 May 2014)

  Changed paths:
    M common.go
    M common_test.go
    M internal_test.go
    M message_test.go
    M msgalert.go
    M msgalert_test.go
    M msgtx.go

  Log Message:
  -----------
  Implemented alert message serialize/deserialize

* Introduced common methods readVarBytes, writeVarBytes.
* Added type Alert which knows how to deserialize
the serialized payload and also serialize itself back.
* Updated MsgAlert BtcEncode/BtcDecode methods to handle the
new Alert.
* Sane limits are placed on variable length fields like SetCancel
and SetSubVer


  Commit: a98f5ca38ee39e35962c55b500d3a02c89182997
      
https://github.com/btcsuite/btcd/commit/a98f5ca38ee39e35962c55b500d3a02c89182997
  Author: Dave Collins <[email protected]>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M common.go
    M common_test.go
    M msgalert.go
    M msgalert_test.go

  Log Message:
  -----------
  Cleanup a few nitpicks with recent alert additions.

- Group the new read/writeVarBytes functions together to be consistent
  with the existing code
- Modify the comments on the new read/writeVarBytes to be a little more
  descriptive and consistent with existing code
- Use "test payload" for field name in the tests for the
  read/writeVarBytes functions which is more accurate
- Remove reserved param from NewAlert since there is no point is having
  the caller deal with a reserved param
- Various comment tweaks for clarity and consistency
- Use camel case for fuction params for consistency
- Move the NewAlert and NewAlertFromPayload functions after the receiver
  definitions for code layout consistency

Closes #11.


  Commit: cf754d09bfbc9922c2e8544ac19bbd876b16c5e7
      
https://github.com/btcsuite/btcd/commit/cf754d09bfbc9922c2e8544ac19bbd876b16c5e7
  Author: David Hill <[email protected]>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M invvect.go
    M message.go
    M message_test.go
    A msgfilteradd.go
    A msgfilteradd_test.go
    A msgfilterclear.go
    A msgfilterclear_test.go
    A msgfilterload.go
    A msgfilterload_test.go
    A msgmerkleblock.go
    A msgmerkleblock_test.go

  Log Message:
  -----------
  Initial implementation of BIP0037.

Implement filteradd, filterclear, filterload, and merkleblock.


  Commit: f8ec4766915de9333b0ba77b937481cbc84b60a0
      
https://github.com/btcsuite/btcd/commit/f8ec4766915de9333b0ba77b937481cbc84b60a0
  Author: Dave Collins <[email protected]>
  Date:   2014-05-07 (Wed, 07 May 2014)

  Changed paths:
    M README.md
    M common.go
    M doc.go
    M internal_test.go
    M msgblock.go
    M msgfilteradd.go
    M msgfilteradd_test.go
    M msgfilterclear.go
    M msgfilterclear_test.go
    M msgfilterload.go
    M msgfilterload_test.go
    M msgmerkleblock.go
    M msgmerkleblock_test.go
    M msgping_test.go
    M msgpong_test.go

  Log Message:
  -----------
  Complete BIP0037 support started by dhill.

- Correct MsgFilterLoad max payload
- Enforce max flag bytes per merkle block
- Improve and finish tests to include testing all error paths
- Add fast paths for BloomUpdateType
- Convert all byte fields to use read/writeVarBytes
- Style and consistency updates
- README.md and doc.go updates

Closes #12.


  Commit: c2a1444a8861bedf42da4613ca0f7027060ee1cd
      
https://github.com/btcsuite/btcd/commit/c2a1444a8861bedf42da4613ca0f7027060ee1cd
  Author: Dave Collins <[email protected]>
  Date:   2014-05-08 (Thu, 08 May 2014)

  Changed paths:
    M common.go
    M message.go
    A msgreject.go
    M protocol.go

  Log Message:
  -----------
  Add new reject command.

This commit adds the new reject protocol message added to recent versions
of the reference implementation.  This message is intended to be used in
response to messages from a remote peer when it is rejected for some
reason such as blocks being rejected due to not conforming to the chain
rules, transactions double spending inputs, and version messages sent
after they're already sent.

This is work toward issue #9.


  Commit: f38e5854c1047e6eb249ba3f9bf3eca8165814bf
      
https://github.com/btcsuite/btcd/commit/f38e5854c1047e6eb249ba3f9bf3eca8165814bf
  Author: Dave Collins <[email protected]>
  Date:   2014-05-08 (Thu, 08 May 2014)

  Changed paths:
    M protocol.go

  Log Message:
  -----------
  Bump protocol version to 70002.


  Commit: a4978ba4c8a272c8a0dd710f5ddc797967113dba
      
https://github.com/btcsuite/btcd/commit/a4978ba4c8a272c8a0dd710f5ddc797967113dba
  Author: Dave Collins <[email protected]>
  Date:   2014-05-08 (Thu, 08 May 2014)

  Changed paths:
    M message_test.go
    A msgreject_test.go

  Log Message:
  -----------
  Add tests for the new MsgReject message.

This commit adds a full suite tests for the new reject message added in
protocol version 70002 to bring the overall test coverage of btcwire back
up to 100%.

Closes #9.


  Commit: dfdd2232237b2a40fd456851506272b110c49053
      
https://github.com/btcsuite/btcd/commit/dfdd2232237b2a40fd456851506272b110c49053
  Author: Dave Collins <[email protected]>
  Date:   2014-05-28 (Wed, 28 May 2014)

  Changed paths:
    M bench_test.go
    M blockheader_test.go
    M common_test.go
    R genesis.go
    R genesis_test.go
    M msggetblocks_test.go
    M msggetheaders_test.go
    M msgheaders_test.go
    M msgreject_test.go
    M shahash_test.go

  Log Message:
  -----------
  Move genesis blocks to btcnet package.

The genesis blocks are not really part of the wire protocol rather they
are part of a network parameters.  Thus, this commit moves the all of the
gensis blocks and tests to the btcnet package.

Also, create variables in the test package for the mainnet genesis hash,
merkle root, and coinbase transaction for use throughout the tests since
they the exported values are no longer available.


  Commit: c4135db7288579b2503007d1de88936e33d90033
      
https://github.com/btcsuite/btcd/commit/c4135db7288579b2503007d1de88936e33d90033
  Author: Dave Collins <[email protected]>
  Date:   2014-05-29 (Thu, 29 May 2014)

  Changed paths:
    M protocol.go

  Log Message:
  -----------
  Move default network ports to btcnet package.

The default network ports are not really part of the wire protocol rather
they are part of a network parameters.  Thus, this commit moves them to
the btcnet package.


  Commit: 31ee545aa932a360079512ca174980af5687715c
      
https://github.com/btcsuite/btcd/commit/31ee545aa932a360079512ca174980af5687715c
  Author: Dave Collins <[email protected]>
  Date:   2014-05-29 (Thu, 29 May 2014)

  Changed paths:
    M protocol.go
    M protocol_test.go

  Log Message:
  -----------
  Add bitcoin network type for simulation testing.


  Commit: 2054fa7581fb25f3cbb8b798af15cc5208935ec8
      
https://github.com/btcsuite/btcd/commit/2054fa7581fb25f3cbb8b798af15cc5208935ec8
  Author: Dave Collins <[email protected]>
  Date:   2014-06-02 (Mon, 02 Jun 2014)

  Changed paths:
    M doc.go

  Log Message:
  -----------
  Update doc.go to reflect reality.

This commit updates doc.go to include the new simulation test network
magic constant as well as remove the information about BIP0037 not being
supported since that is no longer true.


  Commit: ee46a0b108acc5eb099ad88fcecddd87c6867700
      
https://github.com/btcsuite/btcd/commit/ee46a0b108acc5eb099ad88fcecddd87c6867700
  Author: Dave Collins <[email protected]>
  Date:   2014-06-04 (Wed, 04 Jun 2014)

  Changed paths:
    M bench_test.go
    M blockheader_test.go
    M common_test.go
    M invvect_test.go
    M message.go
    M message_test.go
    M msgaddr_test.go
    M msgalert_test.go
    M msgblock_test.go
    M msgfilterclear_test.go
    M msgfilterload_test.go
    M msggetaddr_test.go
    M msggetblocks_test.go
    M msggetdata_test.go
    M msggetheaders_test.go
    M msgheaders_test.go
    M msginv_test.go
    M msgmerkleblock_test.go
    M msgnotfound_test.go
    M msgping_test.go
    M msgpong_test.go
    M msgreject_test.go
    M msgtx_test.go
    M msgverack_test.go
    M netaddress_test.go

  Log Message:
  -----------
  Use bytes.NewReader for deserialize when possible.

Rather than using bytes.NewBuffer, which is a read/write entity
(io.ReadWriter), use bytes.NewReader which is only a read entitiy
(io.Reader) in all cases where it is possible.  Benchmarking shows it's
slightly faster and it's also technically more accurate since it ensures
the data is read-only.

There are a few cases where bytes.NewBuffer must still be used since a
buffer with a known length is required for those instances.


  Commit: 7dcb68275f3fdef1dc514cf37ae1688496f6aeaf
      
https://github.com/btcsuite/btcd/commit/7dcb68275f3fdef1dc514cf37ae1688496f6aeaf
  Author: Josh Rickmar <[email protected]>
  Date:   2014-06-06 (Fri, 06 Jun 2014)

  Changed paths:
    M common.go
    M internal_test.go
    M message.go
    M message_test.go
    M msgalert.go
    M msgreject.go
    M msgreject_test.go
    M msgtx.go

  Log Message:
  -----------
  Make MaxMessagePayload an exported constant.

ok @davecgh


  Commit: 843e71515a3bffbd10b46a79627aa44832c6ed72
      
https://github.com/btcsuite/btcd/commit/843e71515a3bffbd10b46a79627aa44832c6ed72
  Author: Dave Collins <[email protected]>
  Date:   2014-06-29 (Sun, 29 Jun 2014)

  Changed paths:
    M blockheader.go
    M internal_test.go
    M msgblock.go
    M msgblock_test.go
    M msgtx.go

  Log Message:
  -----------
  Expose new SerializeSize API for blocks.

This commit adds a new function named SerializeSize to the public API for
MsgBlock which can be used to determine how many bytes the serialized data would
take without having to actually serialize it.  In addition, it makes the
exported BlockVersion an untyped constant as well as changes the block and
tx versions to a signed integer to more closely match the protocol.

Finally, this commit also adds tests for the new function.

The following benchmark shows the difference between using the new
function to get the serialize size for a typical block and serializing
into a temporary buffer and taking the length of it:

Bufffer: BenchmarkBlockSerializeSizeBuffer     200000          27050 ns/op
New:     BenchmarkBlockSerializeSizeNew     100000000             34 ns/op

Closes #19.


  Commit: 5032b07c6643bd8ea63ccde4f91283da7c389d16
      
https://github.com/btcsuite/btcd/commit/5032b07c6643bd8ea63ccde4f91283da7c389d16
  Author: Dave Collins <[email protected]>
  Date:   2014-06-29 (Sun, 29 Jun 2014)

  Changed paths:
    M blockheader.go

  Log Message:
  -----------
  Rename blockHashLen to blockHeaderLen.

The old name no longer makes sense because the hash length is the same as
the header length.


  Commit: 3a1009529f3575e44a1d30070c5fdd70770f9208
      
https://github.com/btcsuite/btcd/commit/3a1009529f3575e44a1d30070c5fdd70770f9208
  Author: Dave Collins <[email protected]>
  Date:   2014-07-02 (Wed, 02 Jul 2014)

  Changed paths:
    M bench_test.go
    M blockheader_test.go
    M common.go
    M common_test.go
    M fakemessage_test.go
    M invvect_test.go
    M message_test.go
    M msgaddr_test.go
    M msgalert_test.go
    M msgblock_test.go
    M msgfilteradd_test.go
    M msgfilterclear_test.go
    M msgfilterload_test.go
    M msggetaddr_test.go
    M msggetblocks_test.go
    M msggetdata_test.go
    M msggetheaders_test.go
    M msgheaders_test.go
    M msginv_test.go
    M msgmempool_test.go
    M msgmerkleblock_test.go
    M msgnotfound_test.go
    M msgping_test.go
    M msgpong_test.go
    M msgreject_test.go
    M msgtx_test.go
    M msgverack_test.go
    M msgversion_test.go
    M netaddress_test.go
    M protocol_test.go
    M shahash_test.go

  Log Message:
  -----------
  goimports -w .


  Commit: dd70618cc1ed08b04a6ce013230154a0df9db879
      
https://github.com/btcsuite/btcd/commit/dd70618cc1ed08b04a6ce013230154a0df9db879
  Author: Dave Collins <[email protected]>
  Date:   2014-07-12 (Sat, 12 Jul 2014)

  Changed paths:
    M common.go
    M internal_test.go
    M message.go

  Log Message:
  -----------
  Export CommandSize constant.

This commit exports the CommandSize constant to provide callers with the
ability to know the size of the command field in a bitcoin message header.


  Commit: 7ee3a2220bac1b13b7f9d1d47b28a3a1a2fa3372
      
https://github.com/btcsuite/btcd/commit/7ee3a2220bac1b13b7f9d1d47b28a3a1a2fa3372
  Author: Dave Collins <[email protected]>
  Date:   2014-07-13 (Sun, 13 Jul 2014)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Use a more specific license adjective.


  Commit: 4deb922c9d23d6167ec0d51b00e99a9fd020d09a
      
https://github.com/btcsuite/btcd/commit/4deb922c9d23d6167ec0d51b00e99a9fd020d09a
  Author: Dave Collins <[email protected]>
  Date:   2014-07-14 (Mon, 14 Jul 2014)

  Changed paths:
    M message.go
    M msgaddr.go
    M msgalert.go
    M msgblock.go
    M msgfilteradd.go
    M msgfilterclear.go
    M msgfilterload.go
    M msggetaddr.go
    M msggetblocks.go
    M msggetdata.go
    M msggetheaders.go
    M msgheaders.go
    M msginv.go
    M msgmempool.go
    M msgmerkleblock.go
    M msgnotfound.go
    M msgping.go
    M msgpong.go
    M msgreject.go
    M msgtx.go
    M msgverack.go
    M msgversion.go

  Log Message:
  -----------
  Export command constants.

Although it is possible to get the command name for each msg type by
creating an instances of the type and calling the Command method against
it, it's slightly more efficient to simply allows callers to have direct
access to the exported constants.

This is currently really useful for the reject message since callers need
to be able to examine the command type to determine whether or not the
hash field needs to be included.


  Commit: 225248d2834ff4f41d1367100f90bb228d55cfc5
      
https://github.com/btcsuite/btcd/commit/225248d2834ff4f41d1367100f90bb228d55cfc5
  Author: Dave Collins <[email protected]>
  Date:   2014-09-05 (Fri, 05 Sep 2014)

  Changed paths:
    M common_test.go

  Log Message:
  -----------
  Use byte literals in tests to make go vet happy.

The go vet command complains about untagged struct initializers when
defining a ShaHash directly.  This seems to be a limitation where go vet
does not exclude the warning for types which are a constant size byte array
like it does for normal constant size byte array definition.

This commit simply modifies the tests to use a constant definition cast to a
ShaHash to overcome the limitation of go vet.


  Commit: 0127b3aafeb23a6031687bf47964dda9e30784c0
      
https://github.com/btcsuite/btcd/commit/0127b3aafeb23a6031687bf47964dda9e30784c0
  Author: Josh Rickmar <[email protected]>
  Date:   2014-09-12 (Fri, 12 Sep 2014)

  Changed paths:
    M shahash.go

  Log Message:
  -----------
  Make ErrHashStrSize slightly more descriptive.

Add the word 'string' to the error string so if this is printed, it
will be clearer that it was a hash string decode that failed (as
opposed to other errors creating a ShaHash from a byte slice) and
change 'chars' to 'bytes', since the string length is measured in
bytes, not UTF-8 code points.

ok @davecgh


  Commit: 8733b9c8df9fd1c6a563cc06cecb301610b87fe5
      
https://github.com/btcsuite/btcd/commit/8733b9c8df9fd1c6a563cc06cecb301610b87fe5
  Author: Dave Collins <[email protected]>
  Date:   2014-09-20 (Sat, 20 Sep 2014)

  Changed paths:
    M msgversion.go

  Log Message:
  -----------
  Bump default user agent to 0.2.0.


  Commit: ccee51a0beff285382ea65ee8cddf5eb56c0903b
      
https://github.com/btcsuite/btcd/commit/ccee51a0beff285382ea65ee8cddf5eb56c0903b
  Author: Jonathan Gillham <[email protected]>
  Date:   2014-10-01 (Wed, 01 Oct 2014)

  Changed paths:
    M bench_test.go
    M msgblock_test.go
    M msgtx.go
    M msgtx_test.go

  Log Message:
  -----------
  Changed TxIn.PreviousOutpoint to TxIn.PreviousOutPoint for consistency.


  Commit: a0fe3822fc6fc80f4d1d1c971850a652610fd5e3
      
https://github.com/btcsuite/btcd/commit/a0fe3822fc6fc80f4d1d1c971850a652610fd5e3
  Author: Jonathan Gillham <[email protected]>
  Date:   2014-10-01 (Wed, 01 Oct 2014)

  Changed paths:
    M msgtx.go

  Log Message:
  -----------
  Fixed minTxInPayload documentation.


  Commit: 4b6cd175615634bbb36c01dcd8f4bafdbb2a05e9
      
https://github.com/btcsuite/btcd/commit/4b6cd175615634bbb36c01dcd8f4bafdbb2a05e9
  Author: Dave Collins <[email protected]>
  Date:   2014-11-14 (Fri, 14 Nov 2014)

  Changed paths:
    M common.go
    M common_test.go

  Log Message:
  -----------
  Make RandomUint64 block until entropy is available.

This commit modifies the RandomUint64 function so that rather than
returning an io.ErrShortBuffer when the system does not have enough
entropy available, it now blocks until it does have enough.  This means
that RandomUint64 will now always eventually succeed unless the entropy
source is closed (which only really ever happens when the operating system
is shutting down).

The tests have also been updated for the change in semantics to maintain
100% coverage.

Closes #23.


  Commit: 7a1a260b78b7251fcb53ce6664c370d70d2a11ba
      
https://github.com/btcsuite/btcd/commit/7a1a260b78b7251fcb53ce6664c370d70d2a11ba
  Author: Dave Collins <[email protected]>
  Date:   2014-11-14 (Fri, 14 Nov 2014)

  Changed paths:
    M .travis.yml
    A get_ci_cover.sh

  Log Message:
  -----------
  Update TravisCI to work with go tip.

This commit modifies the .travis.yml to invoke a new script which has also
been added that gets the test coverage tool from the new path needed by go
tip.


  Commit: 5a477c332b23f7fadc453af273ba10f9c1dcf655
      
https://github.com/btcsuite/btcd/commit/5a477c332b23f7fadc453af273ba10f9c1dcf655
  Author: Dave Collins <[email protected]>
  Date:   2014-12-11 (Thu, 11 Dec 2014)

  Changed paths:
    M .travis.yml
    R get_ci_cover.sh

  Log Message:
  -----------
  Update TravisCI for Go 1.4 release.

Now that Go 1.4 has been released, this commit reverts the recent changes
which dealt with allowing TravisCI to work with go tip in between the Go
1.3 and Go 1.4 release cycle and updates the .travis.yml to invoke test
coverage tool from the new path in Go 1.4.


  Commit: 90e8b84c8bf289d4a78987c02cdbd3fe4690beb7
      
https://github.com/btcsuite/btcd/commit/90e8b84c8bf289d4a78987c02cdbd3fe4690beb7
  Author: Dave Collins <[email protected]>
  Date:   2014-12-22 (Mon, 22 Dec 2014)

  Changed paths:
    M .travis.yml
    M internal_test.go

  Log Message:
  -----------
  Update TravisCI to goclean script.

- Also update to use the new container-based builds
- Modify the tests slightly to make golint happy


  Commit: a680fb6f25b9c50134b8cb828ea1a56c13108d40
      
https://github.com/btcsuite/btcd/commit/a680fb6f25b9c50134b8cb828ea1a56c13108d40
  Author: Dave Collins <[email protected]>
  Date:   2014-12-22 (Mon, 22 Dec 2014)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Update badges in README.md to SVG.

Also add a license badge while here.


  Commit: df3469a79281028b6a7b93bb133e4c32e2fb9aa5
      
https://github.com/btcsuite/btcd/commit/df3469a79281028b6a7b93bb133e4c32e2fb9aa5
  Author: Josh Rickmar <[email protected]>
  Date:   2015-01-05 (Mon, 05 Jan 2015)

  Changed paths:
    M shahash.go

  Log Message:
  -----------
  Improve ShaHash.String comment and implementation.

The hash is not displayed big endian, but rather as a byte-reversed
hash as a hexidecimal string, so document it as such.

While here, speed up the function.  Some benchmarks:

BenchmarkShaHashString   2000000               996 ns/op
BenchmarkShaHashStringOld         100000             22701 ns/op


  Commit: a9e05a3030afe9c2e4e5e63250d6c190215aa08e
      
https://github.com/btcsuite/btcd/commit/a9e05a3030afe9c2e4e5e63250d6c190215aa08e
  Author: Josh Rickmar <[email protected]>
  Date:   2015-01-05 (Mon, 05 Jan 2015)

  Changed paths:
    M msgtx.go
    M msgtx_test.go

  Log Message:
  -----------
  Implement String for OutPoint.


  Commit: 0d01bb9cb9a988a39497f4ecef2408d42459eca9
      
https://github.com/btcsuite/btcd/commit/0d01bb9cb9a988a39497f4ecef2408d42459eca9
  Author: Josh Rickmar <[email protected]>
  Date:   2015-01-06 (Tue, 06 Jan 2015)

  Changed paths:
    M shahash.go
    M shahash_test.go

  Log Message:
  -----------
  Optimize NewShaHashFromStr.


  Commit: 3ae8056fdb0f6823a32613af2fc0336f06bca835
      
https://github.com/btcsuite/btcd/commit/3ae8056fdb0f6823a32613af2fc0336f06bca835
  Author: Dave Collins <[email protected]>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M bench_test.go
    M internal_test.go

  Log Message:
  -----------
  Move the benchmarks into the main btcwire package.

The benchmarks are still only compiled when running 'go test' so this has
no effect on regular usage.  This is being done because benchmarks often
need access to internal state.

Normal tests are kept in a separate package since they also serve to
exercise the public API, and by intentionally making it more difficult to
reach into the internals, it helps ensure the public API is sanely usable.

Since the benchmarks can now access the internals directly, this commit
also removes the functions which exposed the internals to the test package
from internal_test.go which were only used by the benchmarks.


  Commit: a9183f688ff8134c0985c4196eb38aca0da49001
      
https://github.com/btcsuite/btcd/commit/a9183f688ff8134c0985c4196eb38aca0da49001
  Author: Dave Collins <[email protected]>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M msgalert.go
    M msgmerkleblock.go

  Log Message:
  -----------
  Ensure all serialization is using fast path.

The writeElement function provides faster serialization for primitives.
This commit modifies all instances that call writeElement with a
pointer to a primitive or a byte slice to instead use the primitive /
writeVarBytes function so the faster serialization paths are used.


  Commit: 2c1923897dd73ff227065ba05479f780675121b8
      
https://github.com/btcsuite/btcd/commit/2c1923897dd73ff227065ba05479f780675121b8
  Author: Dave Collins <[email protected]>
  Date:   2015-01-16 (Fri, 16 Jan 2015)

  Changed paths:
    M common.go

  Log Message:
  -----------
  Update fastsha256 import paths to new location.


  Commit: d3e2947c059d3ac6c7e33d9547e4d2f9cbd6c71c
      
https://github.com/btcsuite/btcd/commit/d3e2947c059d3ac6c7e33d9547e4d2f9cbd6c71c
  Author: Dave Collins <[email protected]>
  Date:   2015-01-16 (Fri, 16 Jan 2015)

  Changed paths:
    M README.md
    M blockheader_test.go
    M common_test.go
    M fakemessage_test.go
    M invvect_test.go
    M message_test.go
    M msgaddr_test.go
    M msgalert_test.go
    M msgblock_test.go
    M msgfilteradd_test.go
    M msgfilterclear_test.go
    M msgfilterload_test.go
    M msggetaddr_test.go
    M msggetblocks_test.go
    M msggetdata_test.go
    M msggetheaders_test.go
    M msgheaders_test.go
    M msginv_test.go
    M msgmempool_test.go
    M msgmerkleblock_test.go
    M msgnotfound_test.go
    M msgping_test.go
    M msgpong_test.go
    M msgreject_test.go
    M msgtx_test.go
    M msgverack_test.go
    M msgversion_test.go
    M netaddress_test.go
    M protocol_test.go
    M shahash_test.go

  Log Message:
  -----------
  Update btcwire import paths to new location.


  Commit: cb858fd1071d967dbc6662df55bfd7f3469ecebc
      
https://github.com/btcsuite/btcd/commit/cb858fd1071d967dbc6662df55bfd7f3469ecebc
  Author: Dave Collins <[email protected]>
  Date:   2015-01-16 (Fri, 16 Jan 2015)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Update to new location in README.md too.


  Commit: 2eef3720a95697bd8d3bd9556a40bdcf338f2488
      
https://github.com/btcsuite/btcd/commit/2eef3720a95697bd8d3bd9556a40bdcf338f2488
  Author: Dave Collins <[email protected]>
  Date:   2015-01-31 (Sat, 31 Jan 2015)

  Changed paths:
    R .gitignore
    R .travis.yml
    R LICENSE
    R README.md
    R bench_test.go
    R blockheader.go
    R blockheader_test.go
    R common.go
    R common_test.go
    R cov_report.sh
    R doc.go
    R error.go
    R fakeconn_test.go
    R fakemessage_test.go
    R fixedIO_test.go
    R internal_test.go
    R invvect.go
    R invvect_test.go
    R message.go
    R message_test.go
    R msgaddr.go
    R msgaddr_test.go
    R msgalert.go
    R msgalert_test.go
    R msgblock.go
    R msgblock_test.go
    R msgfilteradd.go
    R msgfilteradd_test.go
    R msgfilterclear.go
    R msgfilterclear_test.go
    R msgfilterload.go
    R msgfilterload_test.go
    R msggetaddr.go
    R msggetaddr_test.go
    R msggetblocks.go
    R msggetblocks_test.go
    R msggetdata.go
    R msggetdata_test.go
    R msggetheaders.go
    R msggetheaders_test.go
    R msgheaders.go
    R msgheaders_test.go
    R msginv.go
    R msginv_test.go
    R msgmempool.go
    R msgmempool_test.go
    R msgmerkleblock.go
    R msgmerkleblock_test.go
    R msgnotfound.go
    R msgnotfound_test.go
    R msgping.go
    R msgping_test.go
    R msgpong.go
    R msgpong_test.go
    R msgreject.go
    R msgreject_test.go
    R msgtx.go
    R msgtx_test.go
    R msgverack.go
    R msgverack_test.go
    R msgversion.go
    R msgversion_test.go
    R netaddress.go
    R netaddress_test.go
    R protocol.go
    R protocol_test.go
    R shahash.go
    R shahash_test.go
    A wire/README.md
    A wire/bench_test.go
    A wire/blockheader.go
    A wire/blockheader_test.go
    A wire/common.go
    A wire/common_test.go
    A wire/doc.go
    A wire/error.go
    A wire/fakeconn_test.go
    A wire/fakemessage_test.go
    A wire/fixedIO_test.go
    A wire/internal_test.go
    A wire/invvect.go
    A wire/invvect_test.go
    A wire/message.go
    A wire/message_test.go
    A wire/msgaddr.go
    A wire/msgaddr_test.go
    A wire/msgalert.go
    A wire/msgalert_test.go
    A wire/msgblock.go
    A wire/msgblock_test.go
    A wire/msgfilteradd.go
    A wire/msgfilteradd_test.go
    A wire/msgfilterclear.go
    A wire/msgfilterclear_test.go
    A wire/msgfilterload.go
    A wire/msgfilterload_test.go
    A wire/msggetaddr.go
    A wire/msggetaddr_test.go
    A wire/msggetblocks.go
    A wire/msggetblocks_test.go
    A wire/msggetdata.go
    A wire/msggetdata_test.go
    A wire/msggetheaders.go
    A wire/msggetheaders_test.go
    A wire/msgheaders.go
    A wire/msgheaders_test.go
    A wire/msginv.go
    A wire/msginv_test.go
    A wire/msgmempool.go
    A wire/msgmempool_test.go
    A wire/msgmerkleblock.go
    A wire/msgmerkleblock_test.go
    A wire/msgnotfound.go
    A wire/msgnotfound_test.go
    A wire/msgping.go
    A wire/msgping_test.go
    A wire/msgpong.go
    A wire/msgpong_test.go
    A wire/msgreject.go
    A wire/msgreject_test.go
    A wire/msgtx.go
    A wire/msgtx_test.go
    A wire/msgverack.go
    A wire/msgverack_test.go
    A wire/msgversion.go
    A wire/msgversion_test.go
    A wire/netaddress.go
    A wire/netaddress_test.go
    A wire/protocol.go
    A wire/protocol_test.go
    A wire/shahash.go
    A wire/shahash_test.go

  Log Message:
  -----------
  Import btcwire repo into wire directory.

This commit contains the entire btcwire repository along with several
changes needed to move all of the files into the wire directory in
order to prepare it for merging.  This does NOT update btcd or any of the
other packages to use the new location as that will be done separately.

- All import paths in the old btcwire test files have been changed to the
  new location
- All references to btcwire as the package name have been chagned to
  wire
- The coveralls badge has been removed since it unfortunately doesn't
  support coverage of sub-packages

This is ongoing work toward #214.


  Commit: cf6fc57f27f515ecd48815fdb4de1fdef351843e
      
https://github.com/btcsuite/btcd/commit/cf6fc57f27f515ecd48815fdb4de1fdef351843e
  Author: Dave Collins <[email protected]>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    A wire/README.md
    A wire/bench_test.go
    A wire/blockheader.go
    A wire/blockheader_test.go
    A wire/common.go
    A wire/common_test.go
    A wire/doc.go
    A wire/error.go
    A wire/fakeconn_test.go
    A wire/fakemessage_test.go
    A wire/fixedIO_test.go
    A wire/internal_test.go
    A wire/invvect.go
    A wire/invvect_test.go
    A wire/message.go
    A wire/message_test.go
    A wire/msgaddr.go
    A wire/msgaddr_test.go
    A wire/msgalert.go
    A wire/msgalert_test.go
    A wire/msgblock.go
    A wire/msgblock_test.go
    A wire/msgfilteradd.go
    A wire/msgfilteradd_test.go
    A wire/msgfilterclear.go
    A wire/msgfilterclear_test.go
    A wire/msgfilterload.go
    A wire/msgfilterload_test.go
    A wire/msggetaddr.go
    A wire/msggetaddr_test.go
    A wire/msggetblocks.go
    A wire/msggetblocks_test.go
    A wire/msggetdata.go
    A wire/msggetdata_test.go
    A wire/msggetheaders.go
    A wire/msggetheaders_test.go
    A wire/msgheaders.go
    A wire/msgheaders_test.go
    A wire/msginv.go
    A wire/msginv_test.go
    A wire/msgmempool.go
    A wire/msgmempool_test.go
    A wire/msgmerkleblock.go
    A wire/msgmerkleblock_test.go
    A wire/msgnotfound.go
    A wire/msgnotfound_test.go
    A wire/msgping.go
    A wire/msgping_test.go
    A wire/msgpong.go
    A wire/msgpong_test.go
    A wire/msgreject.go
    A wire/msgreject_test.go
    A wire/msgtx.go
    A wire/msgtx_test.go
    A wire/msgverack.go
    A wire/msgverack_test.go
    A wire/msgversion.go
    A wire/msgversion_test.go
    A wire/netaddress.go
    A wire/netaddress_test.go
    A wire/protocol.go
    A wire/protocol_test.go
    A wire/shahash.go
    A wire/shahash_test.go

  Log Message:
  -----------
  Merge btcwire repo into wire directory.


Compare: https://github.com/btcsuite/btcd/compare/642e3c741af3...cf6fc57f27f5

Reply via email to