From 2ce18b85ee16f74cc2a56368ec2afa4cad02d476 Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Sat, 9 Dec 2017 13:22:20 -0800 Subject: [PATCH] Generate witness addresses instead of p2pkh. lnd requires inputs to funding transactions to spend from pay-to-witness outputs. --- app/components/Wallet/ReceiveModal.js | 2 +- app/routes/app/components/App.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Wallet/ReceiveModal.js b/app/components/Wallet/ReceiveModal.js index 49b89710..10612aac 100644 --- a/app/components/Wallet/ReceiveModal.js +++ b/app/components/Wallet/ReceiveModal.js @@ -64,7 +64,7 @@ const ReceiveModal = ({ isOpen, hideActivityModal, pubkey, address, newAddress,

Deposit Address

- newAddress('p2pkh')}>New Address + newAddress('np2wkh')}>New Address

{address} diff --git a/app/routes/app/components/App.js b/app/routes/app/components/App.js index f0caab1d..32d67c20 100644 --- a/app/routes/app/components/App.js +++ b/app/routes/app/components/App.js @@ -14,7 +14,7 @@ class App extends Component { fetchTicker() fetchBalance() fetchInfo() - newAddress('p2pkh') + newAddress('np2wkh') } render() {