Branch: refs/heads/master Home: https://github.com/conformal/btcchain Commit: df065eee1903cead496672d968a44bb7d585e078 https://github.com/conformal/btcchain/commit/df065eee1903cead496672d968a44bb7d585e078 Author: Dave Collins <da...@conformal.com> Date: 2014-10-10 (Fri, 10 Oct 2014)
Changed paths: M chain.go M chain_test.go M example_test.go A mediantime.go M process.go M reorganization_test.go M validate.go M validate_test.go Log Message: ----------- Provide a new median time source API. This commit provides a new interface, MedianTimeSource, along with a concrete implementation which allows improved accuracy of time by making use of the median network time as calculated from multiple time samples. The time samples are to be provided by callers and are intended to come from remote clients. The calculations performed in this implementation exactly mirror those in Bitcoin Core because time calculations are part of the consensus rules and hence need to match exactly. Commit: 208d4d79d7b732d651a1682424c7402503933615 https://github.com/conformal/btcchain/commit/208d4d79d7b732d651a1682424c7402503933615 Author: Dave Collins <da...@conformal.com> Date: 2014-10-10 (Fri, 10 Oct 2014) Changed paths: M internal_test.go A mediantime_test.go Log Message: ----------- Add 100% test coverage for new median time code. Compare: https://github.com/conformal/btcchain/compare/f60e503308bf...208d4d79d7b7