Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hnt-pub
Miner
Commits
784dc2a4
Commit
784dc2a4
authored
3 years ago
by
Evan Vigil-McClanahan
Browse files
Options
Download
Email Patches
Plain Diff
add snap, global follow mode
parent
69e1d144
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
config/docker-val.config.src
+0
-3
config/docker-val.config.src
config/sys.config
+2
-2
config/sys.config
config/val.config.src
+0
-3
config/val.config.src
src/miner_app.erl
+3
-13
src/miner_app.erl
with
5 additions
and
21 deletions
+5
-21
config/docker-val.config.src
+
0
-
3
View file @
784dc2a4
...
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
config/sys.config
+
2
-
2
View file @
784dc2a4
...
...
@@ -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
,
92
0076
},
{
blessed_snapshot_block_height
,
92
8081
},
{
blessed_snapshot_block_hash
,
<<
106
,
24
8
,
1
81
,
242
,
24
,
1
0
3
,
1
77
,
95
,
76
,
128
,
249
,
147
,
22
,
226
,
221
,
67
,
112
,
197
,
218
,
185
,
248
,
196
,
40
,
12
7
,
9
0
,
41
,
242
,
163
,
119
,
64
,
17
,
35
>>},
<<
24
9
,
1
39
,
17
,
109
,
0
,
126
,
162
,
1
6
3
,
1
56
,
11
,
81
,
124
,
41
,
131
,
229
,
151
,
85
,
120
,
93
,
23
,
173
,
234
,
14
7
,
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"
},
...
...
This diff is collapsed.
Click to expand it.
config/val.config.src
+
0
-
3
View file @
784dc2a4
...
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
src/miner_app.erl
+
3
-
13
View file @
784dc2a4
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment