Skip to content

Commit

Permalink
Rename Archain -> Arweave (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldmberman authored and martin-torhage committed Nov 29, 2018
1 parent cc573ac commit dd97c89
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions 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]
Expand All @@ -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.
2 changes: 1 addition & 1 deletion http_iface_docs.md
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lib/pss/rsa_pss.erl
Expand Up @@ -7,7 +7,7 @@
%%% https://github.com/potatosalad/erlang-crypto_rsassa_pss
%%% @end
%%% Created : 20 Jul 2015 by Andrew Bennett <andrew@pixid.com>
%%% Modified: 17 Nov 2017 by The Archain Team <team@archain.org>
%%% Modified: 17 Nov 2017 by The Arweave Team <team@arweave.org>
%%%-------------------------------------------------------------------
-module(rsa_pss).

Expand Down
4 changes: 2 additions & 2 deletions src/apps/app_election.erl
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/apps/app_monitor.erl
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/apps/app_search.erl
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/apps/app_skeleton.erl
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/ar.erl
Expand Up @@ -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 }) ->
Expand Down
2 changes: 1 addition & 1 deletion src/ar_key_db.erl
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion src/ar_meta_db.erl
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion src/ar_services.erl
Expand Up @@ -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, {
Expand Down
6 changes: 3 additions & 3 deletions src/ar_simple_reporter.erl
Expand Up @@ -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.

Expand Down Expand Up @@ -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]),
Expand Down
2 changes: 1 addition & 1 deletion src/ar_track_tx_db.erl
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion src/ar_tx_db.erl
Expand Up @@ -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).

Expand Down

0 comments on commit dd97c89

Please sign in to comment.