@@ -30,18 +30,17 @@ import (
3030)
3131
3232const (
33- ipcAPIs = "admin:1.0 clique :1.0 debug :1.0 engine :1.0 eth :1.0 miner:1.0 net:1.0 rpc:1.0 trace:1.0 txpool:1.0 web3:1.0"
33+ ipcAPIs = "admin:1.0 debug :1.0 engine :1.0 eth :1.0 ethash :1.0 miner:1.0 net:1.0 rpc:1.0 trace:1.0 txpool:1.0 web3:1.0"
3434 httpAPIs = "eth:1.0 net:1.0 rpc:1.0 web3:1.0"
3535)
3636
3737// spawns geth with the given command line args, using a set of flags to minimise
3838// memory and disk IO. If the args don't set --datadir, the
3939// child g gets a temporary data directory.
4040func runMinimalGeth (t * testing.T , args ... string ) * testgeth {
41- // --goerli to make the 'writing genesis to disk' faster (no accounts)
4241 // --networkid=1337 to avoid cache bump
4342 // --syncmode=full to avoid allocating fast sync bloom
44- allArgs := []string {"--goerli " , "--networkid" , "1337" , "--authrpc.port" , "0" , "--syncmode=full" , "--port" , "0" ,
43+ allArgs := []string {"--mordor " , "--networkid" , "1337" , "--authrpc.port" , "0" , "--syncmode=full" , "--port" , "0" ,
4544 "--nat" , "none" , "--nodiscover" , "--maxpeers" , "0" , "--cache" , "64" ,
4645 "--datadir.minfreedisk" , "0" }
4746 return runGeth (t , append (allArgs , args ... )... )
@@ -71,7 +70,7 @@ func TestConsoleWelcome(t *testing.T) {
7170 geth .SetTemplateFunc ("gover" , runtime .Version )
7271 geth .SetTemplateFunc ("gethver" , func () string { return params .VersionWithCommit ("" , "" ) })
7372 geth .SetTemplateFunc ("niltime" , func () string {
74- return time .Unix (1548854791 , 0 ).Format ("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)" )
73+ return time .Unix (1570141915 , 0 ).Format ("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)" )
7574 })
7675 geth .SetTemplateFunc ("apis" , func () string { return ipcAPIs })
7776
@@ -151,7 +150,7 @@ func testAttachWelcome(t *testing.T, geth *testgeth, endpoint, apis string) {
151150 attach .SetTemplateFunc ("gethver" , func () string { return params .VersionWithCommit ("" , "" ) })
152151 attach .SetTemplateFunc ("etherbase" , func () string { return geth .Etherbase })
153152 attach .SetTemplateFunc ("niltime" , func () string {
154- return time .Unix (1548854791 , 0 ).Format ("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)" )
153+ return time .Unix (1570141915 , 0 ).Format ("Mon Jan 02 2006 15:04:05 GMT-0700 (MST)" )
155154 })
156155 attach .SetTemplateFunc ("ipc" , func () bool { return strings .HasPrefix (endpoint , "ipc" ) })
157156 attach .SetTemplateFunc ("datadir" , func () string { return geth .Datadir })
0 commit comments