LN-Zap / zap-desktop

Zap Wallet - Cross platform Lightning Network wallet focused on user experience and ease of use ⚡️
MIT License
1.28k stars 216 forks source link

RBF support #3685

Open haraslub opened 4 years ago

haraslub commented 4 years ago

Description

I set too small fee (1 sat/vByte), thus the funding transaction has not been confirmed more than one week.

Expected Behavior

As the transaction is RBF, I would expect to be able to do child pays for parent in the wallet.

Actual Behavior

Unfortunately, I have not been able to find any way to do it and the transaction is stucked.

Context

Could any one provide me with the solution for a beginner, please?

Your Environment

mrfelton commented 4 years ago

Bumping fees is currently not supported in Zap.

You might want to try using lncli bumpfee or you can wait for the transaction to be mined or expelled from the mempool.

haraslub commented 4 years ago

Bumping fees is currently not supported in Zap.

You might want to try using lncli bumpfee or you can wait for the transaction to be mined or expelled from the mempool.

Thank you for the answer, @mrfelton. Are there any instructions how to use lncli bumpfee?

mrfelton commented 4 years ago

See https://github.com/LN-Zap/zap-desktop/blob/master/docs/ADVANCED.md#connecting-to-lnd-with-lncli for how to use lncli with the build in lnd node.

See lncli --help for help with lncli!

jdhines commented 3 years ago

$ lncli bumpfee >>No help topic for 'bumpfee'

This command doesn't seem to exist

$ lncli --help

NAME:
   lncli - control plane for your Lightning Network Daemon (lnd)

USAGE:
   lncli [global options] command [command options] [arguments...]

VERSION:
   0.10.2-beta commit=

COMMANDS:
     getinfo     Returns basic information related to the active daemon.
     debuglevel  Set the debug level.
     stop        Stop and shutdown the daemon.
     version     Display lncli and lnd version info.
     help, h     Shows a list of commands or help for one command

   Channels:
     openchannel        Open a channel to a node or an existing peer.
     closechannel       Close an existing channel.
     closeallchannels   Close all existing channels.
     abandonchannel     Abandons an existing channel.
     channelbalance     Returns the sum of the total available channel balance across all open channels.
     pendingchannels    Display information pertaining to pending channels.
     listchannels       List all open channels.
     closedchannels     List all closed channels.
     getnetworkinfo     Get statistical information about the current state of the network.
     feereport          Display the current fee policies of all active channels.
     updatechanpolicy   Update the channel policy for all channels, or a single channel.
     exportchanbackup   Obtain a static channel back up for a selected channels, or all known channels
     verifychanbackup   Verify an existing channel backup
     restorechanbackup  Restore an existing single or multi-channel static channel backup

   Graph:
     describegraph   Describe the network graph.
     getnodemetrics  Get node metrics.
     getchaninfo     Get the state of a channel.
     getnodeinfo     Get information on a specific node.

   Invoices:
     addinvoice     Add a new invoice.
     lookupinvoice  Lookup an existing invoice by its payment hash.
     listinvoices   List all invoices currently stored within the database. Any active debug invoices are ignored.
     decodepayreq   Decode a payment request.

   Macaroons:
     bakemacaroon  Bakes a new macaroon with the provided list of permissions and restrictions

   On-chain:
     estimatefee    Get fee estimates for sending bitcoin on-chain to multiple addresses.
     sendmany       Send bitcoin on-chain to multiple addresses.
     sendcoins      Send bitcoin on-chain to an address.
     listunspent    List utxos available for spending.
     listchaintxns  List transactions from the wallet.

   Payments:
     sendpayment    Send a payment over lightning.
     payinvoice     Pay an invoice over lightning.
     sendtoroute    Send a payment over a predefined route.
     listpayments   List all outgoing payments.
     queryroutes    Query a route to a destination.
     fwdinghistory  Query the history of all forwarded HTLCs.
     trackpayment   Track progress of an existing payment.
     querymc        Query the internal mission control state.
     queryprob      Estimate a success probability.
     resetmc        Reset internal mission control state.
     buildroute     Build a route from a list of hop pubkeys.

   Peers:
     connect     Connect to a remote lnd peer.
     disconnect  Disconnect a remote lnd peer identified by public key.
     listpeers   List all active, currently connected peers.

   Startup:
     create          Initialize a wallet when starting lnd for the first time.
     unlock          Unlock an encrypted wallet at startup.
     changepassword  Change an encrypted wallet's password at startup.

   Wallet:
     newaddress     Generates a new address.
     walletbalance  Compute and display the wallet's current balance.
     signmessage    Sign a message with the node's private key.
     verifymessage  Verify a message signed with the signature.

   Watchtower:
     wtclient  Interact with the watchtower client.

GLOBAL OPTIONS:
   --rpcserver value          host:port of ln daemon (default: "localhost:10009")
   --lnddir value             path to lnd's base directory (default: "~/Library/Application Support/Lnd")
   --tlscertpath value        path to TLS certificate (default: "~/Library/Application Support/Lnd/tls.cert")
   --chain value, -c value    the chain lnd is running on e.g. bitcoin (default: "bitcoin")
   --network value, -n value  the network lnd is running on e.g. mainnet, testnet, etc. (default: "mainnet")
   --no-macaroons             disable macaroon authentication
   --macaroonpath value       path to macaroon file
   --macaroontimeout value    anti-replay macaroon validity time in seconds (default: 60)
   --macaroonip value         if set, lock macaroon to specific IP address
   --help, -h                 show help
   --version, -v              print the version
bolatovumar commented 3 years ago

@jdhines doesn't look like bumpfee command exists. I think it should be lncli wallet bumpfee --sat_per_byte 110 TXID:NUMBER instead.

See here: https://lightningwiki.net/index.php/Bumping_fee_for_lightning_channel_open

aomgar commented 3 years ago

Iam trying to run the lncli but whenever I try to run the EXE it opens up a command line then closes immediately after. I cant put in commands or anything and I'am getting frustrated since I need to RBF a transaction. Iam using windows 10

Managed to get it working and seems to have connected to lnd but when i use lncli wallet bumpfee --sat_per_byte 110 TXID:NUMBER all that comes up is invalid hex-encoded txid TXID

bolatovumar commented 3 years ago

@aomgar are you using TXID in the console? TXID should be your transaction ID that you are trying to bump. For example, for this transaction (https://blockstream.info/tx/ca2b7dc1699a1988bcf81d5a2ea20b164176a9e82ad55bd87fcd6b30e1f41ad1) TXID would be ca2b7dc1699a1988bcf81d5a2ea20b164176a9e82ad55bd87fcd6b30e1f41ad1.