-
Notifications
You must be signed in to change notification settings - Fork 906
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
lightning-cli txprepare with a particular syntax provokes FATAL SIGNAL 11 #3533
Comments
Was the utxo you passed confirmed ? I'm trying to reproduce this with 0.8.1 |
Ok looks like it was an unconfirmed utxo, repro test for 0.8 (EDIT: And 0.8.1): diff --git a/tests/test_wallet.py b/tests/test_wallet.py
index 01f496894..f2044422a 100644
--- a/tests/test_wallet.py
+++ b/tests/test_wallet.py
@@ -348,11 +348,17 @@ def test_txprepare(node_factory, bitcoind, chainparams):
l1.rpc.txdiscard(prep4['txid'])
# Try passing in a utxo set
- utxos = [utxo["txid"] + ":" + str(utxo["output"]) for utxo in l1.rpc.listfunds()["outputs"]][:4]
-
+ utxos = [utxo["txid"] + ":" + str(utxo["output"])
+ for utxo in l1.rpc.listfunds()["outputs"]][:4]
prep5 = l1.rpc.txprepare([{addr:
Millisatoshi(amount * 3.5 * 1000)}], utxos=utxos)
+ # Try passing unconfirmed utxos
+ unconfirmed_utxo = l1.rpc.withdraw(l1.rpc.newaddr()["bech32"], 10**5)
+ utxos = [unconfirmed_utxo["txid"] + ":0"]
+ prepx = l1.rpc.txprepare([{addr:
+ Millisatoshi(amount * 3.5 * 1000)}], utxos=utxos) |
|
RRRight!!! and, at the same time, I had the information I was looking for because in the meanwhile, the tx was confirmed. So the right format is:
It could be of some help have a mention of the right format as an example in the documentation. |
Issue and Steps to Reproduce
Trying to make
lightning-cli txprepare
work, I attempted also the following syntax:The output was:
The log said:
"version": "v0.8.0"
May I also have an example of which syntax should work?
The text was updated successfully, but these errors were encountered: