Skip to content

Commit

Permalink
fix: use a public cashu default mint (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored Aug 23, 2024
1 parent 6a78202 commit b990024
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions frontend/src/screens/setup/node/CashuForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import useSetupStore from "src/state/SetupStore";
export function CashuForm() {
const setupStore = useSetupStore();
const navigate = useNavigate();
const [cashuMintUrl, setCashuMintUrl] = React.useState<string>("");
const [cashuMintUrl, setCashuMintUrl] = React.useState(
"https://mint.minibits.cash/Bitcoin"
);

function onSubmit(e: React.FormEvent) {
e.preventDefault();
Expand Down Expand Up @@ -51,7 +53,6 @@ export function CashuForm() {
onChange={(e) => setCashuMintUrl(e.target.value)}
value={cashuMintUrl}
id="cashu-mint-url"
placeholder="https://8333.space:3338"
/>
</div>
<Button>Next</Button>
Expand Down
2 changes: 1 addition & 1 deletion lnclient/cashu/cashu.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewCashuService(workDir string, mintUrl string) (result lnclient.LNClient,
return nil, errors.New("one or more required cashu configuration are missing")
}
if mintUrl == "" {
mintUrl = "https://8333.space:3338"
return nil, errors.New("no mint URL configured")
}

//create dir if not exists
Expand Down

0 comments on commit b990024

Please sign in to comment.