mirror of
https://github.com/Routstr/routstrd.git
synced 2026-08-09 03:44:38 +00:00
feat: enable xcashu mode in CLI
Removed the 'coming soon' guard that blocked xcashu mode selection. The SDK fully supports xcashu: Cashu tokens are sent via X-Cashu header per request, and refunds are received via x-cashu response header. Verified working: request creates 1-sat token, sends X-Cashu header, receives response with refund, no balance kept with provider.
This commit is contained in:
+1
-8
@@ -1757,7 +1757,7 @@ program
|
||||
" 1) lazyrefund/apikeys - Pseudonymous accounts are kept with the Routstr nodes and are refunded after 5 mins if not used.",
|
||||
);
|
||||
console.log(
|
||||
" 2) xcashu (coming soon) - Balances are never kept with the nodes, all balances are refunded in response.",
|
||||
" 2) xcashu - Balances are never kept with the nodes, all balances are refunded in response.",
|
||||
);
|
||||
console.log(`\nCurrent mode: ${currentMode}`);
|
||||
|
||||
@@ -1777,13 +1777,6 @@ program
|
||||
|
||||
const selectedMode = modes[selectedIndex];
|
||||
|
||||
if (selectedMode === "xcashu") {
|
||||
console.log(
|
||||
"\nxcashu mode is coming soon! Only lazyrefund/apikeys is available at this time.",
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedMode === currentMode) {
|
||||
console.log(`Mode is already set to '${selectedMode}'. No changes made.`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user