Commit 784dc2a4 authored by Evan Vigil-McClanahan's avatar Evan Vigil-McClanahan
Browse files

add snap, global follow mode

parent 69e1d144
Showing with 5 additions and 21 deletions
+5 -21
......@@ -12,9 +12,6 @@
]},
{blockchain,
[
{blessed_snapshot_block_height, 910531},
{blessed_snapshot_block_hash,
<<95,253,152,33,253,132,175,201,16,213,118,213,1,87,113,203,209,242,143,230,104,213,232,83,61,173,201,176,206,176,178,42>>},
{ports, [2154]},
{validation_width, 8},
{block_sync_batch_size, 10},
......
......@@ -40,9 +40,9 @@
{s3_base_url, "https://snapshots.helium.wtf/mainnet"},
{honor_quick_sync, true},
{quick_sync_mode, blessed_snapshot},
{blessed_snapshot_block_height, 920076},
{blessed_snapshot_block_height, 928081},
{blessed_snapshot_block_hash,
<<106,248,181,242,24,103,177,95,76,128,249,147,22,226,221,67,112,197,218,185,248,196,40,127,90,41,242,163,119,64,17,35>>},
<<249,139,17,109,0,126,162,163,156,11,81,124,41,131,229,151,85,120,93,23,173,234,147,0,128,117,35,191,109,123,176,207>>},
{port, 44158},
{key, {ecc, [{key_slot, 0}, {onboarding_key_slot, 15}, {bus, "i2c-1"}, {address, 16#60}]}}, %% don't make this the last line in the stanza because sed and keep it on one line
{base_dir, "/var/data"},
......
......@@ -12,9 +12,6 @@
]},
{blockchain,
[
{blessed_snapshot_block_height, 910531},
{blessed_snapshot_block_hash,
<<95,253,152,33,253,132,175,201,16,213,118,213,1,87,113,203,209,242,143,230,104,213,232,83,61,173,201,176,206,176,178,42>>},
{ports, [2154]},
{block_sync_batch_size, 10},
{block_sync_batch_limit, 100},
......
......@@ -36,20 +36,10 @@ start(_StartType, _StartArgs) ->
gateway ->
%% check touchfile, since some people are using it
BaseDir = application:get_env(blockchain, base_dir, "data"),
Filename = filename:join([BaseDir, "follow-mode"]),
Filename = filename:join([BaseDir, "validate-mode"]),
case file:read_file_info(Filename) of
{ok, _} -> true;
_ ->
case file:read_file("/etc/hardware_version") of
{ok, HwType} ->
case string:trim(HwType) of
<<"blackspot">> -> true;
<<"sidetable_v1">> -> true;
_ -> false
end;
_ ->
false
end
{ok, _} -> false;
_ -> true
end
end,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment