Branch: refs/heads/master
Home: https://github.com/conformal/btcchain
Commit: 1c052a01d802535900812ac1c55a6b585ecd8fc8
https://github.com/conformal/btcchain/commit/1c052a01d802535900812ac1c55a6b585ecd8fc8
Author: Dave Collins <[email protected]>
Date: 2014-02-24 (Mon, 24 Feb 2014)
Changed paths:
M test_coverage.txt
M validate.go
M validate_test.go
Log Message:
-----------
Reject blocks with high precision timestamps.
This commit adds an additional sanity check to ensure the block that is
being processed does not contain a timestamp with a precision higher than
one second. This is necessary because the consensus rules only deal with
whole seconds in the time comparisons whereas the internal data structures
make use of Go time.Time values which support up to nanosecond precision.
Also, add a test to ensure the new functionality works as expected.
ok @owainga