diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.json index 32111a6396c7..e631dd9bb572 100644 --- a/contrib/msggen/msggen/schema.json +++ b/contrib/msggen/msggen/schema.json @@ -15008,7 +15008,7 @@ "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", "- 302: The output amount is too small, and would be considered dust.", "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels).", "", "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.)." ], @@ -16087,7 +16087,8 @@ "", "- -32602: If the given parameters are wrong.", "- -1: Catchall nonspecific error.", - "- 301: Insufficient UTXOs to meet *satoshi* value." + "- 301: Insufficient UTXOs to meet *satoshi* value.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels)." ], "author": [ "Rusty Russell [rusty@rustcorp.com.au](mailto:rusty@rustcorp.com.au) is mainly responsible." @@ -30692,7 +30693,7 @@ "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", "- 302: The output amount is too small, and would be considered dust.", "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels).", "", "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.). See lightning-fundchannel_start(7) and lightning-fundchannel_complete(7).", "", @@ -30937,7 +30938,8 @@ "", "- -1: Catchall nonspecific error.", "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The dust limit is not met." + "- 302: The dust limit is not met.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." ], "author": [ "ZmnSCPxj [ZmnSCPxj@protonmail.com](mailto:ZmnSCPxj@protonmail.com) is mainly responsible." @@ -38460,7 +38462,8 @@ "", "- -1: Catchall nonspecific error.", "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The dust limit is not met." + "- 302: The dust limit is not met.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." ], "author": [ "Rusty Russell [rusty@rustcorp.com.au](mailto:rusty@rustcorp.com.au) is mainly responsible." @@ -38832,6 +38835,13 @@ } } }, + "errors": [ + "On failure, an error is reported and no transaction is created.", + "", + "- -1: Catchall nonspecific error.", + "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." + ], "usage": [ "The caller is trying to buy a liquidity ad but the command keeps failing. They have funds in their wallet, but they're all P2SH-wrapped outputs.", "", @@ -39067,7 +39077,8 @@ "", "- -32602: If the given parameters are wrong.", "- -1: Catchall nonspecific error.", - "- 301: Insufficient UTXOs to meet *satoshi* value." + "- 301: Insufficient UTXOs to meet *satoshi* value.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels)." ], "author": [ "Rusty Russell [rusty@rustcorp.com.au](mailto:rusty@rustcorp.com.au) is mainly responsible." @@ -40958,7 +40969,7 @@ "- -1: Catchall nonspecific error.", "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", "- 302: The dust limit is not met.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have anchor channels)." + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." ], "author": [ "Felix [fixone@gmail.com](mailto:fixone@gmail.com) is mainly responsible." diff --git a/doc/schemas/fundchannel.json b/doc/schemas/fundchannel.json index 0aaa6c5f6d95..6f7cfacf77f9 100644 --- a/doc/schemas/fundchannel.json +++ b/doc/schemas/fundchannel.json @@ -223,7 +223,7 @@ "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", "- 302: The output amount is too small, and would be considered dust.", "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels).", "", "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.)." ], diff --git a/doc/schemas/fundpsbt.json b/doc/schemas/fundpsbt.json index 68354ef79c1a..4dc53b1f1960 100644 --- a/doc/schemas/fundpsbt.json +++ b/doc/schemas/fundpsbt.json @@ -194,7 +194,8 @@ "", "- -32602: If the given parameters are wrong.", "- -1: Catchall nonspecific error.", - "- 301: Insufficient UTXOs to meet *satoshi* value." + "- 301: Insufficient UTXOs to meet *satoshi* value.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels)." ], "author": [ "Rusty Russell [rusty@rustcorp.com.au](mailto:rusty@rustcorp.com.au) is mainly responsible." diff --git a/doc/schemas/multifundchannel.json b/doc/schemas/multifundchannel.json index 415b89d30aa5..8307b259844d 100644 --- a/doc/schemas/multifundchannel.json +++ b/doc/schemas/multifundchannel.json @@ -313,7 +313,7 @@ "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", "- 302: The output amount is too small, and would be considered dust.", "- 303: Broadcasting of the funding transaction failed, the internal call to bitcoin-cli returned with an error.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have or are opening anchor channels).", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels).", "", "Failure may also occur if **lightningd** and the peer cannot agree on channel parameters (funding limits, channel reserves, fees, etc.). See lightning-fundchannel_start(7) and lightning-fundchannel_complete(7).", "", diff --git a/doc/schemas/multiwithdraw.json b/doc/schemas/multiwithdraw.json index f2884beea852..e7185a7e7da4 100644 --- a/doc/schemas/multiwithdraw.json +++ b/doc/schemas/multiwithdraw.json @@ -72,7 +72,8 @@ "", "- -1: Catchall nonspecific error.", "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The dust limit is not met." + "- 302: The dust limit is not met.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." ], "author": [ "ZmnSCPxj [ZmnSCPxj@protonmail.com](mailto:ZmnSCPxj@protonmail.com) is mainly responsible." diff --git a/doc/schemas/txprepare.json b/doc/schemas/txprepare.json index bca25b089d57..ef7f162ae7c7 100644 --- a/doc/schemas/txprepare.json +++ b/doc/schemas/txprepare.json @@ -81,7 +81,8 @@ "", "- -1: Catchall nonspecific error.", "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", - "- 302: The dust limit is not met." + "- 302: The dust limit is not met.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." ], "author": [ "Rusty Russell [rusty@rustcorp.com.au](mailto:rusty@rustcorp.com.au) is mainly responsible." diff --git a/doc/schemas/upgradewallet.json b/doc/schemas/upgradewallet.json index 02e1ba6602cd..98fbcf44edb2 100644 --- a/doc/schemas/upgradewallet.json +++ b/doc/schemas/upgradewallet.json @@ -63,6 +63,13 @@ } } }, + "errors": [ + "On failure, an error is reported and no transaction is created.", + "", + "- -1: Catchall nonspecific error.", + "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." + ], "usage": [ "The caller is trying to buy a liquidity ad but the command keeps failing. They have funds in their wallet, but they're all P2SH-wrapped outputs.", "", diff --git a/doc/schemas/utxopsbt.json b/doc/schemas/utxopsbt.json index c27458b1e558..31d052f43691 100644 --- a/doc/schemas/utxopsbt.json +++ b/doc/schemas/utxopsbt.json @@ -191,7 +191,8 @@ "", "- -32602: If the given parameters are wrong.", "- -1: Catchall nonspecific error.", - "- 301: Insufficient UTXOs to meet *satoshi* value." + "- 301: Insufficient UTXOs to meet *satoshi* value.", + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have or are opening anchor channels)." ], "author": [ "Rusty Russell [rusty@rustcorp.com.au](mailto:rusty@rustcorp.com.au) is mainly responsible." diff --git a/doc/schemas/withdraw.json b/doc/schemas/withdraw.json index 2e0290df4b4a..84e0fcfe2212 100644 --- a/doc/schemas/withdraw.json +++ b/doc/schemas/withdraw.json @@ -84,7 +84,7 @@ "- -1: Catchall nonspecific error.", "- 301: There are not enough funds in the internal wallet (including fees) to create the transaction.", "- 302: The dust limit is not met.", - "- 313: The `min-emergency-msat` reserve not be preserved (and we have anchor channels)." + "- 313: The `min-emergency-msat` reserve could not be preserved (and we have anchor channels)." ], "author": [ "Felix [fixone@gmail.com](mailto:fixone@gmail.com) is mainly responsible."