Skip to content

Commit

Permalink
consistent comment wording (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 authored Jul 23, 2024
1 parent 3782306 commit 28d260b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions accounts/abi/unpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package abi


import (
"bytes"
"encoding/hex"
Expand Down
4 changes: 2 additions & 2 deletions eth/hooks/engine_v2_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func GetSigningTxCount(c *XDPoS.XDPoS, chain consensus.ChainReader, header *type
signers := make(map[common.Address]*contracts.RewardLog)
mapBlkHash := map[uint64]common.Hash{}

// avoid overflow
// prevent overflow
if number == 0 {
return signers, nil
}
Expand Down Expand Up @@ -261,7 +261,7 @@ func GetSigningTxCount(c *XDPoS.XDPoS, chain consensus.ChainReader, header *type
from := *tx.From()
data[blkHash] = append(data[blkHash], from)
}
// avoid overflow
// prevent overflow
if i == 0 {
return signers, nil
}
Expand Down

0 comments on commit 28d260b

Please sign in to comment.