From dd97c89ebc111f619f1e3a805c3a3666898ce3c6 Mon Sep 17 00:00:00 2001 From: Lev Berman Date: Mon, 26 Nov 2018 14:38:50 +0100 Subject: [PATCH] Rename Archain -> Arweave (#90) --- NETWORK.md | 12 ++++++------ http_iface_docs.md | 2 +- lib/pss/rsa_pss.erl | 2 +- src/apps/app_election.erl | 4 ++-- src/apps/app_monitor.erl | 2 +- src/apps/app_search.erl | 2 +- src/apps/app_skeleton.erl | 2 +- src/ar.erl | 2 +- src/ar_key_db.erl | 2 +- src/ar_meta_db.erl | 2 +- src/ar_services.erl | 2 +- src/ar_simple_reporter.erl | 6 +++--- src/ar_track_tx_db.erl | 2 +- src/ar_tx_db.erl | 2 +- 14 files changed, 22 insertions(+), 22 deletions(-) diff --git a/NETWORK.md b/NETWORK.md index 37f178245..eb334d81b 100644 --- a/NETWORK.md +++ b/NETWORK.md @@ -1,16 +1,16 @@ -# The Archain Network +# The Arweave Network -This (draft!) document aims to provide a breif overview of the key design points of the Archain network. +This (draft!) document aims to provide a breif overview of the key design points of the Arweave network. ## Summary -Every node in the Archain network runs a HTTP server, which exposes an interface to a miner (which does not have to be active). +Every node in the Arweave network runs a HTTP server, which exposes an interface to a miner (which does not have to be active). -Inside a node, a gossip-based message passing network between Archain ADT app and mining nodes is employed. +Inside a node, a gossip-based message passing network between Arweave ADT app and mining nodes is employed. ## HTTP Interface -The Archain HTTP interface exposes the following endpoints: +The Arweave HTTP interface exposes the following endpoints: ``` GET /block/hash/[hash_id] @@ -23,6 +23,6 @@ JSON structures are employed in the bodies of the HTTP requests to represent blo ## Gossipping -Archain is essentially a gossip network, in which nodes repeat valid messages that they have received to their peers. +Arweave is essentially a gossip network, in which nodes repeat valid messages that they have received to their peers. Nodes maintain a list of hashes of the messages they have received, not forwarding those that have already been sent once. diff --git a/http_iface_docs.md b/http_iface_docs.md index b18b94817..68b67271b 100644 --- a/http_iface_docs.md +++ b/http_iface_docs.md @@ -18,7 +18,7 @@ A JSON array containing the network information for the current node. ```javascript { - "network": "archain.BATN.4", + "network": "arweave.N.1", "version": "3", "height": "2956", "blocks": "3495", diff --git a/lib/pss/rsa_pss.erl b/lib/pss/rsa_pss.erl index 5976bee35..e9e7d9128 100644 --- a/lib/pss/rsa_pss.erl +++ b/lib/pss/rsa_pss.erl @@ -7,7 +7,7 @@ %%% https://github.com/potatosalad/erlang-crypto_rsassa_pss %%% @end %%% Created : 20 Jul 2015 by Andrew Bennett -%%% Modified: 17 Nov 2017 by The Archain Team +%%% Modified: 17 Nov 2017 by The Arweave Team %%%------------------------------------------------------------------- -module(rsa_pss). diff --git a/src/apps/app_election.erl b/src/apps/app_election.erl index 0ccf238c4..f5121a081 100644 --- a/src/apps/app_election.erl +++ b/src/apps/app_election.erl @@ -4,11 +4,11 @@ -include("ar.hrl"). -include_lib("eunit/include/eunit.hrl"). -%%% The Archain OpenElections monitor node. +%%% The Arweave OpenElections monitor node. %%% Listens for votes being cast in elections. Returns results when asked. %% How should the app identify itself in the 'type' field? --define(APP_TYPE_ID, "Archain.OpenElection"). +-define(APP_TYPE_ID, "Arweave.OpenElection"). -record(state, { name, % A string representation of the name of the election. diff --git a/src/apps/app_monitor.erl b/src/apps/app_monitor.erl index 13d120bcf..945734b7f 100644 --- a/src/apps/app_monitor.erl +++ b/src/apps/app_monitor.erl @@ -2,7 +2,7 @@ -export([start/0, new_block/1]). -include("ar.hrl"). -%%% An Archain monitoring app. Scans new (confirmed) transactions for archived +%%% An Arweave monitoring app. Scans new (confirmed) transactions for archived %%% web pages that match a given regular expression. %% The regular expression to match on. diff --git a/src/apps/app_search.erl b/src/apps/app_search.erl index 5b997da99..028b095ce 100644 --- a/src/apps/app_search.erl +++ b/src/apps/app_search.erl @@ -7,7 +7,7 @@ -include("../ar.hrl"). -include_lib("eunit/include/eunit.hrl"). -%%% A search node for the Archain network. Given a transaction hash, +%%% A search node for the Arweave network. Given a transaction hash, %%% returns to the requesting node the independant block hash of the %%% block containing the transaction. %%% For examplary purposes only. diff --git a/src/apps/app_skeleton.erl b/src/apps/app_skeleton.erl index 7cdbf836c..23e3a462a 100644 --- a/src/apps/app_skeleton.erl +++ b/src/apps/app_skeleton.erl @@ -3,7 +3,7 @@ -include("ar.hrl"). -include_lib("eunit/include/eunit.hrl"). -%%% A framework for simply building Archain apps. +%%% A framework for simply building Arweave apps. %%% Simply add your code in the areas marked TODO. %% Internal state record. diff --git a/src/ar.erl b/src/ar.erl index 22e488f2d..1302edb92 100644 --- a/src/ar.erl +++ b/src/ar.erl @@ -175,7 +175,7 @@ parse(["disable", Feature | Rest ], O = #opts { disable = Disabled }) -> parse([Arg|_Rest], _O) -> io:format("Unknown argument: ~s. Terminating.", [Arg]). -%% @doc Start an Archain node on this BEAM. +%% @doc Start an Arweave node on this BEAM. start() -> start(?DEFAULT_HTTP_IFACE_PORT). start(Port) when is_integer(Port) -> start(#opts { port = Port }); start(#opts { benchmark = true }) -> diff --git a/src/ar_key_db.erl b/src/ar_key_db.erl index 6a21e7cab..29f4d29cc 100644 --- a/src/ar_key_db.erl +++ b/src/ar_key_db.erl @@ -3,7 +3,7 @@ -compile({no_auto_import, [{get, 1}, {put, 2}]}). -include_lib("eunit/include/eunit.hrl"). -include("ar.hrl"). -%%% Defines a small in-memory metadata table for Archain nodes. +%%% Defines a small in-memory metadata table for Arweave nodes. %%% Typically used to store small peices of globally useful information %%% (for example: the port number used by the node). diff --git a/src/ar_meta_db.erl b/src/ar_meta_db.erl index e185f7aee..7024459eb 100644 --- a/src/ar_meta_db.erl +++ b/src/ar_meta_db.erl @@ -3,7 +3,7 @@ -compile({no_auto_import, [{get, 1}, {put, 2}]}). -include_lib("eunit/include/eunit.hrl"). -include("ar.hrl"). -%%% Defines a small in-memory metadata table for Archain nodes. +%%% Defines a small in-memory metadata table for Arweave nodes. %%% Typically used to store small peices of globally useful information %%% (for example: the port number used by the node). diff --git a/src/ar_services.erl b/src/ar_services.erl index f694b190f..6b568c9ea 100644 --- a/src/ar_services.erl +++ b/src/ar_services.erl @@ -5,7 +5,7 @@ -include_lib("eunit/include/eunit.hrl"). %%% A module defining a process that keeps track of known services -%%% on an Archain network. +%%% on an Arweave network. %% Server state. -record(state, { diff --git a/src/ar_simple_reporter.erl b/src/ar_simple_reporter.erl index 268b5c080..3fdc41b86 100644 --- a/src/ar_simple_reporter.erl +++ b/src/ar_simple_reporter.erl @@ -3,7 +3,7 @@ -include("ar.hrl"). -include_lib("eunit/include/eunit.hrl"). -%%% A simple Archain app that reports when it hears about new blocks. +%%% A simple Arweave app that reports when it hears about new blocks. %%% The app will send a message to the process ID given to it as a %%% starting argument, or it will print to the console. @@ -56,14 +56,14 @@ server(S = #state { gossip = GS, report = ReportPID }) -> stop -> ok end. -%% @doc Start an Archain network with a simple monitor. +%% @doc Start an Arweave network with a simple monitor. %% Ensure that new block notifications are received. simple_test() -> % Create genesis block. B0 = ar_weave:init(), % Start an observer. Node1 = start(self()), - % Start an Archain node with the new blockweave. + % Start an Arweave node with the new blockweave. Node2 = ar_node:start([Node1], B0), % Add the testing process to the gossip network. GS0 = ar_gossip:init([Node2]), diff --git a/src/ar_track_tx_db.erl b/src/ar_track_tx_db.erl index dd4e07634..27b299c30 100644 --- a/src/ar_track_tx_db.erl +++ b/src/ar_track_tx_db.erl @@ -3,7 +3,7 @@ -compile({no_auto_import, [{get, 1}, {put, 2}]}). -include_lib("eunit/include/eunit.hrl"). -include("ar.hrl"). -%%% Defines a small in-memory metadata table for Archain nodes. +%%% Defines a small in-memory metadata table for Arweave nodes. %%% Typically used to store small peices of globally useful information %%% (for example: the port number used by the node). diff --git a/src/ar_tx_db.erl b/src/ar_tx_db.erl index da81daa21..0c363dcc2 100644 --- a/src/ar_tx_db.erl +++ b/src/ar_tx_db.erl @@ -3,7 +3,7 @@ -compile({no_auto_import, [{get, 1}, {put, 2}]}). -include_lib("eunit/include/eunit.hrl"). -include("ar.hrl"). -%%% Defines a small in-memory metadata table for Archain nodes. +%%% Defines a small in-memory metadata table for Arweave nodes. %%% Typically used to store small peices of globally useful information %%% (for example: the port number used by the node).