mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Release 0.15.5 (#1492)
* Version Updated to 0.15.5-beta * Fix to show correct experimental-dual-fund configuration from listconfig (#1479) * feat: boltz swap in refund address (#1490) require a refund address when creating a swap in and paying it externally to make sure the swap can be refunded automatically if it fails. --------- Co-authored-by: jackstar12 <62219658+jackstar12@users.noreply.github.com>
This commit is contained in:
parent
7a03673e6e
commit
8a0304c162
12 changed files with 71 additions and 17 deletions
|
|
@ -79,7 +79,7 @@ export const getSwapInfo = (req, res, next) => {
|
|||
});
|
||||
};
|
||||
export const createSwap = (req, res, next) => {
|
||||
const { amount, sendFromInternal, address } = req.body;
|
||||
const { amount, sendFromInternal, address, refundAddress } = req.body;
|
||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Boltz', msg: 'Creating Swap..' });
|
||||
options = common.getBoltzServerOptions(req);
|
||||
if (options.url === '') {
|
||||
|
|
@ -88,7 +88,7 @@ export const createSwap = (req, res, next) => {
|
|||
return res.status(err.statusCode).json({ message: err.message, error: err.error });
|
||||
}
|
||||
options.url = options.url + '/v1/createswap';
|
||||
options.body = { amount: amount };
|
||||
options.body = { amount: amount, refundAddress };
|
||||
if (sendFromInternal) {
|
||||
options.body.send_from_internal = sendFromInternal;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue