lbcd/cmd/addblock
Dave Collins 00ebb9d14d blockchain: Associate time src with chain instance.
Rather than making the caller to pass in the median time source on
ProcessBlock and IsCurrent, modify the Config struct to include the
median time source and associate it with the chain instance when it is
created.

This is being done because both the ProcessBlock and IsCurrent functions
require access to the blockchain state already, it is a little bit safer
to ensure the time source matches the chain instance state, it
simplifies the caller logic, and it also allows its use within the logic
of the blockchain package itself which will be required by upcoming
rule change warning logic that is part of BIP9.
2016-07-14 13:10:47 -05:00
..
addblock.go addblock: Add support for generating indexes. 2016-06-03 17:06:16 -05:00
config.go addblock: Add support for generating indexes. 2016-06-03 17:06:16 -05:00
import.go blockchain: Associate time src with chain instance. 2016-07-14 13:10:47 -05:00