Closed D4nte closed 5 years ago
@luckysori sub-satoshis make sense on Lightning Network (msats are used). However, for on-chain satoshi is the smallest unit.
If satoshi-bitcoin-ts lib support floats satoshis then I prefer to keep my custom made class.
During the workshop somehow a UTXO returned by bitcoind was sub-satoshi. Throwing an exception meant that the bitcoin UTXO scan was simply not processed. Instead, we log and we just accept to loose under a satoshi for the sake of robustness.