Skip to content

Commit b09ad08

Browse files
bodhi-crypoDergarcon
authored andcommitted
all: fix typos in comments (ethereum#28682)
chore(core,eth):fix a couple of typos
1 parent a58c418 commit b09ad08

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

cmd/clef/pythonsigner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def approveTx(self, req):
9191
{"jsonrpc":"2.0","id":20,"method":"ui_approveTx","params":[{"transaction":{"from":"0xDEADbEeF000000000000000000000000DeaDbeEf","to":"0xDEADbEeF000000000000000000000000DeaDbeEf","gas":"0x3e8","gasPrice":"0x5","maxFeePerGas":null,"maxPriorityFeePerGas":null,"value":"0x6","nonce":"0x1","data":"0x"},"call_info":null,"meta":{"remote":"clef binary","local":"main","scheme":"in-proc","User-Agent":"","Origin":""}}]}
9292
9393
:param transaction: transaction info
94-
:param call_info: info abou the call, e.g. if ABI info could not be
94+
:param call_info: info about the call, e.g. if ABI info could not be
9595
:param meta: metadata about the request, e.g. where the call comes from
9696
:return:
9797
""" # noqa: E501

core/txpool/blobpool/blobpool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ func (p *BlobPool) offload(addr common.Address, nonce uint64, id uint64, inclusi
738738
}
739739

740740
// Reset implements txpool.SubPool, allowing the blob pool's internal state to be
741-
// kept in sync with the main transacion pool's internal state.
741+
// kept in sync with the main transaction pool's internal state.
742742
func (p *BlobPool) Reset(oldHead, newHead *types.Header) {
743743
waitStart := time.Now()
744744
p.lock.Lock()
@@ -972,7 +972,7 @@ func (p *BlobPool) reinject(addr common.Address, txhash common.Hash) error {
972972
}
973973

974974
// SetGasTip implements txpool.SubPool, allowing the blob pool's gas requirements
975-
// to be kept in sync with the main transacion pool's gas requirements.
975+
// to be kept in sync with the main transaction pool's gas requirements.
976976
func (p *BlobPool) SetGasTip(tip *big.Int) {
977977
p.lock.Lock()
978978
defer p.lock.Unlock()

core/txpool/blobpool/blobpool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ func TestOpenDrops(t *testing.T) {
594594
verifyPoolInternals(t, pool)
595595
}
596596

597-
// Tests that transactions loaded from disk are indexed corrently.
597+
// Tests that transactions loaded from disk are indexed correctly.
598598
//
599599
// - 1. Transactions must be groupped by sender, sorted by nonce
600600
// - 2. Eviction thresholds are calculated correctly for the sequences

core/txpool/blobpool/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var (
6565
pooltipGauge = metrics.NewRegisteredGauge("blobpool/pooltip", nil)
6666

6767
// addwait/time, resetwait/time and getwait/time track the rough health of
68-
// the pool and wether or not it's capable of keeping up with the load from
68+
// the pool and whether or not it's capable of keeping up with the load from
6969
// the network.
7070
addwaitHist = metrics.NewRegisteredHistogram("blobpool/addwait", nil, metrics.NewExpDecaySample(1028, 0.015))
7171
addtimeHist = metrics.NewRegisteredHistogram("blobpool/addtime", nil, metrics.NewExpDecaySample(1028, 0.015))

core/vm/runtime/runtime_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ func TestColdAccountAccessCost(t *testing.T) {
671671
for ii, op := range tracer.StructLogs() {
672672
t.Logf("%d: %v %d", ii, op.OpName(), op.GasCost)
673673
}
674-
t.Fatalf("tescase %d, gas report wrong, step %d, have %d want %d", i, tc.step, have, want)
674+
t.Fatalf("testcase %d, gas report wrong, step %d, have %d want %d", i, tc.step, have, want)
675675
}
676676
}
677677
}

eth/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td, ttd *
576576
// For non-merged networks, if there is a checkpoint available, then calculate
577577
// the ancientLimit through that. Otherwise calculate the ancient limit through
578578
// the advertised height of the remote peer. This most is mostly a fallback for
579-
// legacy networks, but should eventually be droppped. TODO(karalabe).
579+
// legacy networks, but should eventually be dropped. TODO(karalabe).
580580
if beaconMode {
581581
// Beacon sync, use the latest finalized block as the ancient limit
582582
// or a reasonable height if no finalized block is yet announced.

eth/downloader/resultstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (r *resultStore) HasCompletedItems() bool {
142142
// countCompleted returns the number of items ready for delivery, stopping at
143143
// the first non-complete item.
144144
//
145-
// The mthod assumes (at least) rlock is held.
145+
// The method assumes (at least) rlock is held.
146146
func (r *resultStore) countCompleted() int {
147147
// We iterate from the already known complete point, and see
148148
// if any more has completed since last count

ethclient/gethclient/gethclient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ func testCallContract(t *testing.T, client *rpc.Client) {
450450
func TestOverrideAccountMarshal(t *testing.T) {
451451
om := map[common.Address]OverrideAccount{
452452
{0x11}: {
453-
// Zero-valued nonce is not overriddden, but simply dropped by the encoder.
453+
// Zero-valued nonce is not overridden, but simply dropped by the encoder.
454454
Nonce: 0,
455455
},
456456
{0xaa}: {

p2p/rlpx/rlpx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ func BenchmarkThroughput(b *testing.B) {
421421
}
422422
conn2.SetSnappy(true)
423423
if err := <-handshakeDone; err != nil {
424-
b.Fatal("server hanshake error:", err)
424+
b.Fatal("server handshake error:", err)
425425
}
426426

427427
// Read N messages.

p2p/simulations/network_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ func triggerChecks(ctx context.Context, ids []enode.ID, trigger chan enode.ID, i
683683
}
684684
}
685685

686-
// \todo: refactor to implement shapshots
686+
// \todo: refactor to implement snapshots
687687
// and connect configuration methods once these are moved from
688688
// swarm/network/simulations/connect.go
689689
func BenchmarkMinimalService(b *testing.B) {

0 commit comments

Comments
 (0)