Skip to content

Commit

Permalink
chore: fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: depthlending <[email protected]>
  • Loading branch information
depthlending committed Mar 22, 2024
1 parent fd8e613 commit 95c231f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ For a video tutorial on the above, you can [view this here.](https://www.youtube
"0x0101010101010101010101010101010101010101010101010101010101010101",
"test test test test test test test test test test test junk"
], # relayers private keys, can access from here or via environment variables (SKANDHA_MUMBAI_RELAYERS | SKANDHA_DEV_RELAYERS | etc.)
"beneficiary": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", # optional, fee collector, avaiable via env var (SKANDHA_MUMBAI_BENEFICIARY | etc) - if not set, relayer will be used
"beneficiary": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", # optional, fee collector, available via env var (SKANDHA_MUMBAI_BENEFICIARY | etc) - if not set, relayer will be used
"rpcEndpoint": "http://localhost:8545", # rpc provider, also available via env variable (SKANDHA_MUMBAI_RPC | etc)
"minInclusionDenominator": 10, # optional, see EIP-4337
"throttlingSlack": 10, # optional, see EIP-4337
Expand Down
4 changes: 2 additions & 2 deletions packages/executor/src/services/BundlingService/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,13 @@ export class BundlingService {
this.logger.debug("No new entries");
return;
}
// remove entries from mempool if submitAttempts are greater than maxAttemps
// remove entries from mempool if submitAttempts are greater than maxAttempts
const invalidEntries = entries.filter(
(entry) => entry.submitAttempts >= this.maxSubmitAttempts
);
if (invalidEntries.length > 0) {
this.logger.debug(
`Found ${invalidEntries.length} that reached max submit attemps, deleting them...`
`Found ${invalidEntries.length} that reached max submit attempts, deleting them...`
);
this.logger.debug(
invalidEntries.map((entry) => entry.userOpHash).join("; ")
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/network/peers/discover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class PeerDiscovery {
}
// async due to some crypto that's no longer necessary
const peerId = await enr.peerId();
// tcp multiaddr is known to be be present, checked inside the worker
// tcp multiaddr is known to be present, checked inside the worker
const multiaddrTCP = enr.getLocationMultiaddr(ENRKey.tcp);
if (!multiaddrTCP) {
this.logger.error("Discv5 worker sent enr without tcp multiaddr", {
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/network/peers/peerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ALLOWED_NEGATIVE_GOSSIPSUB_FACTOR = 0.1;

// TODO:
// maxPeers and targetPeers should be dynamic on the num of validators connected
// The Node should compute a recomended value every interval and log a warning
// The Node should compute a recommended value every interval and log a warning
// to terminal if it deviates significantly from the user's settings

export type PeerManagerOpts = {
Expand Down Expand Up @@ -88,7 +88,7 @@ enum RelevantPeerStatus {
}

/**
* Performs all peer managment functionality in a single grouped class:
* Performs all peer management functionality in a single grouped class:
* - Ping peers every `PING_INTERVAL_MS`
* - Status peers every `STATUS_INTERVAL_MS`
* - Execute discovery query if under target peers
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/network/reqresp/ReqRespNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class ReqRespNode extends ReqResp implements IReqRespNode {
versions: number[],
body: Req
): AsyncIterable<Resp> {
// Remember prefered encoding
// Remember preferred encoding
const encoding =
this.peersData.getEncodingPreference(peerId.toString()) ??
Encoding.SSZ_SNAPPY;
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/reqresp/request/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export enum RequestErrorCode {
REQUEST_TIMEOUT = "REQUEST_ERROR_REQUEST_TIMEOUT",
/** Error when sending request to responder */
REQUEST_ERROR = "REQUEST_ERROR_REQUEST_ERROR",
/** Reponder did not deliver a full reponse before max maxTotalResponseTimeout() */
/** Reponder did not deliver a full response before max maxTotalResponseTimeout() */
RESPONSE_TIMEOUT = "REQUEST_ERROR_RESPONSE_TIMEOUT",
/** A single-response method returned 0 chunks */
EMPTY_RESPONSE = "REQUEST_ERROR_EMPTY_RESPONSE",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/reqresp/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type SendRequestModules = {
*
* 1. Dial peer, establish duplex stream
* 2. Encoded and write request to peer. Expect the responder to close the stream's write side
* 3. Read and decode reponse(s) from peer. Will close the read stream if:
* 3. Read and decode response(s) from peer. Will close the read stream if:
* - An error result is received in one of the chunks. Reads the error_message and throws.
* - The responder closes the stream. If at the end or start of a <response_chunk>, return. Otherwise throws
* - Any part of the response_chunk fails validation. Throws a typed error (see `SszSnappyError`)
Expand Down

0 comments on commit 95c231f

Please sign in to comment.