pull down to refresh
10 sats \ 9 replies \ @Busybe3z 6 Mar 2023 \ on: Zap transaction fees? bitcoin
There are no fees associated with LN
That's not true. On lightning you still paying routing fees when your transaction goes through multiple hops.
reply
Where did you get this idea?
reply
How's that? This article makes it look like there's a base fee and liquidity fee. Are they voluntary? Is StackerNews just running a node with zero fees?
My wallet shows the 10sat spend, but I can't see or breakdown any fee associated with that spend. My understanding is that the LN node pays the fee when it sends all wrapped transactions back on-chain. Is the a record of the fees paid to the LN node?
reply
Which wallet do you mean? The wallet on SN?
reply
Yes, the wallet on SN. I don't have the keys, but it looks like all the posts have a hash, so I assume it's a wallet and not a database.
reply
What hash? Are you talking about OTS? That's something different; nothing to do with LN transactions. See here: https://opentimestamps.org/
I can tell you with a 100% certainty that all tips are just transactions inside a database.
The code is open source, you can setup SN yourself and take a look: https://github.com/stackernews/stacker.news
reply
Yup, thanks for the link to the github. It's right there in the Wallet Transaction Safety section.
And you nailed it with the OTS, I incorrectly assumed it was a hash.
reply
Ah, you already saw it yourself. Nice.
No worries, happy to help.
reply
I realized you don't even need to setup SN yourself. It even says in the README that it's just a database:
wallet transaction safety
To ensure user balances are kept sane, all wallet updates are run in serializable transactions at the database level. Because prisma has relatively poor support for transactions all wallet touching code is written in plpgsql stored procedures and can be found in the prisma/migrations folder.
reply