Correct a few instances of missed pkg name changes.
This commit is contained in:
parent
ecdffda748
commit
2e5bb96eea
6 changed files with 13 additions and 13 deletions
|
@ -18,7 +18,7 @@ import (
|
||||||
const CheckpointConfirmations = 2016
|
const CheckpointConfirmations = 2016
|
||||||
|
|
||||||
// newShaHashFromStr converts the passed big-endian hex string into a
|
// 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
|
// it ignores the error since it will only (and must only) be called with
|
||||||
// hard-coded, and therefore known good, hashes.
|
// hard-coded, and therefore known good, hashes.
|
||||||
func newShaHashFromStr(hexStr string) *wire.ShaHash {
|
func newShaHashFromStr(hexStr string) *wire.ShaHash {
|
||||||
|
|
|
@ -48,7 +48,7 @@ func (db *LevelDb) FetchBlockHeightBySha(sha *wire.ShaHash) (int64, error) {
|
||||||
return db.getBlkLoc(sha)
|
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) {
|
func (db *LevelDb) FetchBlockHeaderBySha(sha *wire.ShaHash) (bh *wire.BlockHeader, err error) {
|
||||||
db.dbLock.Lock()
|
db.dbLock.Lock()
|
||||||
defer db.dbLock.Unlock()
|
defer db.dbLock.Unlock()
|
||||||
|
|
|
@ -38,8 +38,8 @@ type tTxInsertData struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// newShaHashFromStr converts the passed big-endian hex string into a
|
// 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
|
||||||
// it ignores the error since it will only (and must only) be called with
|
// ignores the error since it will only (and must only) be called with
|
||||||
// hard-coded, and therefore known good, hashes.
|
// hard-coded, and therefore known good, hashes.
|
||||||
func newShaHashFromStr(hexStr string) *wire.ShaHash {
|
func newShaHashFromStr(hexStr string) *wire.ShaHash {
|
||||||
sha, _ := wire.NewShaHashFromStr(hexStr)
|
sha, _ := wire.NewShaHashFromStr(hexStr)
|
||||||
|
|
|
@ -195,12 +195,12 @@ information.
|
||||||
* [btcws](https://github.com/btcsuite/btcws) - Custom types for btcd
|
* [btcws](https://github.com/btcsuite/btcws) - Custom types for btcd
|
||||||
websocket extension commands (registers the extension commands with
|
websocket extension commands (registers the extension commands with
|
||||||
[btcjson](https://github.com/btcsuite/btcjson))
|
[btcjson](https://github.com/btcsuite/btcjson))
|
||||||
* [btcwire](https://github.com/btcsuite/btcwire) - Implements the Bitcoin
|
* [wire](https://github.com/btcsuite/btcd/tree/master/wire) - Implements the
|
||||||
wire protocol
|
Bitcoin wire protocol
|
||||||
* [blockchain](https://github.com/btcsuite/btcd/blockchain) - Implements
|
* [blockchain](https://github.com/btcsuite/btcd/blockchain) - Implements
|
||||||
Bitcoin block handling and chain selection rules
|
Bitcoin block handling and chain selection rules
|
||||||
* [txscript](https://github.com/btcsuite/btcd/txscript) - Implements the
|
* [txscript](https://github.com/btcsuite/btcd/tree/master/txscript) -
|
||||||
Bitcoin transaction scripting language
|
Implements the Bitcoin transaction scripting language
|
||||||
* [btcec](https://github.com/btcsuite/btcec) - Implements support for the
|
* [btcec](https://github.com/btcsuite/btcec) - Implements support for the
|
||||||
elliptic curve cryptographic functions needed for the Bitcoin scripts
|
elliptic curve cryptographic functions needed for the Bitcoin scripts
|
||||||
* [database](https://github.com/btcsuite/btcd/tree/master/database) -
|
* [database](https://github.com/btcsuite/btcd/tree/master/database) -
|
||||||
|
|
|
@ -21,9 +21,9 @@ const (
|
||||||
// generatedBlockVersion is the version of the block being generated.
|
// generatedBlockVersion is the version of the block being generated.
|
||||||
// It is defined as a constant here rather than using the
|
// It is defined as a constant here rather than using the
|
||||||
// wire.BlockVersion constant since a change in the block version
|
// wire.BlockVersion constant since a change in the block version
|
||||||
// will require changes to the generated block. Using the btcwire
|
// will require changes to the generated block. Using the wire constant
|
||||||
// constant for generated block version could allow creation of invalid
|
// for generated block version could allow creation of invalid blocks
|
||||||
// blocks for the updated version.
|
// for the updated version.
|
||||||
generatedBlockVersion = 2
|
generatedBlockVersion = 2
|
||||||
|
|
||||||
// minHighPriority is the minimum priority value that allows a
|
// minHighPriority is the minimum priority value that allows a
|
||||||
|
|
4
peer.go
4
peer.go
|
@ -1417,8 +1417,8 @@ out:
|
||||||
// command in the header if at least
|
// command in the header if at least
|
||||||
// that much of the message was valid,
|
// that much of the message was valid,
|
||||||
// but that is not currently exposed by
|
// but that is not currently exposed by
|
||||||
// btcwire, so just used malformed for
|
// wire, so just used malformed for the
|
||||||
// the command.
|
// command.
|
||||||
p.PushRejectMsg("malformed",
|
p.PushRejectMsg("malformed",
|
||||||
wire.RejectMalformed, errMsg,
|
wire.RejectMalformed, errMsg,
|
||||||
nil, true)
|
nil, true)
|
||||||
|
|
Loading…
Reference in a new issue