Name new example so it shows up properly on godoc.

This commit is contained in:
Dave Collins 2014-07-08 01:49:48 -05:00
parent 94845326b5
commit 62c14b7001
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ is by no means exhaustive:
## Examples ## Examples
* [ProcessBlock Example] * [ProcessBlock Example]
(http://godoc.org/github.com/conformal/btcchain#example-ProcessBlock) (http://godoc.org/github.com/conformal/btcchain#example-BlockChain-ProcessBlock)
Demonstrates how to create a new chain instance and use ProcessBlock to Demonstrates how to create a new chain instance and use ProcessBlock to
attempt to attempt add a block to the chain. This example intentionally attempt to attempt add a block to the chain. This example intentionally
attempts to insert a duplicate genesis block to illustrate how an invalid attempts to insert a duplicate genesis block to illustrate how an invalid

View file

@ -18,7 +18,7 @@ import (
// overview documentation describes, this includes all of the Bitcoin consensus // overview documentation describes, this includes all of the Bitcoin consensus
// rules. This example intentionally attempts to insert a duplicate genesis // rules. This example intentionally attempts to insert a duplicate genesis
// block to illustrate how an invalid block is handled. // block to illustrate how an invalid block is handled.
func ExampleProcessBlock() { func ExampleBlockChain_ProcessBlock() {
// Create a new database to store the accepted blocks into. Typically // Create a new database to store the accepted blocks into. Typically
// this would be opening an existing database and would not use memdb // this would be opening an existing database and would not use memdb
// which is a memory-only database backend, but we create a new db // which is a memory-only database backend, but we create a new db