Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
boufni95 committed Apr 24, 2024
1 parent 565b5d0 commit 3280b63
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/services/lnd/openChannelReq.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OpenChannelRequest } from "../../../proto/lnd/lightning";
import { CommitmentType, OpenChannelRequest } from "../../../proto/lnd/lightning";

export const OpenChannelReq = (destination: string, closeAddress: string, fundingAmount: number, pushSats: number): OpenChannelRequest => ({
nodePubkey: Buffer.from(destination, 'hex'),
Expand All @@ -13,18 +13,18 @@ export const OpenChannelReq = (destination: string, closeAddress: string, fundin
feeRate: 1n, // TBD
targetConf: 0,
zeroConf: false,
maxLocalCsv: 0,
remoteCsvDelay: 0,
maxLocalCsv: 144,
remoteCsvDelay: 144,
spendUnconfirmed: false,
minHtlcMsat: 0n,
remoteChanReserveSat: 0n,
remoteMaxHtlcs: 0,
remoteMaxValueInFlightMsat: 0n,
useBaseFee: false,
useFeeRate: false,
minHtlcMsat: 1n,
remoteChanReserveSat: 10000n,
remoteMaxHtlcs: 483,
remoteMaxValueInFlightMsat: 990000000n,
useBaseFee: true,
useFeeRate: true,

// Default stuff
commitmentType: 0,
commitmentType: CommitmentType.ANCHORS,
scidAlias: false,
nodePubkeyString: "",
satPerByte: 0n,
Expand Down

0 comments on commit 3280b63

Please sign in to comment.