diff --git a/README.md b/README.md index 180afa8c..d4ea306d 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ is by no means exhaustive: ## Examples * [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 attempt to attempt add a block to the chain. This example intentionally attempts to insert a duplicate genesis block to illustrate how an invalid diff --git a/example_test.go b/example_test.go index b5a0d8e1..3f88bf78 100644 --- a/example_test.go +++ b/example_test.go @@ -18,7 +18,7 @@ import ( // overview documentation describes, this includes all of the Bitcoin consensus // rules. This example intentionally attempts to insert a duplicate genesis // 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 // 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