Skip to content

Commit

Permalink
LNURL-pay request forwarding via LN P2P messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjoberg committed Feb 7, 2023
1 parent bfcdabb commit 6e94da3
Show file tree
Hide file tree
Showing 8 changed files with 1,008 additions and 36 deletions.
1 change: 1 addition & 0 deletions config/config_TEMPLATE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config: Config = {
adminMacaroon: "~/path/to/lnd/admin.macaroon",
},
singlePaymentForwardWithdrawLimit: 5,
disableCustodial: false,
};

export default config;
5 changes: 5 additions & 0 deletions config/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ export interface Config {
// The number of single payment withdrawals (in contrast to batch withdrawal) we allow.
// If exceeded, batch withdrawal is enforced.
singlePaymentForwardWithdrawLimit: number;

// Disable the custodial part of Lightning Box.
// This requires users to be online at the time of the payment request.
// Otherwise the request will immediately fail.
disableCustodial: boolean;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"postbuild": "cp src/proto.js dist",
"start": "rm -rf dist && npm run build && node dist/src/server.js",
"watch": "concurrently \"tsc -p tsconfig.json -w\" \"nodemon -w dist dist/server.js\"",
"proto": "pbjs --force-long -t static-module -o src/proto.js proto/rpc.proto proto/router.proto && pbts -o src/proto.d.ts src/proto.js",
"proto": "pbjs --force-long -t static-module -o src/proto.js proto/lightning.proto proto/router.proto && pbts -o src/proto.d.ts src/proto.js",
"test": "jest tests",
"test:coverage": "jest --coverage --coveragePathIgnorePatterns \"proto\\.js|mocks\" tests"
},
Expand Down
Loading

0 comments on commit 6e94da3

Please sign in to comment.