@@ -58,7 +58,15 @@ func StartIntegrationTestNet(directory string) (*IntegrationTestNet, error) {
58
58
// initialize the data directory for the single node on the test network
59
59
// equivalent to running `sonictool --datadir <dataDir> genesis fake 1`
60
60
originalArgs := os .Args
61
- os .Args = []string {"sonictool" , "--datadir" , directory , "genesis" , "fake" , "1" }
61
+ os .Args = []string {
62
+ "sonictool" ,
63
+ "--datadir" , directory ,
64
+ "genesis" ,
65
+ "fake" ,
66
+ "--statedb.livecache" , "1" ,
67
+ "--statedb.archivecache" , "1" ,
68
+ "1" ,
69
+ }
62
70
sonictool .Run ()
63
71
os .Args = originalArgs
64
72
@@ -88,10 +96,17 @@ func (n *IntegrationTestNet) start() error {
88
96
"sonicd" ,
89
97
"--datadir" , n .directory ,
90
98
"--fakenet" , "1/1" ,
91
- "--http" , "--http.addr" , "0.0.0.0" , "--http.port" , "18545" ,
99
+ "--http" ,
100
+ "--http.addr" , "0.0.0.0" ,
101
+ "--http.port" , "18545" ,
92
102
"--http.api" , "admin,eth,web3,net,txpool,ftm,trace,debug" ,
93
- "--ws" , "--ws.addr" , "0.0.0.0" , "--ws.port" , "18546" , "--ws.api" , "admin,eth,ftm" ,
103
+ "--ws" ,
104
+ "--ws.addr" , "0.0.0.0" ,
105
+ "--ws.port" , "18546" ,
106
+ "--ws.api" , "admin,eth,ftm" ,
94
107
"--datadir.minfreedisk" , "0" ,
108
+ "--statedb.livecache" , "1" ,
109
+ "--statedb.archivecache" , "1" ,
95
110
}
96
111
sonicd .Run ()
97
112
}()
0 commit comments