mycelium-com / wallet-android

Mycelium Bitcoin Wallet for Android
http://mycelium.com
Other
671 stars 323 forks source link

Low precision of BTC balance, can't send less than 100 uBTC #5

Closed wilbown closed 10 years ago

wilbown commented 11 years ago

Is the precision of BTC balance is only 4 decimal places? That is all it shows, where a standard Satoshi is 8. Even though the app has uBTC, I can't actually spend/send less than 100 uBTC. This is about a penny USD, which isn't much now. But if the value goes up, this wallet could be blocking me from getting that money.

apetersson commented 11 years ago

there are several issues here merged in one. first, on some phones the space to display the amount is too narrow. this needs to be addressed by providing a specific layout to very small phones. this is just a ui issue and does not affect functionality. next, there is a magic limit of 54.30 uBTC otherwise known as 5430 Satoshis otherwise known as "1 Gavin". the wallet will prevent you from sending smaller amounts (even as change) in order to prevent accidental doublespends, and ensuring network propagation of your TX. 100 uBTC is not hardcoded anywhere. if your wallet contains a lot of tiny inputs spending this economically is quite hard and even requires some numbercrunching to find a solution.

if you want you can disclose your addresses to developers@mycelium.com together with a detailed description of the issue, so we might address it properly.

janmoller commented 11 years ago

The 5430 satoshi limit on transaction outputs are enforced by bitcoin-qt, and they will not relay transactions that are below this limit.

Can you explain where you only see only 4 decimal places? A screenshot would be great.

wilbown commented 11 years ago

Thank you for explaining this to me. I was not aware of the "1 Gavin" limit which was causing the number display to turn red. I see now that the wallet is set up to follow the bitcoin-qt rules. It follows from those rules that there is effectively only 4 decimal (BTC) precision, so the way it is being displayed seems correct.

mycelium-com commented 11 years ago

Hi Wil. Just a minor correction. You can send and receive with full precision (e.g. 0.12345678) but the protocol implemented by most nodes dictate a minimum.

BR, Jan

On 23/08/2013, at 20.50, Wil Bown notifications@github.com wrote:

Thank you for explaining this to me. I was not aware of the "1 Gavin" limit which was causing the number display to turn red. I see now that the wallet is set up to follow the bitcoin-qt rules. It follows from those rules that there is effectively only 4 decimal (BTC) precision, so the way it is being displayed seems correct.

— Reply to this email directly or view it on GitHub.