Merge pull request #1042 from urbit/bs/disable-core-hashing-on-fake-ships

Disable core hashing on fake ships.
This commit is contained in:
Joe Bryan 2018-11-01 01:13:14 -04:00 committed by GitHub
commit c6e302fa4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,6 +222,10 @@ _main_getopt(c3_i argc, c3_c** argv)
u3_Host.ops_u.net = c3y; /* remote networking is always on in real mode. */
}
if ( u3_Host.ops_u.fak == c3y ) {
u3_Host.ops_u.has = c3y; /* no battery hashing on fake ships. */
}
if ( u3_Host.ops_u.arv_c != 0 && !imp_t ) {
fprintf(stderr, "-A only makes sense when creating a new galaxy\n");
return c3n;
@ -373,6 +377,7 @@ u3_ve_usage(c3_i argc, c3_c** argv)
"-r host Initial peer address\n",
"-R Report urbit build info\n",
"-s Pill URL from arvo git hash\n",
"-S Disable battery hashing\n",
"-u url URL from which to download pill\n",
"-v Verbose\n",
"-w name Boot as ~name\n",