mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-19 05:33:36 +01:00
Fix some comment typos.
This commit is contained in:
parent
b661dd3693
commit
510a44bdd9
@ -572,7 +572,7 @@ func (b *blockManager) handleBlockMsg(bmsg *blockMsg) {
|
||||
// fetchHeaderBlocks creates and sends a request to the syncPeer for the next
|
||||
// list of blocks to be downloaded based on the current list of headers.
|
||||
func (b *blockManager) fetchHeaderBlocks() {
|
||||
// Nothing to do if there is not start header.
|
||||
// Nothing to do if there is no start header.
|
||||
if b.startHeader == nil {
|
||||
bmgrLog.Warnf("fetchHeaderBlocks called with no start header")
|
||||
return
|
||||
|
@ -498,7 +498,7 @@ func handleCreateRawTransaction(s *rpcServer, cmd btcjson.Cmd) (interface{}, err
|
||||
c := cmd.(*btcjson.CreateRawTransactionCmd)
|
||||
|
||||
// Add all transaction inputs to a new transaction after performing
|
||||
// some validty checks.
|
||||
// some validity checks.
|
||||
mtx := btcwire.NewMsgTx()
|
||||
for _, input := range c.Inputs {
|
||||
txHash, err := btcwire.NewShaHashFromStr(input.Txid)
|
||||
@ -519,7 +519,7 @@ func handleCreateRawTransaction(s *rpcServer, cmd btcjson.Cmd) (interface{}, err
|
||||
}
|
||||
|
||||
// Add all transaction outputs to the transaction after performing
|
||||
// some validty checks.
|
||||
// some validity checks.
|
||||
for encodedAddr, amount := range c.Amounts {
|
||||
// Ensure amount is in the valid range for monetary amounts.
|
||||
if amount <= 0 || amount > btcutil.MaxSatoshi {
|
||||
|
Loading…
Reference in New Issue
Block a user