-
Notifications
You must be signed in to change notification settings - Fork 133
[bug]: On signet, min-relay-fee is not met if fee is not specified. Fee will be 1 sat short #1171
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
Comments
@habibitcoin was this behavior encountered while using litd or tapd? |
@dstadulis was using tapd specifically |
I wasn't able to reproduce the issue, but for testing purposes I use regtest. so that might have to do with it. What I did is create an itest that creates a synthetic situation where the fees don't meet the min relay fee. That way I recreated the issue. PR #1191 should fix this by bumping the fees to the min relay fee before broadcasting. |
awesome @gijswijs that should work! and yeah, i couldn't reproduce on regtest either, seemed to be strictly a signet issue |
What chain backend are you using for the It's possible that the fee floor LND is using is misconfigured, or the min relay fee LND is reading from that chain backend is not being propagated correctly. From |
I was asked to comment on this issue. I encountered a similar issue on LITD 0.14.1-alpha.rc2 (first reported on slack: https://lightningcommunity.slack.com/archives/C03B3556HQ8/p1738575364775059). Copy-pasting it here: I tried to send assets from one integrated litd node to another. But it seems the transaction feerate was below minrelayfee. Here's the log for the send:
Unfortunately, the exact command I used to send is lost, but I think the command I issued might have looked like this:
I'm not sure whethere I actually entered the
|
Based on this message in the log file It's really weird that it then doesn't meet the actual min_relay_fee. I can only assume that the estimation and the "view" of the WalletKit on the state of the mempool was incorrect. But the Tx didn't even hit the mempool, and |
It retries the broadcast upon restart:
And retrying the send with 4 sat/vb still doesn't work:
|
This should solve the coin locking issue: #1348 |
Unfortunately we have to convert to sat/vByte on the RPC level when funding the PSBT: taproot-assets/wallet_anchor.go Line 84 in e111765
This converts the 1.952 sat/vByte (1952 sat/kvByte) down to 1 sat/vByte which is not enough. I think we short term have to do a min relay fee aware conditional round up and long-term add a sat/kw unit on the FundPsbt RPC on the lnd side.
|
#1354 fixes this issue fully afaict. We are also working on a solution where we cancel these stuck parcels and release the assets so that a user can retry but that is a bit more involved. Also, the particular way that @kallerosenbaum's parcel got stuck will not happen anymore with the fix mentioned above. I think (but am not 100% sure) that updating to the latest build (don't forget to do a backup!) and restarting would probably get @kallerosenbaum's payment unstuck. But since you were on signet, I'm not even sure if this is needed anymore. Also, waiting for the next release is probably the better option. Closing this issue. |
Background
When using signet, it seems that calls to AnchorVirtualPSBT RPC and to SendAsset RPC will result in a transaction that does not meet the min-relay-fee. The vsize of the transaction ends up being 254.5 vB usually (see https://mempool.space/signet/tx/aff4e70f1816ec611da03a89889be79b81b57067355abe99c14e89f0f2085ba8#vin=0 as an example).
Here is an example txn that will not relay with a fee rate of barely under 1.00 sats/vB (size is 254.5, fee is 254)
I'm not sure exactly the problem here, perhaps something related to the nature of signet transactions (I havent seen this problem on other networks). Also unfortunately it seems not everyone has adopted package relay, so unable to use CPFP via package relay to unstuck the above txn using the below child:
Your environment
Steps to reproduce
Mint any asset and finalize the batch. Then try to spend the asset using the CLI and do NOT specify a fee rate.
Expected behavior
Transaction should be generated with 254.5 sats --> round up to 255 sats
Actual behavior
Transaction generated is 254 sats
The text was updated successfully, but these errors were encountered: