From 62c14b70014cc78127ac90c7d952d1498fe82859 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 8 Jul 2014 01:49:48 -0500 Subject: [PATCH] Name new example so it shows up properly on godoc. --- README.md | 2 +- example_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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