Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions backends/LND.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ export default class LND {
this.postRequest('/v1/transactions', {
addr: data.addr,
sat_per_byte: data.sat_per_byte,
amount: data.amount
amount: data.amount,
spend_unconfirmed: data.spend_unconfirmed
});
getMyNodeInfo = () => this.getRequest('/v1/getinfo');
getInvoices = () =>
Expand All @@ -214,7 +215,8 @@ export default class LND {
local_funding_amount: data.local_funding_amount,
min_confs: data.min_confs,
node_pubkey_string: data.node_pubkey_string,
sat_per_byte: data.sat_per_byte
sat_per_byte: data.sat_per_byte,
spend_unconfirmed: data.spend_unconfirmed
});
openChannelStream = (data: OpenChannelRequest) =>
this.wsReq('/v1/channels/stream', 'POST', data);
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -605,4 +605,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: efc833166b7b0450bed68b04f2b4b56a891b648f

COCOAPODS: 1.11.2
COCOAPODS: 1.11.3
1 change: 1 addition & 0 deletions models/TransactionRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default interface TransactionRequest {
amount?: string;
utxos?: string[];
conf_target?: number;
spend_unconfirmed?: boolean;
}

export type SendPaymentRequest =
Expand Down
3 changes: 2 additions & 1 deletion stores/ChannelsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ export default class ChannelsStore {
inputs,
outputs
},
sat_per_vbyte: Number(sat_per_byte)
sat_per_vbyte: Number(sat_per_byte),
spend_unconfirmed: true
};

RESTUtils.fundPsbt(fundPsbtRequest)
Expand Down
3 changes: 2 additions & 1 deletion stores/TransactionsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export default class TransactionsStore {
outputs,
inputs
},
sat_per_vbyte: Number(sat_per_byte)
sat_per_vbyte: Number(sat_per_byte),
spend_unconfirmed: true
};

RESTUtils.fundPsbt(fundPsbtRequest)
Expand Down
2 changes: 2 additions & 0 deletions views/OpenChannel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ interface OpenChannelState {
node_pubkey_string: string;
local_funding_amount: string;
min_confs: number;
spend_unconfirmed: boolean;
sat_per_byte: string;
private: boolean;
host: string;
Expand All @@ -68,6 +69,7 @@ export default class OpenChannel extends React.Component<
node_pubkey_string: '',
local_funding_amount: '',
min_confs: 1,
spend_unconfirmed: true,
sat_per_byte: '2',
private: false,
host: '',
Expand Down
6 changes: 4 additions & 2 deletions views/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,16 @@ export default class Send extends React.Component<SendProps, SendState> {
sat_per_byte: fee,
amount: satAmount.toString(),
target_conf: Number(confirmationTarget),
utxos
utxos,
spend_unconfirmed: true
};
} else {
request = {
addr: destination,
sat_per_byte: fee,
amount: satAmount.toString(),
target_conf: Number(confirmationTarget)
target_conf: Number(confirmationTarget),
spend_unconfirmed: true
};
}
TransactionsStore.sendCoins(request);
Expand Down