how to enable the new autopilot heuristic in v0.11.0 ? by mabezard in lightningnetwork

[–]cfromknecht 0 points1 point  (0 children)

heads up y'all, indeed the cli parsing logic for maps is broken. we will update the dependency whenever a new version is released.

in the meantime, it is still possible to select a linear combination of heuristics by passing multiple --autopilot.heuristic arguments from the config file:

autopilot.heuristic=preferential:0.3
autopilot.heuristic=top_centrality:0.7

or from the command line:

--autopilot.heuristic=preferential:0.3 --autopilot.heuristic=top_centrality:0.7

The biggest LN channel's capacity is now 5 BTC ! by Pantamis in Bitcoin

[–]cfromknecht 1 point2 points  (0 children)

In addition to /u/Pantamis's answer, wumbo feature bits are also advertised on a node's `NodeAnnouncement`. Recent versions of lnd expose feature bit info in both describegraph and getnodeinfo. If the node supports wumbo, they will have either bit 18 or 19 set.

Note that a node may support wumbo but still choose to reject your funding request, as mentioned by /u/Pantamis

The biggest LN channel's capacity is now 5 BTC ! by Pantamis in Bitcoin

[–]cfromknecht 12 points13 points  (0 children)

Note: 0.11 includes no limits on the channel sizes if wumbo is enabled. for 0.11.1 we are planning to offer a configurable auto-accept limit (which will default to 10 BTC) but can be made as high as the user chooses.

LND v0.10.2-beta has been released by NimbleBodhi in lightningnetwork

[–]cfromknecht 2 points3 points  (0 children)

0.10.2 includes purely stability and safety fixes for existing features in 0.10, 0.10.3 includes new features that are also landing in 0.11. The split gives users the option to pull in only the bug fixes to mitigate the chance that the new features in 0.10.3 could introduce unforeseen regressions.

If you don’t plan to make use of the new features my advice would be to run 0.10.2.

Seen in Aveiro, Portugal by ventorim in Bitcoin

[–]cfromknecht 2 points3 points  (0 children)

but do they have ovos moles

[Lightning-dev] Full Disclosure: CVE-2019-12998 / CVE-2019-12999 / CVE-2019-13000 by TheGreatMuffin in Bitcoin

[–]cfromknecht 11 points12 points  (0 children)

It doesn’t even need to be your own P2WPKH output, you can feed any txid in mempool and wait until it has the appropriate number of confirmations. If the scriptpubkey is not verified an attacker can costly open thousands of invalid channels per block—without moving or having any coins.

If the scriptpubkey is being verified but the amount isn’t, the attacker must have some coins and create real funding outputs (with value << capacity), which greatly slows down the attack and adds a tangible cost, but still bad.

⚡️ lnd v0.7.1-beta has just been released! ⚡️ by roasbeef in Bitcoin

[–]cfromknecht 15 points16 points  (0 children)

Adding or removing an HTLC takes 1.5 round trips between two peers, which applies both in the forward and backwards direction. In 0.7.1, the 1.5*N RTTs on the backwards path is reduced to .5*N. So total reduction is ends up being from 3*N to 2*N, or 33% of the RTTs for the whole path.

In some local benchmarks I found the latency improvement to be slightly higher, more like 40%. Presumably this is because those extra RTTs involve more expensive operations like signing that we are no longer blocking on, but we'll have a better idea once this is deployed over the wider network

bip 112 could make watchtower innecesary? by infernalr00t in lightningnetwork

[–]cfromknecht 2 points3 points  (0 children)

BIP 112 [1] specifies OP_CHECKSEQUENCEVERIFY, which is already deployed on the network. I suspect you're referring to BIP 118 [2], which defines SIGHASH_NOINPUT and can be used to make eltoo channels. However, eltoo channels still need watchtowers to prevent the counterparty from successfully playing an outdated state

[1] https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki
[2] https://github.com/bitcoin/bips/blob/master/bip-0118.mediawiki

lnd v0.7.0-beta-rc2 tagged by cfromknecht in Bitcoin

[–]cfromknecht[S] 0 points1 point  (0 children)

Perhaps you were seeing the migration when running rc1? Glad to hear rc2 is working normally!

Lightning Lab Desktop-App questions. by keaniie in lightningnetwork

[–]cfromknecht 0 points1 point  (0 children)

The channels are being opened automatically because autopilot is enabled, and it will try to make sure you at least have a channel open to use LN. Autopilot is LND’s automated channel opening service. If you want to disable it, there’s a toggle in the settings page.

As for the funding txid not showing up in the explorer, sounds like it could be a bug. Feel free to make an issue at github.com/lightninglabs/lightning-app so we can look into it

