Node: Don't lock memory in testnet (#2780)
* Node: Don't lock memory in testnet Change-Id: Id32ce1af82f50a947e80949a54232e11ee7c48ea * Don't lock in ram for devnet either Change-Id: I4e3817e726b535661727d05a0c5f65cd613c4900
This commit is contained in:
parent
4ed89172cc
commit
e695fad0be
|
@ -415,7 +415,12 @@ func runNode(cmd *cobra.Command, args []string) {
|
||||||
fmt.Print(devwarning)
|
fmt.Print(devwarning)
|
||||||
}
|
}
|
||||||
|
|
||||||
common.LockMemory()
|
if *testnetMode || *unsafeDevMode {
|
||||||
|
fmt.Println("Not locking in memory.")
|
||||||
|
} else {
|
||||||
|
common.LockMemory()
|
||||||
|
}
|
||||||
|
|
||||||
common.SetRestrictiveUmask()
|
common.SetRestrictiveUmask()
|
||||||
|
|
||||||
// Refuse to run as root in production mode.
|
// Refuse to run as root in production mode.
|
||||||
|
|
Loading…
Reference in New Issue