diff --git a/apps/arweave/include/ar.hrl b/apps/arweave/include/ar.hrl index 0f49d9af4..94d0c332e 100644 --- a/apps/arweave/include/ar.hrl +++ b/apps/arweave/include/ar.hrl @@ -16,7 +16,7 @@ -endif. -endif. -%% When a request is received without specifing the X-Network header, this network name +%% When a request is received without specifying the X-Network header, this network name %% is assumed. -ifndef(DEFAULT_NETWORK_NAME). -define(DEFAULT_NETWORK_NAME, "arweave.N.1"). @@ -279,10 +279,10 @@ %% Number of transaction propagation processes to spawn. %% Each emitter picks the most valued transaction from the queue %% and propagates it to the chosen peers. -%% Can be overriden by a command line argument. +%% Can be overridden by a command line argument. -define(NUM_EMITTER_PROCESSES, 16). -%% The adjustment of difficutly going from SHA-384 to RandomX. +%% The adjustment of difficultly going from SHA-384 to RandomX. -define(RANDOMX_DIFF_ADJUSTMENT, (-14)). -ifdef(DEBUG). -define(RANDOMX_KEY_SWAP_FREQ, (?STORE_BLOCKS_BEHIND_CURRENT + 1)). diff --git a/apps/arweave/test/ar_http_iface_tests.erl b/apps/arweave/test/ar_http_iface_tests.erl index 77bdd8ba7..d0f4362e2 100644 --- a/apps/arweave/test/ar_http_iface_tests.erl +++ b/apps/arweave/test/ar_http_iface_tests.erl @@ -346,7 +346,7 @@ count_by_response_type(ErrorResponse, Responses) -> Responses ). -%% @doc Count the occurances in the list based on the predicate. +%% @doc Count the occurrences in the list based on the predicate. count_by(Pred, List) -> maps:map(fun (_, Value) -> length(Value) end, group(Pred, List)). diff --git a/apps/arweave/test/ar_multiple_txs_per_wallet_tests.erl b/apps/arweave/test/ar_multiple_txs_per_wallet_tests.erl index c56f59049..d595fdbc9 100644 --- a/apps/arweave/test/ar_multiple_txs_per_wallet_tests.erl +++ b/apps/arweave/test/ar_multiple_txs_per_wallet_tests.erl @@ -207,7 +207,7 @@ returns_error_when_txs_exceed_balance(B0, TXs) -> ar_test_node:connect_to_peer(peer1), %% Expect the post for all TXs (including the balance exceeding one) to - %% succeed. However immeidately after adding each TX to the mempool, + %% succeed. However immediately after adding each TX to the mempool, %% we'll check whether any balances are exceeded and eject the TXs that %% exceed the balance. The ordering used is {Utility, TXID} - so TXs with %% the same Utility but with a lower alphanumeric ID will be ejected first. diff --git a/rebar.config b/rebar.config index dc362ecc5..f4ff8fc61 100644 --- a/rebar.config +++ b/rebar.config @@ -422,7 +422,7 @@ %% If you clear this value, the mainnet will be assumed. {d, 'NETWORK_NAME', "arweave.localnet"} - %% When a request is received without specifing the X-Network header, this network + %% When a request is received without specifying the X-Network header, this network %% name is assumed. Rather than change this, it's better to make sure your clients %% specify the X-Network name as this will avoid potential issues (e.g. %% accidentally transferring mainnet AR tokens when you only intended to transfer