Opt-in, mainnet-only deposit-address API

This commit is contained in:
2026-10-22 11:44:32 -04:00
parent b865807272
commit 4fea176877
5 changed files with 77 additions and 5 deletions
+9
View File
@@ -107,3 +107,12 @@ test('operator preflight is read-only, fails closed, and does not disclose crede
assert.equal(existsSync(dataDir), false);
} finally { await rm(dir, { recursive: true, force: true }); }
});
test('Monero deposit enrollment API cannot be enabled on testnet', () => {
const result = spawnSync(process.execPath, ['--experimental-strip-types', 'server/index.ts'], {
env: { ...process.env, WIKIDECK_NETWORK: 'testnet', WIKIDECK_MONERO_DEPOSIT_ENROLLMENT: '1' },
encoding: 'utf8', timeout: 30000,
});
assert.equal(result.status, 1);
assert.match(result.stderr, /Monero deposit enrollment requires the mainnet profile/);
});