From 355502c97087530b89e737fed3c3d4b5fe8f0764 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 19 Jul 2013 10:08:09 -0500 Subject: [PATCH] Update documentation for IsCheckpointCandidate. The bulleted list was not indented which caused godoc to show the documentation improperly. --- checkpoints.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/checkpoints.go b/checkpoints.go index ba3a4233..8f2077c3 100644 --- a/checkpoints.go +++ b/checkpoints.go @@ -167,14 +167,14 @@ func isNonstandardTransaction(tx *btcwire.MsgTx) bool { // checkpoint candidate. // // The factors used to determine a good checkpoint are: -// - The block must be in the main chain -// - The block must be at least 'CheckpointConfirmations' blocks prior to the -// current end of the main chain -// - The timestamps for the blocks before and after the checkpoint must have -// timestamps which are also before and after the checkpoint, respectively -// (due to the median time allowance this is not always the case) -// - The block must not contain any strange transaction such as those with -// nonstandard scripts +// - The block must be in the main chain +// - The block must be at least 'CheckpointConfirmations' blocks prior to the +// current end of the main chain +// - The timestamps for the blocks before and after the checkpoint must have +// timestamps which are also before and after the checkpoint, respectively +// (due to the median time allowance this is not always the case) +// - The block must not contain any strange transaction such as those with +// nonstandard scripts func (b *BlockChain) IsCheckpointCandidate(block *btcutil.Block) (bool, error) { // Checkpoints must be enabled. if b.noCheckpoints {