-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update node to work with latest core
- Loading branch information
1 parent
0e8b0c9
commit f1ac42e
Showing
18 changed files
with
442 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +0,0 @@ | ||
use Mix.Config | ||
|
||
config :logger, backends: [:console, {LoggerFileBackend, :info}] | ||
|
||
config :logger, :info, | ||
path: "./log/info.log", | ||
level: :info | ||
|
||
if File.exists?("config/#{Mix.env}.exs") do | ||
import_config "#{Mix.env}.exs" | ||
end | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
defmodule ElixiumNode do | ||
use Application | ||
|
||
def start(_type, _args) do | ||
print_ascii_header() | ||
Elixium.Store.Ledger.initialize() | ||
|
||
# TODO: Make genesis block mined rather than hard-coded | ||
if !Elixium.Store.Ledger.empty?() do | ||
Elixium.Store.Ledger.hydrate() | ||
end | ||
|
||
Elixium.Store.Utxo.initialize() | ||
Elixium.Store.Oracle.start_link(Elixium.Store.Utxo) | ||
Elixium.Pool.Orphan.initialize() | ||
ElixiumNode.Supervisor.start_link() | ||
end | ||
|
||
def print_ascii_header do | ||
IO.puts "\e[34m | ||
EEEEEEEEEEEEEEEEEEEEEElllllll iiii iiii | ||
E::::::::::::::::::::El:::::l i::::i i::::i | ||
E::::::::::::::::::::El:::::l iiii iiii | ||
EE::::::EEEEEEEEE::::El:::::l | ||
E:::::E EEEEEE l::::l iiiiiii xxxxxxx xxxxxxxiiiiiii uuuuuu uuuuuu mmmmmmm mmmmmmm | ||
E:::::E l::::l i:::::i x:::::x x:::::x i:::::i u::::u u::::u mm:::::::m m:::::::mm | ||
E::::::EEEEEEEEEE l::::l i::::i x:::::x x:::::x i::::i u::::u u::::u m::::::::::mm::::::::::m | ||
E:::::::::::::::E l::::l i::::i x:::::xx:::::x i::::i u::::u u::::u m::::::::::::::::::::::m | ||
E:::::::::::::::E l::::l i::::i x::::::::::x i::::i u::::u u::::u m:::::mmm::::::mmm:::::m | ||
E::::::EEEEEEEEEE l::::l i::::i x::::::::x i::::i u::::u u::::u m::::m m::::m m::::m | ||
E:::::E l::::l i::::i x::::::::x i::::i u::::u u::::u m::::m m::::m m::::m | ||
E:::::E EEEEEE l::::l i::::i x::::::::::x i::::i u:::::uuuu:::::u m::::m m::::m m::::m | ||
EE::::::EEEEEEEE:::::El::::::li::::::i x:::::xx:::::x i::::::iu:::::::::::::::uum::::m m::::m m::::m | ||
E::::::::::::::::::::El::::::li::::::i x:::::x x:::::x i::::::i u:::::::::::::::um::::m m::::m m::::m | ||
E::::::::::::::::::::El::::::li::::::i x:::::x x:::::x i::::::i uu::::::::uu:::um::::m m::::m m::::m | ||
EEEEEEEEEEEEEEEEEEEEEElllllllliiiiiiiixxxxxxx xxxxxxxiiiiiiii uuuuuuuu uuuummmmmm mmmmmm mmmmmm | ||
\e[32m | ||
Elixium Core Version #{Application.spec(:elixium_core, :vsn)} Node version #{Application.spec(:elixium_node, :vsn)} | ||
\e[0m | ||
\n | ||
" | ||
|
||
end | ||
|
||
end |
Oops, something went wrong.