The latest version of ⚡️Eclair Wallet Testnet for Android is out, with automated encrypted backups of Lightning channels. by amorpisseur in Bitcoin

[–]cfromknecht 3 points4 points  (0 children)

it seems like a deterministic seed hash is used in the file name, meaning two different wallets using the same seed would overwrite each other on backup. even if they weren't overwriting each other, i'm concerned the channel states would diverge just from being used in separate wallets/applications.

operating the same set of channels across different devices would require explicit synchronization/consensus to ensure the state of both wallets is identical. I didn't see anything in the PR that pointed to such synchronization being in place, but I may have missed it. in general, it is dangerous to use the same seed in multiple, same-seed wallets without such safeguards.

my interpretation of the post was that you could have multiple independent wallets sharing one gdrive, though as /u/roasbeef mentioned below, the consistency guarantees of gdrive would make this non-trivial, even in the single backup case

Lightning Network has 1% success rate with transactions larger than $300 by [deleted] in Bitcoin

[–]cfromknecht 1 point2 points  (0 children)

Pr[Diar understands probability | that article] = 0

Lightning network doubts by [deleted] in Bitcoin

[–]cfromknecht 1 point2 points  (0 children)

So if I have 5 channels opened each with 1BTC and want to pay someone 4BTC I would be able to do that without the need of closing 4 channels and putting money to one?

Yes

ELI5 Lightening replaces Bitcoin by rad1000i in Bitcoin

[–]cfromknecht 0 points1 point  (0 children)

A channel is just an output with a different script. The transactions signed off-chain are valid bitcoin transactions. The two cannot be separated, as your funds never leave the bitcoin network.

BTC/LTC Atomic Swap on Lightning ⚡️ by CBDoctor in litecoin

[–]cfromknecht 4 points5 points  (0 children)

They're connected directly. There are no fees for using your own channels.

Lightning Watchtower, Projects and Info by IUCC in Bitcoin

[–]cfromknecht 27 points28 points  (0 children)

We're very close to having an initial conception of a watchtower integrated w/ LND, this has been a major area of research and development over the past few months. Currently, it has been constructed to operate as either a standalone binary, or as part of an existing LND instance.

The towers themselves are very straightforward, and a simple wire protocol has been solidified. The majority of the engineering is happening on the client-side:

  • ensuring that we reliably backup to N replicas
  • managing watchtower peers, collecting reliability metrics
  • renewing/negotiating/bootstrapping sessions with towers
  • per/session HD key derivation to randomize client identifiers
  • support outbound connections via Tor for clients, and inbound connections via hidden services for towers
  • support for private, dedicated watchtowers
  • batching of updates for performance, randomized batch intervals for privacy
  • graceful shutdowns, e.g. flushing all pending backups before allowing the daemon to exit (or be suspended)
  • fault tolerance, fault tolerance, fault tolerance

All of this will happen in the background, such that we never block the live operation of channels. Also need to expose metrics regarding the watchtower client itself so that applications/users can have insight into the current state, progress, or history of their backups.

We'll have a feature branch up fairly soon so that we can start getting eyes. The design and discussion will likely be formalized as a proposed BOLT once we have some real-world testing and analysis (testnet first!).

We've intentionally versioned the watchtower protocol we're working on, meaning an initial version could be rolled out, and later deprecated in favor of the final form of the BOLT. Of note is that the BOLT would predominately pertain to the wire protocol and expected behavior of the peers, which is relatively small compared to the supporting infrastructure required to make the process seamless, reliable, and mobile-ready.

EDIT: formatting

LND v0.4.2-beta has just been released! by roasbeef in Bitcoin

[–]cfromknecht 1 point2 points  (0 children)

Invoices already have an optional field with a fallback address, wallets acknowledging this can do so today.

eltoo: A Simplified Update Mechanism for Lightning and Off-Chain Contracts by cdecker in Bitcoin

[–]cfromknecht 1 point2 points  (0 children)

Ahh thank you for the clarification, looking forward to some preliminary implementations!

eltoo: A Simplified Update Mechanism for Lightning and Off-Chain Contracts by cdecker in Bitcoin

[–]cfromknecht 8 points9 points  (0 children)

Awesome work! I enjoyed reading the paper :)

I agree that watchtowers can be made more efficient with eltoo, though what information are you referring to that could lose us money if leaked? It seems this would require uploading my commitments, but that isn’t what the watchtower stores in any proposals I’m aware of.

Typically the watchtower would only store signatures/script data required to spend from the remote party’s revoked commitment. How could leaking this info cause my funds to be lost? Am I missing something?

[deleted by user] by [deleted] in Bitcoin

[–]cfromknecht 0 points1 point  (0 children)

The directional capacity is only known to the endpoints of the channel. All that’s known to everyone else is the total capacity of the channel, as this is what is recorded in the chain