lbcd/cmd/addblock
Dave Collins 77913ad2e8
blockchain: Expose main chain flag on ProcessBlock.
This modifies the blockchain.ProcessBlock function to return an
additional boolean as the first parameter which indicates whether or not
the block ended up on the main chain.

This is primarily useful for upcoming test code that needs to be able to
tell the difference between a block accepted to a side chain and a block
that either extends the main chain or causes a reorganize that causes it
to become the main chain.  However, it is also useful for the addblock
utility since it allows a better error in the case a file with out of
order blocks is provided.
2016-10-13 16:47:50 -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: Expose main chain flag on ProcessBlock. 2016-10-13 16:47:50 -05:00