Skip to content

Commit

Permalink
chore: Fix typos from previous pull request (#468)
Browse files Browse the repository at this point in the history
This PR fixes the typos from the previous PR releated to the blocklisting improvment feature


Signed-off-by: georgi-l95 <[email protected]>
  • Loading branch information
georgi-l95 authored Dec 15, 2023
1 parent ca7d5ed commit 20698ba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/state/AccountCreationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class AccountCreationState implements IState{

private nodeStartup: boolean;

private blacklistedAccountsCount: number = 0;
private blocklistedAccountsCount: number = 0;

constructor() {
this.stateName = AccountCreationState.name;
Expand All @@ -70,11 +70,11 @@ export class AccountCreationState implements IState{
public async onStart(): Promise<void> {
const currentArgv = this.cliService.getCurrentArgv();
const async = currentArgv.async;
this.blacklistedAccountsCount = await this.getBlacklistedAccountsCount();
this.blocklistedAccountsCount = await this.getBlocklistedAccountsCount();
const mode = async ? `asynchronous` : `synchronous`
const blackListedMessage = this.blacklistedAccountsCount > 0 ? `with ${this.blacklistedAccountsCount} blacklisted accounts` : ''
const blockListedMessage = this.blocklistedAccountsCount > 0 ? `with ${this.blocklistedAccountsCount} blocklisted accounts` : ''
this.logger.info(
`Starting Account Creation state in ${mode} mode ${blackListedMessage}`, this.stateName
`Starting Account Creation state in ${mode} mode ${blockListedMessage}`, this.stateName
);

const balance = currentArgv.balance;
Expand Down Expand Up @@ -140,7 +140,7 @@ export class AccountCreationState implements IState{
}

private async generateECDSA(async: boolean, balance: number, accountNum: number) {
let ecdsaAccountNumCounter = 1002 + this.blacklistedAccountsCount;
let ecdsaAccountNumCounter = 1002 + this.blocklistedAccountsCount;
const accounts = [];
let privateKey;
let wallet;
Expand Down Expand Up @@ -186,7 +186,7 @@ export class AccountCreationState implements IState{
}

private async generateAliasECDSA(async: boolean, balance: number, accountNum: number) {
let aliasedAccountNumCounter = 1012 + this.blacklistedAccountsCount;
let aliasedAccountNumCounter = 1012 + this.blocklistedAccountsCount;
const accounts = [];

if (!async) this.logAliasAccountTitle();
Expand Down Expand Up @@ -228,7 +228,7 @@ export class AccountCreationState implements IState{
}

private async generateED25519(async: boolean, balance: number, accountNum: number) {
let edAccountNumCounter = 1022 + this.blacklistedAccountsCount;
let edAccountNumCounter = 1022 + this.blocklistedAccountsCount;
const accounts = [];
let privateKey;
let wallet;
Expand Down Expand Up @@ -342,7 +342,7 @@ export class AccountCreationState implements IState{
.find((prop) => prop.key === 'accounts.blocklist.path')?.value as string
}

private async getBlacklistedAccountsCount (): Promise<number> {
private async getBlocklistedAccountsCount (): Promise<number> {
return new Promise((resolve) => {
let count = 0;
const filepath = path.join(
Expand Down

0 comments on commit 20698ba

Please sign in to comment.