Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comment #562

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/arweave/include/ar.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -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").
Expand Down Expand Up @@ -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)).
Expand Down
2 changes: 1 addition & 1 deletion apps/arweave/test/ar_http_iface_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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)).

Expand Down
2 changes: 1 addition & 1 deletion apps/arweave/test/ar_multiple_txs_per_wallet_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down