Skip to content

Commit 47c98a3

Browse files
committed
set network to mainnet
1 parent bdb5e92 commit 47c98a3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ REACT_APP_BOLTZ_ONION=http://random.onion
1212

1313
# API endpoint
1414
# REACT_APP_BOLTZ_API=http://127.0.0.1:9002
15-
REACT_APP_BOLTZ_API=${REACT_APP_BOLTZ_API}
15+
REACT_APP_BOLTZ_API=https://api.lnswap.org:9007
1616
REACT_APP_BOLTZ_API_ONION=http://random.onion/api
1717

1818
# LND node URIs
@@ -24,7 +24,7 @@ REACT_APP_LITECOIN_LND_ONION=030bbf3ecfc370d2caff64858485c45b01b92b74a92c81d3955
2424

2525
# Network configurations
2626
REACT_APP_NETWORK=mainnet
27-
REACT_APP_STACKS_NETWORK_TYPE=mocknet
27+
REACT_APP_STACKS_NETWORK_TYPE=mainnet
2828

2929
REACT_APP_BITCOIN_EXPLORER=https://mempool.space
3030
REACT_APP_LITECOIN_EXPLORER=https://127.0.0.1

src/actions/refundActions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ const createRefundTransaction = (
181181
...detectSwap(redeemScript, lockupTransaction),
182182
},
183183
],
184-
// address.toOutputScript(destinationAddress, getNetwork(currency)), // mainnet
185-
address.toOutputScript(destinationAddress, networks.regtest), // regtest
184+
address.toOutputScript(destinationAddress, getNetwork(currency)), // mainnet
185+
// address.toOutputScript(destinationAddress, networks.regtest), // regtest
186186
// refundFile.timeoutBlockHeight,
187187
timeoutBlockHeight,
188188
feeEstimation[currency]

src/actions/swapActions.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ const getClaimTransaction = (
386386
swapInfo.invoice,
387387
swapInfo.quote,
388388
getNetwork(swapInfo.quote),
389-
// address.toOutputScript(swapInfo.invoice, getNetwork(swapInfo.quote)), // replace getNetwork with networks.regtest
390-
address.toOutputScript(swapInfo.invoice, networks.regtest),
389+
address.toOutputScript(swapInfo.invoice, getNetwork(swapInfo.quote)), // replace getNetwork with networks.regtest
390+
// address.toOutputScript(swapInfo.invoice, networks.regtest),
391391
);
392392

393393
return constructClaimTransaction(
@@ -406,8 +406,8 @@ const getClaimTransaction = (
406406
},
407407
],
408408
// swapInfo.address
409-
// address.toOutputScript(swapInfo.invoice, getNetwork(swapInfo.quote)), // mainnet
410-
address.toOutputScript(swapInfo.invoice, networks.regtest), // on regtest!
409+
address.toOutputScript(swapInfo.invoice, getNetwork(swapInfo.quote)), // mainnet
410+
// address.toOutputScript(swapInfo.invoice, networks.regtest), // on regtest!
411411
feeEstimation[swapInfo.quote]
412412
// false
413413
// swapResponse.timeoutBlockHeight // -> only for refund tx

0 commit comments

Comments
 (0)