mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
chore: fix some comments (#1203)
Signed-off-by: dongjinlong <dongjinlong@outlook.com>
This commit is contained in:
parent
ee7299bb24
commit
a31a41d47a
4 changed files with 4 additions and 4 deletions
|
|
@ -435,7 +435,7 @@ func verifyUpdates(updates []*Validator, vals *ValidatorSet) (updatedTotalVoting
|
||||||
_, val := vals.GetByAddress(address)
|
_, val := vals.GetByAddress(address)
|
||||||
|
|
||||||
if val == nil {
|
if val == nil {
|
||||||
// New validator, add its voting power the the total.
|
// New validator, add its voting power the total.
|
||||||
updatedTotalVotingPower += valUpdate.VotingPower
|
updatedTotalVotingPower += valUpdate.VotingPower
|
||||||
numNewValidators++
|
numNewValidators++
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ func TestMVHashMapBasics(t *testing.T) {
|
||||||
mvh.Write(ap1, Version{10, 1}, valueFor(10, 1))
|
mvh.Write(ap1, Version{10, 1}, valueFor(10, 1))
|
||||||
|
|
||||||
res = mvh.Read(ap1, 9)
|
res = mvh.Read(ap1, 9)
|
||||||
require.Equal(t, -1, res.depIdx, "reads that should go the the DB return dependency -1")
|
require.Equal(t, -1, res.depIdx, "reads that should go the DB return dependency -1")
|
||||||
res = mvh.Read(ap1, 10)
|
res = mvh.Read(ap1, 10)
|
||||||
require.Equal(t, -1, res.depIdx, "Read returns entries from smaller txns, not txn 10")
|
require.Equal(t, -1, res.depIdx, "Read returns entries from smaller txns, not txn 10")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -488,7 +488,7 @@ func testBroadcastBlock(t *testing.T, peers, bcasts int) {
|
||||||
)
|
)
|
||||||
|
|
||||||
for i, sink := range sinks {
|
for i, sink := range sinks {
|
||||||
sink := sink // Closure for gorotuine below
|
sink := sink // Closure for goroutine below
|
||||||
|
|
||||||
sourcePipe, sinkPipe := p2p.MsgPipe()
|
sourcePipe, sinkPipe := p2p.MsgPipe()
|
||||||
defer sourcePipe.Close()
|
defer sourcePipe.Close()
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ func (p *DumpconfigCommand) MarkDown() string {
|
||||||
func (c *DumpconfigCommand) Help() string {
|
func (c *DumpconfigCommand) Help() string {
|
||||||
return `Usage: bor dumpconfig <your-favourite-flags>
|
return `Usage: bor dumpconfig <your-favourite-flags>
|
||||||
|
|
||||||
This command will will export the user provided flags into a configuration file`
|
This command will export the user provided flags into a configuration file`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Synopsis implements the cli.Command interface
|
// Synopsis implements the cli.Command interface
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue