Branch: refs/heads/master Home: https://github.com/btcsuite/btcd Commit: c57c18c8e2e9c43b5cc81b04e5f84b23ccf95661 https://github.com/btcsuite/btcd/commit/c57c18c8e2e9c43b5cc81b04e5f84b23ccf95661 Author: Dave Collins <da...@conformal.com> Date: 2016-08-23 (Tue, 23 Aug 2016)
Changed paths: M blockchain/chain.go M blockchain/chainio.go Log Message: ----------- blockchain: Add median time to state snapshot. This adds a new field to the best chain state snapshot for the calculated past median time as returned by the calcPastMedianTime function. This is useful since it provides fast access to it without having to acquire the chain lock which is needed to recalculate it. This will ultimately allow the associated exported function to be removed since it only exists to be able to calculate this exact value, however this commit only introduces the new field in order to keep the changes minimal.