Comments (5)
This error message is displayed when you create a channel and the funds from the on-chain network has yet to be confirmed. The funding transaction here means an on-chain (bitcoin blockchain) transaction which can only be spent by mutual consent of the parties involved.
This is the code for reference:
Source: https://github.com/lightningnetwork/lnd/blob/master/lnwallet/wallet.go
// ErrInsufficientFunds is a type matching the error interface which is
// returned when coin selection for a new funding transaction fails to due
// having an insufficient amount of confirmed funds.
type ErrInsufficientFunds struct {
amountAvailable btcutil.Amount
amountSelected btcutil.Amount
}
func (e *ErrInsufficientFunds) Error() string {
return fmt.Sprintf("not enough witness outputs to create funding transaction,"+
" need %v only have %v available", e.amountAvailable,
e.amountSelected)
}
from lightning-app.
Thanks for that info. The app showed an incoming transaction that was "confirmed" though
from lightning-app.
djpnewton Sorry for asking this, but I'm just curious - was it 2 confirmations? I had to wait for 2 confirmations.
Edit: Nvm, ignore this. I've just checked I think 1 confirmation at the moment is enough for the tx to show up. I wonder why the error shows up, unless there's some issue and the wallet is getting out of sync. Sorry about that, would also like to know why this issue might have occurred.
Edit 2: I've faced this issue twice yesterday as well. I've cleared off my data folder and started to re-sync from scratch to check if it resolves it.
from lightning-app.
There is likely a bug in dealing with the bitcoin change. I successfully opened a channel but when trying to open other
$ lncli openchannel --node_key=03933884aaf1d6b108397e5efe5c86bcf2d8ca8d2f700eda99db9214fc2712b134 --local_amt=500000 --push_amt=100000
[lncli] rpc error: code = Unknown desc = not enough witness outputs to create funding transaction, need 0.005 BTC only have 0 BTC available
However, there are funds:
$ lncli walletbalance
{
"balance": "8968004"
}
and these funds are confirmed in a change
lncli listchaintxns
{
"transactions": [
{
"tx_hash": "f575e7ddc1cfd8eed1474d9989ce97c7cc230d533d8aad5e98ead721d870f184",
"amount": "10000000",
"num_confirmations": 1114,
"block_hash": "0000000002b04dde40e0941c8223108ac7b9eb7bd569fc0def2249cef1065239",
"block_height": 1231725,
"time_stamp": "1511596146",
"total_fees": "0"
},
{
"tx_hash": "f6fd2103a2d058083ccbd83b86848582438adeb6efc74a4f6bdab1d2ba0d2e82",
"amount": "-17332",
"num_confirmations": 1112,
"block_hash": "00000000018d98ab78c197ce6a66fa3923c491376cc4e244eedc48a2b2808fbf",
"block_height": 1231727,
"time_stamp": "1511598595",
"total_fees": "7332"
},
{
"tx_hash": "81f8cb31f888ef0446f963b6b08576e83b1105b3b138c30e4c1d6d04f8ebe191",
"amount": "-507332",
"num_confirmations": 1067,
"block_hash": "000000005e06aedd36733de436ee1b5cee382ed6da673e218a9036ed308f524d",
"block_height": 1231772,
"time_stamp": "1511610581",
"total_fees": "7332"
},
{
"tx_hash": "2e0f6a7f0924c5c8abe1bb9a8f41b926d7124d07ecc81b886a376a294d12878b",
"amount": "-507332",
"num_confirmations": 1065,
"block_hash": "00000000681aec6cda6bccb1bc2edcbeeabc75d57e4548744c64207fed7c0d25",
"block_height": 1231774,
"time_stamp": "1511613004",
"total_fees": "7332"
}
]
}
When I restart lnd, the channel opening goes through.
from lightning-app.
When I restart lnd, the channel opening goes through.
This has been fixed with lightningnetwork/lnd@c986e52. Closing.
from lightning-app.
Related Issues (20)
- unable to install correctly un ubuntu 16.04 HOT 2
- Failed to auto-update to 0.5.7 due to certificate error HOT 8
- App crashes without google play services HOT 1
- Receiving on a 0 invoice doesn't show the amount received
- Quoted 0 fee, payment ended up with a fee
- btc funding doesn't show up on macos catalina HOT 2
- Transactions never expire -> locked funds.
- Extract React Native layer into module HOT 10
- App stuck on spinner "Loading Network" while loading HOT 1
- windows 10 : transaction not found HOT 3
- macOs Catalina: Getting an error when building an application in Android Studio HOT 1
- App not working with testnet HOT 1
- Please allow recovering from 12-words seed phrases HOT 1
- Interface to configure bitcoin peers HOT 1
- Splash Screen and Unlocking screen
- Stuck on "Waiting Close" HOT 14
- iOS app crashes immediately when launched HOT 1
- How to run agains the testnet? HOT 1
- recover fund in the ios wallet after 12/31? HOT 1
- Can't install please help
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning-app.