mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
Correct a few instances of missed pkg name changes.
This commit is contained in:
parent
ecdffda748
commit
2e5bb96eea
@ -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 {
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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) -
|
||||
|
@ -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
|
||||
|
4
peer.go
4
peer.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user