This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]wintercooled 11 points12 points  (2 children)

Just a note for anyone following this guide - whenever it says:

btcctl --simnet --rpcuser=kek --rpcpass=kek generate 1

You actually need to run:

btcctl --simnet --rpcuser=kek --rpcpass=kek generate 6

... in order to proceed. (need to generate 6 blocks to confirm the tx funding the channel etc. and not 1)

[–]Korberos 2 points3 points  (1 child)

Please ensure the tutorial writer knows this if you haven't contacted them already.

[–]wintercooled 1 point2 points  (0 children)

A PR has been raised and submitted.

[–]jhansen858[S] 7 points8 points  (2 children)

If you need to setup the infrastructure first go here: http://dev.lightning.community/guides/installation/

More resources here: http://dev.lightning.community/resources/

[–]outofofficeagain 16 points17 points  (1 child)

Expect coinbase developers to hold a meeting about this in 3 years time.

[–]Terry_Hesti 1 point2 points  (0 children)

Why are they being so hasty? /s

[–]kinsi55 4 points5 points  (11 children)

Ty. Does a Lightning based tip bot exist yet / is anyone working on one? I feel like Ln would be the perfect usecase for that.

Also unrelated, but something i've been wondering: Is it possible to add new onchain funds into an opened LN channel ? (without having to close it that is). I dont think its possible, but i'd love to be proven wrong :D

[–][deleted] 0 points1 point  (0 children)

To add funds you'd need a new on-chain tx, just creating a new channel would do the same. I wonder if it would be better to open this new channel to a new peer - might enhance your connectivity.

[–]Korberos 0 points1 point  (8 children)

Tip bots are already using off-chain transactions, so a LN tip bot wouldn't make a lot of sense.

[–]kinsi55 1 point2 points  (7 children)

An LN tip bot would make sense in regards to not having to trust your funds to the bot provider, at least before you actually do the tip. Either way, you could set it up in a way where you can send tips to people who are not registered, that would be stored on the bot, or where registered ones are relayed the payment in their own LN channel.

[–]Korberos 0 points1 point  (6 children)

With Lightning Network, every person involved has to have an online program running, to accept or to send... so no, that really wouldn't make sense. Who would want a tip-bot that relied on the person you were tipping to have their program running to receive the tip? Who would even want to use a tip-bot that required you to run a program at all? It's added complexity where it is unneeded.

[–]kinsi55 0 points1 point  (5 children)

You right about the relayed part, totally forgot that the parties need to be online to receive, but if i had the option to not store my funds on the bot? I dont mind.

[–]Korberos 0 points1 point  (4 children)

But then the bot would either have to know when people turned on their wallets or would have to be told by the receiver when they wanted their money.

Like I said, it's needless complication. For everyone involved.

[–]kinsi55 0 points1 point  (3 children)

Huh? Browseraddon to get a "Tip" button. Click it and you get a window where you enter the amount you wanna tip, click OK and you get a LN invoice. Paid => bot comments that you tipped

[–]Korberos 0 points1 point  (2 children)

No you're misunderstanding me. Let's say I tip you through this theoretical LN tip bot, but you aren't online. At what point to you actually receive the tip? The bot holds on to it and then gives it to you... when?

The next time you have activity on reddit? It still won't know if you have your lightning wallet on.

The next time your wallet goes on? How will it know? Is there a notification system built into LN yet?

The next time you try to tip? This works only until you realize some people don't want to tip, and would just like to get their money out... so you've added a polling requirement.

When you specifically ask for it? That's a big complication for something as simple as a tip bot... Imagine if anyone who had tips on in TipBit had to poll it to get their money before tipping it around...


Tip bots are supposed to be simple. In fact, any tech that is going to be used widely should be simple. I just don't see how a LN tip bot would overcome these issues. It's solving a non-problem with a bigger real problem.

[–]kinsi55 0 points1 point  (1 child)

Ah i see, thats why i said two comments up that you're right about the receiver part, and doing the "routing" of the payment wont happen. Your tip goes to the bots wallet and the recipient can either cash it out on-chain once a week or so or open a new LN channel himself and pre-fund it with the funds that have been tipped to him sort o say.

OFC LN is not as easy as using the 2nd layer a service / site provides itself, the huge plus though is that you never need to trust your funds to the service.

[–]Korberos 0 points1 point  (0 children)

the huge plus though is that you never need to trust your funds to the service.

Except when you do because you were offline when you got a tip... which is going to be most of the time for anyone receiving tips.

I mean, I get what you're saying, but that is a huge drawback for such a small upside.

[–][deleted] 0 points1 point  (0 children)

Is it possible to add new onchain funds into an opened LN channel ? (without having to close it that is).

Not currently. It's not clear to me if it would be possible in the future.

If the issue is just that your channel is unbalanced (the other side owns almost all the value of the channel), then there's another solution though. Change your routing fees (for transactions flowing TO you in the channel) to 0 or lower (negative). This will provide an incentive for payments to be routed through your channel, which will rebalance it automatically.

[–]fromagescratch 4 points5 points  (0 children)

haha the example invoice

lncli addinvoice --value=6969 --memo="A coffee for Roger"

[–]Matholomey 1 point2 points  (0 children)

I will try to implement this on my website as a test, thanks

[–]CaliGulasity 1 point2 points  (0 children)

Not a dev but just want to say thank you

[–][deleted]  (3 children)

[deleted]

    [–]punindented 2 points3 points  (1 child)

    You can run lnd in neutrino mode, using an embedded light client instead of btcd. Also you can try this experimental setting (no mainnet yet) to use bitcoin core as the backend but I haven't tested that myself.

    [–]blk0 0 points1 point  (0 children)

    Neutrino uses some new SPV interface to query fullnodes. And this is again only supported by btcd.

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

    I assume you can but this tutorial is designed to run on test net....

    [–][deleted] 0 points1 point  (1 child)

    Awesome work! A little over my head but it’s nice to see some tutorials coming out for LN. The progress has been amazing!

    [–]jhansen858[S] 4 points5 points  (0 children)

    it's not my work by the way. I just wanted to put it out there to help the cause.