Closed karldiab closed 5 years ago
The output attempting to be swept after fees ends up dipping below the dust limit (546 sats). This needs to be handled correctly within the sweeper.
Should be fixed by #1960.
The logic is there in #1960 to handle this, but it probably won’t fix this immediately unless the fee rate comes down. Once it becomes economical, it will be swept
The logic is there in #1960 to handle this, but it probably won’t fix this immediately unless the fee rate comes down. Once it becomes economical, it will be swept
So wait until PR #1960 is merged, update then try unlocking wallet when network fees are low? Any way I can fund an address in my wallet to bring that balance >0?
At least it fixes it in that it doesn't crash anymore.
Tried to fund my lnd wallet by sending BTC to an address I previously used to fund my LND with the hopes of giving it enough bits to pay for this sweep transaction. Initially it looked like it was working, while LND was resyncing it was reporting the unconfirmed balance that I sent to it. But once it finished syncing it still reported
22:13:03 raspberrypi lnd[6740]: transaction output has negative value of -224
then shut down. Now when I restart and unlock it, it immediately reports the "transaction output has negative value" message then shuts down rather than syncing first then shutting down. (Progress?)
Maybe I need to fund a specific address? Anyone have any ideas on how to find that address?
Funding your wallet will not help - we're attempting to sweep our output of the funding transaction directly.
This patch should allow you to start up if you re-compile lnd
with it:
diff --git a/utxonursery.go b/utxonursery.go
index 3f8cc2f3..24bdb89b 100644
--- a/utxonursery.go
+++ b/utxonursery.go
@@ -888,7 +888,6 @@ func (u *utxoNursery) graduateClass(classHeight uint32) error {
if err != nil {
utxnLog.Errorf("Failed to create sweep txn at "+
"height=%d", classHeight)
- return err
}
}
Funding your wallet will not help - we're attempting to sweep our output of the funding transaction directly.
This patch should allow you to start up if you re-compile
lnd
with it:index 3f8cc2f3..24bdb89b 100644 --- a/utxonursery.go +++ b/utxonursery.go @@ -888,7 +888,6 @@ func (u *utxoNursery) graduateClass(classHeight uint32) error { if err != nil { utxnLog.Errorf("Failed to create sweep txn at "+ "height=%d", classHeight) - return err } }
Thanks for the help! Do you know of any articles or instructions for how I can achieve this?
Apply the patch locally with git apply
and compile lnd
by following the install docs. Feel free to join our slack/IRC if you get stuck along the way.
Applying the patch wasn't working for me, but I manually commented out that line in utxonursery.go and it's not working!! Thanks wpaulino!!
Hopefully my channels are still open after a week of inactivity
Edit: opps, bad typo: ***it's now working!!
Background
LND has been running happily on my rpi3 for about 3 weeks. I would check in on it every 2 days or so because it seemed to lock itself after every 3-5 days (not sure if that's normal). I checked in yesterday to find it locked, I unlocked it and it started filtering blocks about ~300 back from head. When it got to the end it reported "Failed to graduate outputs at height=552497: transaction output has negative value of -301" then shut down. Upon restarting the same thing occurs. Can my channels be saved?
Your environment
lnd
"lnd version 0.5.1-beta commit="uname -a
on *Nix) "Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35"btcd
,bitcoind
, or other backend "Bitcoin Core Daemon version v0.17.0.1"Steps to reproduce
Tell us how to reproduce this issue. Please provide stacktraces and links to code in question. Simply run lnd and unlock wallet.
Expected behaviour
Tell us what should happen I should be able to spend my precious satoshis 😢
Actual behaviour
Tell us what happens instead Crash.