feat: seed-driven pairing over the LNbits nostr-transport (#70) #73
1 changed files with 10 additions and 0 deletions
chore(machine): log operator-pubkey provenance so the config gap is loud (#70)
Relay + server pubkey already log (env)/(pairing)/(default) provenance; operator pubkeys did not. An empty operator set silently disables the fees/operator-config services → the machine sits at "awaiting configuration" with no signal why. Log the resolved operator pubkey(s) and their source, and flag the empty case explicitly (pending the #70 P1 server-delivered operator pubkey). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
commit
5cf39a05ee
|
|
@ -441,6 +441,16 @@ export async function initializeLightningServices(options?: {
|
||||||
CONFIG.lnbitsServerPubkey || '(not configured)',
|
CONFIG.lnbitsServerPubkey || '(not configured)',
|
||||||
envPubkey ? '(env)' : transport?.lnbitsServerPubkey ? '(pairing)' : '',
|
envPubkey ? '(env)' : transport?.lnbitsServerPubkey ? '(pairing)' : '',
|
||||||
)
|
)
|
||||||
|
// Operator pubkey provenance. Today the ONLY source is VITE_OPERATOR_PUBKEYS
|
||||||
|
// (env). An empty set disables the fees/operator-config services → the machine
|
||||||
|
// sits at "awaiting configuration" — so log it loudly rather than fail silent.
|
||||||
|
// (aiolabs/bitspire#70 P1 will source this from LNbits over the transport.)
|
||||||
|
console.log(
|
||||||
|
'[Lightning] Operator pubkey(s):',
|
||||||
|
CONFIG.operatorPubkeys.length
|
||||||
|
? CONFIG.operatorPubkeys.join(', ') + ' (env)'
|
||||||
|
: '(none — fee/operator config gated until a server-delivered operator pubkey; #70 P1)',
|
||||||
|
)
|
||||||
|
|
||||||
// Strict mode: validate the RESOLVED config is production-ready (no
|
// Strict mode: validate the RESOLVED config is production-ready (no
|
||||||
// localhost). Values may come from env or the pairing seed (#70).
|
// localhost). Values may come from env or the pairing seed (#70).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue