Branch: refs/heads/master
Home: https://github.com/conformal/btcwire
Commit: 497aac6d4accaabd0df9a2706b7399a5afe819ea
https://github.com/conformal/btcwire/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/conformal/btcwire/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%.
Compare:
https://github.com/conformal/btcwire/compare/e64e6f075765...2458841855ed