Expose config options for cleartext stratum port

This commit is contained in:
2026-08-01 06:31:15 +03:00
commit a2ae800a19
36 changed files with 4585 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { sdk } from './sdk'
/**
* Back up both volumes:
* - main: SQLite DB (found blocks, best shares, accelerated txs, log
* cursor), store.json settings, and the persisted stratum TLS certificate
* (so miners' pinned fingerprints survive a restore).
* - ckpool: ckpool's own state files (users/, workers/, pool status) and
* daily logs. The log file is included deliberately: the log-tailer's
* cursor in the DB references it, so restoring both keeps block-solve
* detection consistent.
*/
export const { createBackup, restoreInit } = sdk.setupBackups(
async ({ effects }) => sdk.Backups.ofVolumes('main', 'ckpool'),
)