Browse Source

Generate witness addresses instead of p2pkh.

lnd requires inputs to funding transactions to spend from
pay-to-witness outputs.
renovate/lint-staged-8.x
Jim Posen 7 years ago
parent
commit
2ce18b85ee
  1. 2
      app/components/Wallet/ReceiveModal.js
  2. 2
      app/routes/app/components/App.js

2
app/components/Wallet/ReceiveModal.js

@ -64,7 +64,7 @@ const ReceiveModal = ({ isOpen, hideActivityModal, pubkey, address, newAddress,
<section> <section>
<div className={styles.addressHeader}> <div className={styles.addressHeader}>
<h4>Deposit Address</h4> <h4>Deposit Address</h4>
<span className={styles.newAddress} onClick={() => newAddress('p2pkh')}>New Address</span> <span className={styles.newAddress} onClick={() => newAddress('np2wkh')}>New Address</span>
</div> </div>
<p> <p>
<span>{address}</span> <span>{address}</span>

2
app/routes/app/components/App.js

@ -14,7 +14,7 @@ class App extends Component {
fetchTicker() fetchTicker()
fetchBalance() fetchBalance()
fetchInfo() fetchInfo()
newAddress('p2pkh') newAddress('np2wkh')
} }
render() { render() {

Loading…
Cancel
Save