Branch: refs/heads/master
Home: https://github.com/conformal/btcwire
Commit: 13e0b0e7b9b6cf79e7b14d2adee40a2f52437150
https://github.com/conformal/btcwire/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.