Branch: refs/heads/master
Home: https://github.com/conformal/btcwire
Commit: bdec7f8abb55c26d87f2aecc7d5ea4844bffaa73
https://github.com/conformal/btcwire/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/conformal/btcwire/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.
Compare:
https://github.com/conformal/btcwire/compare/2cc89bbf5ba4...a98f5ca38ee3