v0.0.9.2
Build Service / BuildPackage (push) Has been cancelled

This commit is contained in:
2026-05-24 19:10:21 -04:00
parent b308d0ceaa
commit 70b8aab0f3
10 changed files with 169 additions and 45 deletions
+2
View File
@@ -13,6 +13,7 @@ import { resetPassword } from './resetPassword'
import { resetSpacedState } from './resetSpacedState'
import { resetSubspacesState } from './resetSubspacesState'
import { setBitcoinRpc } from './setBitcoinRpc'
import { setSubsProver } from './setSubsProver'
import { showCredentials } from './showCredentials'
import { showDbCredentials } from './showDbCredentials'
import { showPassword } from './showPassword'
@@ -35,5 +36,6 @@ export const actions = sdk.Actions.of()
.addAction(resetExplorerState)
.addAction(enableSubspaces)
.addAction(disableSubspaces)
.addAction(setSubsProver)
.addAction(resetSubspacesState)
.addAction(configureCertrelay)
+61
View File
@@ -0,0 +1,61 @@
import { storeJson } from '../fileModels/storeJson'
import { i18n } from '../i18n'
import { sdk } from '../sdk'
const { InputSpec, Value } = sdk
const inputSpec = InputSpec.of({
enabled: Value.toggle({
name: i18n('Run Subspaces Prover'),
description: i18n(
'When on, the subs-prover daemon starts (only while Subspaces itself is enabled). It runs lengthy timing tests on boot and can take a long time to become ready. Off by default. The Subspaces Prover interface (port 8888) stays registered either way.',
),
warning: null,
footnote: null,
default: false,
}),
})
export const setSubsProver = sdk.Action.withInput(
// id
'set-subs-prover',
// metadata
async ({ effects }) => ({
name: i18n('Enable / Disable Subspaces Prover'),
description: i18n(
'Independently start or stop the subs-prover daemon, separate from the overall Subspaces toggle. Saving restarts the service.',
),
warning: null,
allowedStatuses: 'any',
group: null,
visibility: 'enabled',
}),
// input
inputSpec,
// prefill — current value
async ({ effects }) => {
const enabled = await storeJson.read((s) => s.enableSubsProver).once()
return { enabled: enabled === true }
},
// run
async ({ effects, input }) => {
await storeJson.merge(effects, { enableSubsProver: input.enabled })
return {
version: '1',
title: i18n('Success'),
message: input.enabled
? i18n(
'Subspaces Prover enabled. The service is restarting; the prover starts after the other Subspaces daemons and may take a while to become ready.',
)
: i18n(
'Subspaces Prover disabled. The service is restarting; the prover daemon will not start. Its interface (8888) remains registered.',
),
result: null,
}
},
)