Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not enough witness outputs to create funding transaction, need xxx BTC only have 0 BTC available #7023

Closed
philipp1992 opened this issue Oct 11, 2022 · 4 comments
Labels
channel management The management of the nodes channels funding Related to the opening of new channels with funding transactions on the blockchain

Comments

@philipp1992
Copy link

when trying to open a channel, i get the following error.
also happens when selecting smaller channel sizes

2022-10-10 22:55:58.224 [DBG] RPCS: [openchannel]: using fee of 253 sat/kw for funding tx
2022-10-10 22:55:58.224 [INF] FNDG: Initiating fundingRequest(local_amt=0.02106 BTC (subtract_fees=true), push_amt=0 mSAT, chain_hash=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943, peer=02c37560a8f8b82c065abe4c0ce92525398de43931e35196d0155e51c26bde10b4, dust_limit=0.00000573 BTC, min_confs=1)
2022-10-10 22:55:58.224 [INF] CHFD: Performing funding tx coin selection using 253 sat/kw as fee rate
2022-10-10 22:55:58.399 [ERR] RPCS: unable to open channel to NodeKey(02c37560a8f8b82c065abe4c0ce92525398de43931e35196d0155e51c26bde10b4): not enough witness outputs to create funding transaction, need 0.02106 BTC only have 0 BTC  available
2022-10-10 22:55:58.399 [ERR] RPCS: [/lnrpc.Lightning/OpenChannel]: not enough witness outputs to create funding transaction, need 0.02106 BTC only have 0 BTC  available
2022-10-10 22:56:00.856 [DBG] RPCS: [pendingchannels]
2022-10-10 22:56:00.856 [DBG] RPCS: [listchannels] fetched 0 channels from DB

hours later still the same error

2022-10-11 15:08:03.580 [DBG] RPCS: [openchannel] request to NodeKey(02c37560a8f8b82c065abe4c0ce92525398de43931e35196d0155e51c26bde10b4) allocation(us=1757999, them=0)
2022-10-11 15:08:03.581 [INF] SWPR: Manual fee rate input of 250 sat/kw is too low, using 253 sat/kw instead
2022-10-11 15:08:03.581 [DBG] RPCS: [openchannel]: using fee of 253 sat/kw for funding tx
2022-10-11 15:08:03.581 [INF] FNDG: Initiating fundingRequest(local_amt=0.01757999 BTC (subtract_fees=true), push_amt=0 mSAT, chain_hash=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943, peer=02c37560a8f8b82c065abe4c0ce92525398de43931e35196d0155e51c26bde10b4, dust_limit=0.00000573 BTC, min_confs=1)
2022-10-11 15:08:03.581 [INF] CHFD: Performing funding tx coin selection using 253 sat/kw as fee rate
2022-10-11 15:08:03.750 [ERR] RPCS: unable to open channel to NodeKey(02c37560a8f8b82c065abe4c0ce92525398de43931e35196d0155e51c26bde10b4): not enough witness outputs to create funding transaction, need 0.01757999 BTC only have 0 BTC  available
2022-10-11 15:08:03.750 [ERR] RPCS: [/lnrpc.Lightning/OpenChannel]: not enough witness outputs to create funding transaction, need 0.01757999 BTC only have 0 BTC  available

@philipp1992 philipp1992 added bug Unintended code behaviour needs triage labels Oct 11, 2022
@sputn1ck
Copy link
Collaborator

What version of lnd are you running?

Did you confirm that you have the funds available and confirmed with lncli walletbalance and lncli listutxos?

Sometimes utxos are reserved, did you try restarting lnd?

@philipp1992
Copy link
Author

yes i can confirm that funds are available
its 0.14, restart doesnt help

@sputn1ck
Copy link
Collaborator

Ah I see, I think your issue might be related to the recent bug in the btcd script library.
Upgrading to lnd 0.15.2 will probably fix your issue

@philipp1992
Copy link
Author

can confirm we are hitting this bug. thanks

@sputn1ck sputn1ck added funding Related to the opening of new channels with funding transactions on the blockchain channel management The management of the nodes channels and removed bug Unintended code behaviour needs triage labels Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
channel management The management of the nodes channels funding Related to the opening of new channels with funding transactions on the blockchain
Projects
None yet
Development

No branches or pull requests

2 participants