分类
如何在外汇市场上交易

什么是millisatoshi?

  • Open with Desktop
  • View raw
  • Copy raw contents Copy raw contents

rebalance: error with Millisatoshi type when using rebalanceall #268

I just noticed in the logs that even though pip freeze shows pyln-client as 0.8.2, it is using pyln-client from my build directory which is 0.8.0. What is the minimum version to use for the rebalance plugin?

Also how do I get the plugin/lightningd to use the pyln-client from pip instead of my build directory? I removed my build directory from the PYTHONPATH but it is still finding it.

Alt Coins for Bitcoin

In the Lightning Network, it's possible to pay in units a thousandth of a satoshi, a millisatoshi.

But 什么是millisatoshi? you can't redeem them directly on the main chain when closing a channel, it will be subject to a round error, your value will be 'trimmed' of some millisatoshis.

But how they can exist before that? Is that part of the LN based on trust? The nodes store the number somehow, but what if the decided to change it? How can the digital signatures 'cover' the value, 什么是millisatoshi? 什么是millisatoshi? if they sign only the data of a 什么是millisatoshi? on-chain transaction?

什么是millisatoshi?

This commit 什么是millisatoshi? does not belong to any branch on this repository, and may belong to a fork outside of the repository.什么是millisatoshi?

  • Open with Desktop
  • View raw
  • Copy raw contents Copy raw contents

Copy raw contents

Copy raw contents

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in 什么是millisatoshi? 什么是millisatoshi? an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

Off by one millisatoshi, payment never completes (LN) #77

Had situation today - 什么是millisatoshi? LN invoice (CLN) was generated for 58999msat, but SatSale does not know anything about millisatoshis, so it rounded up 什么是millisatoshi? everything to 0.00000059 BTC (59000msat). Invoice got paid correctly, but SatSale still thinks it wasn't paid because 58999 < 59000.

Fast workaround would be to always round down BTC amounts, so it would be 0.00000058 BTC here (don't think anybody currently cares about +/- 1 sat).

In loger 什么是millisatoshi? term IMO SatSale should internally everywhere use msat integers instead of BTC floats. There are similar one off problems possible with float, as it is by definition approximation not exact value.