Skip to content

Commit

Permalink
Correct a few instances of missed pkg name changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Feb 5, 2015
1 parent ecdffda commit 2e5bb96
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion blockchain/checkpoints.go
Expand Up @@ -18,7 +18,7 @@ import (
const CheckpointConfirmations = 2016

// newShaHashFromStr converts the passed big-endian hex string into a
// wire.ShaHash. It only differs from the one available in btcwire in that
// wire.ShaHash. It only differs from the one available in wire in that
// it ignores the error since it will only (and must only) be called with
// hard-coded, and therefore known good, hashes.
func newShaHashFromStr(hexStr string) *wire.ShaHash {
Expand Down
2 changes: 1 addition & 1 deletion database/ldb/block.go
Expand Up @@ -48,7 +48,7 @@ func (db *LevelDb) FetchBlockHeightBySha(sha *wire.ShaHash) (int64, error) {
return db.getBlkLoc(sha)
}

// FetchBlockHeaderBySha - return a btcwire ShaHash
// FetchBlockHeaderBySha - return a ShaHash
func (db *LevelDb) FetchBlockHeaderBySha(sha *wire.ShaHash) (bh *wire.BlockHeader, err error) {
db.dbLock.Lock()
defer db.dbLock.Unlock()
Expand Down
4 changes: 2 additions & 2 deletions database/memdb/memdb.go
Expand Up @@ -38,8 +38,8 @@ type tTxInsertData struct {
}

// newShaHashFromStr converts the passed big-endian hex string into a
// wire.ShaHash. It only differs from the one available in btcwire in that
// it ignores the error since it will only (and must only) be called with
// wire.ShaHash. It only differs from the one available in wire in that it
// ignores the error since it will only (and must only) be called with
// hard-coded, and therefore known good, hashes.
func newShaHashFromStr(hexStr string) *wire.ShaHash {
sha, _ := wire.NewShaHashFromStr(hexStr)
Expand Down
8 changes: 4 additions & 4 deletions docs/README.md
Expand Up @@ -195,12 +195,12 @@ information.
* [btcws](https://github.com/btcsuite/btcws) - Custom types for btcd
websocket extension commands (registers the extension commands with
[btcjson](https://github.com/btcsuite/btcjson))
* [btcwire](https://github.com/btcsuite/btcwire) - Implements the Bitcoin
wire protocol
* [wire](https://github.com/btcsuite/btcd/tree/master/wire) - Implements the
Bitcoin wire protocol
* [blockchain](https://github.com/btcsuite/btcd/blockchain) - Implements
Bitcoin block handling and chain selection rules
* [txscript](https://github.com/btcsuite/btcd/txscript) - Implements the
Bitcoin transaction scripting language
* [txscript](https://github.com/btcsuite/btcd/tree/master/txscript) -
Implements the Bitcoin transaction scripting language
* [btcec](https://github.com/btcsuite/btcec) - Implements support for the
elliptic curve cryptographic functions needed for the Bitcoin scripts
* [database](https://github.com/btcsuite/btcd/tree/master/database) -
Expand Down
6 changes: 3 additions & 3 deletions mining.go
Expand Up @@ -21,9 +21,9 @@ const (
// generatedBlockVersion is the version of the block being generated.
// It is defined as a constant here rather than using the
// wire.BlockVersion constant since a change in the block version
// will require changes to the generated block. Using the btcwire
// constant for generated block version could allow creation of invalid
// blocks for the updated version.
// will require changes to the generated block. Using the wire constant
// for generated block version could allow creation of invalid blocks
// for the updated version.
generatedBlockVersion = 2

// minHighPriority is the minimum priority value that allows a
Expand Down
4 changes: 2 additions & 2 deletions peer.go
Expand Up @@ -1417,8 +1417,8 @@ out:
// command in the header if at least
// that much of the message was valid,
// but that is not currently exposed by
// btcwire, so just used malformed for
// the command.
// wire, so just used malformed for the
// command.
p.PushRejectMsg("malformed",
wire.RejectMalformed, errMsg,
nil, true)
Expand Down

0 comments on commit 2e5bb96

Please sign in to comment.