aboutsummaryrefslogtreecommitdiff
path: root/eth
diff options
context:
space:
mode:
Diffstat (limited to 'eth')
-rw-r--r--eth/config.go17
1 files changed, 15 insertions, 2 deletions
diff --git a/eth/config.go b/eth/config.go
index 85abe7c..ee0fdb7 100644
--- a/eth/config.go
+++ b/eth/config.go
@@ -17,6 +17,7 @@
package eth
import (
+ "errors"
"math/big"
"os"
"os/user"
@@ -160,8 +161,20 @@ type Config struct {
// Istanbul block override (TODO: remove after the fork)
OverrideIstanbul *big.Int
- // Manually select and grow the canonical chain
- ManualCanonical bool
+ // Manually select and grow the canonical chain
+ ManualCanonical bool
+}
+
+func (cfg *Config) SetGCMode(gcmode string) error {
+ switch gcmode {
+ case "full":
+ cfg.NoPruning = false
+ case "archive":
+ cfg.NoPruning = true
+ default:
+ return errors.New("invalid gcmode value")
+ }
+ return nil
}
func MyDefaultConfig() Config {
mitter Determinant <ted.sybil@gmail.com> 2019-02-23 01:20:27 -0500 improve the UI' href='/chromicle/commit/dist/index.js?id=0d665c8de086d79d8c49e01a262a520c65505fbf'>0d665c8 ^
8a0f7d5 ^




0d665c8 ^
8a0f7d5 ^






0d665c8 ^
8a0f7d5 ^






0d665c8 ^
495e0d4 ^






0d665c8 ^
495e0d4 ^







0d665c8 ^









495e0d4 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80