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:
bruce-riley 2023-04-26 10:05:16 -05:00 committed by GitHub
parent 4ed89172cc
commit e695fad0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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.