File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ func (ps *peerSet) registerSnapExtension(peer *snap.Peer) error {
100100 return nil
101101}
102102
103- // waitExtensions blocks until all satellite protocols are connected and tracked
103+ // waitSnapExtension blocks until all satellite protocols are connected and tracked
104104// by the peerset.
105105func (ps * peerSet ) waitSnapExtension (peer * eth.Peer ) (* snap.Peer , error ) {
106106 // If the peer does not support a compatible `snap`, don't wait
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ func (p *Peer) dispatchRequest(req *Request) error {
136136 }
137137}
138138
139- // dispatchRequest fulfils a pending request and delivers it to the requested
139+ // dispatchResponse fulfils a pending request and delivers it to the requested
140140// sink.
141141func (p * Peer ) dispatchResponse (res * Response , metadata func () interface {}) error {
142142 resOp := & response {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ type Iterator struct {
3030 inner * RawIterator
3131}
3232
33- // NewRawIterator returns a new Iterator instance. Next must be immediately
33+ // NewIterator returns a new Iterator instance. Next must be immediately
3434// called on new iterators to load the first item.
3535func NewIterator (e * Era ) (* Iterator , error ) {
3636 inner , err := NewRawIterator (e )
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ func (NilSample) Clear() {}
148148func (NilSample ) Snapshot () SampleSnapshot { return (* emptySnapshot )(nil ) }
149149func (NilSample ) Update (v int64 ) {}
150150
151- // SamplePercentiles returns an arbitrary percentile of the slice of int64.
151+ // SamplePercentile returns an arbitrary percentile of the slice of int64.
152152func SamplePercentile (values []int64 , p float64 ) float64 {
153153 return CalculatePercentiles (values , []float64 {p })[0 ]
154154}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ func OpenDB(path string) (*DB, error) {
8484 return newPersistentDB (path )
8585}
8686
87- // newMemoryNodeDB creates a new in-memory node database without a persistent backend.
87+ // newMemoryDB creates a new in-memory node database without a persistent backend.
8888func newMemoryDB () (* DB , error ) {
8989 db , err := leveldb .Open (storage .NewMemStorage (), nil )
9090 if err != nil {
@@ -93,7 +93,7 @@ func newMemoryDB() (*DB, error) {
9393 return & DB {lvl : db , quit : make (chan struct {})}, nil
9494}
9595
96- // newPersistentNodeDB creates/opens a leveldb backed persistent node database,
96+ // newPersistentDB creates/opens a leveldb backed persistent node database,
9797// also flushing its contents in case of a version mismatch.
9898func newPersistentDB (path string ) (* DB , error ) {
9999 opts := & opt.Options {OpenFilesCacheCapacity : 5 }
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ func (h *handler) addRequestOp(op *requestOp) {
324324 }
325325}
326326
327- // removeRequestOps stops waiting for the given request IDs.
327+ // removeRequestOp stops waiting for the given request IDs.
328328func (h * handler ) removeRequestOp (op * requestOp ) {
329329 for _ , id := range op .ids {
330330 delete (h .respWait , string (id ))
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ func fromHex(data any) ([]byte, error) {
260260 return nil , fmt .Errorf ("wrong type %T" , data )
261261}
262262
263- // typeDataRequest tries to convert the data into a SignDataRequest.
263+ // typedDataRequest tries to convert the data into a SignDataRequest.
264264func typedDataRequest (data any ) (* SignDataRequest , error ) {
265265 var typedData apitypes.TypedData
266266 if td , ok := data .(apitypes.TypedData ); ok {
You can’t perform that action at this time.
0 commit comments