mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-01 10:22:32 +00: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
|
// 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.
|
// list of blocks to be downloaded based on the current list of headers.
|
||||||
func (b *blockManager) fetchHeaderBlocks() {
|
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 {
|
if b.startHeader == nil {
|
||||||
bmgrLog.Warnf("fetchHeaderBlocks called with no start header")
|
bmgrLog.Warnf("fetchHeaderBlocks called with no start header")
|
||||||
return
|
return
|
||||||
|
@ -498,7 +498,7 @@ func handleCreateRawTransaction(s *rpcServer, cmd btcjson.Cmd) (interface{}, err
|
|||||||
c := cmd.(*btcjson.CreateRawTransactionCmd)
|
c := cmd.(*btcjson.CreateRawTransactionCmd)
|
||||||
|
|
||||||
// Add all transaction inputs to a new transaction after performing
|
// Add all transaction inputs to a new transaction after performing
|
||||||
// some validty checks.
|
// some validity checks.
|
||||||
mtx := btcwire.NewMsgTx()
|
mtx := btcwire.NewMsgTx()
|
||||||
for _, input := range c.Inputs {
|
for _, input := range c.Inputs {
|
||||||
txHash, err := btcwire.NewShaHashFromStr(input.Txid)
|
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
|
// Add all transaction outputs to the transaction after performing
|
||||||
// some validty checks.
|
// some validity checks.
|
||||||
for encodedAddr, amount := range c.Amounts {
|
for encodedAddr, amount := range c.Amounts {
|
||||||
// Ensure amount is in the valid range for monetary amounts.
|
// Ensure amount is in the valid range for monetary amounts.
|
||||||
if amount <= 0 || amount > btcutil.MaxSatoshi {
|
if amount <= 0 || amount > btcutil.MaxSatoshi {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user