coblox / bobtimus

an autobot that automatically handles swaps as Bob
Apache License 2.0
1 stars 1 forks source link

Sub-satoshis #39

Closed D4nte closed 5 years ago

D4nte commented 5 years ago

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.

D4nte commented 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.