You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending high amounts of assets, multichain may reject transactions due to rounding errors in floating point calculation. I was trying to work around this by adding additional outputs that would correct the error, but internal calculations seem to add additional errors.
Steps to reproduce:
create a blockchain alpcointest with asset alpcointest
(issue <adminaddress> '{"name":"alpcointest","open":true}' 1 0.00000001)
Issue 132463363.16643485 coins to an address
Try to send 30000000 to another address using the above amount as input (I am using raw transactions)
sendrawtransaction fails with
error 500 Internal Server Error: {"result":null,"error":{"code":-26,"message":"64: Asset transfer script rejected - mismatch in input/output quantities"},"id":"bo5b79fd2b28f59"}
In my experience, Multichain can't reliably handle more than 21 million coins, nor do you want to change the decimal place from Bitcoin's default.
Good luck with Alpcoin!
There's an issue with accuracy in JSON (and general double floating point) representations past 16 significant digits. Please try using a method which enables MultiChain to calculate the change itself – either using createrawsendfrom or appendrawchange – instead of trying to pass the change amount in createrawtransaction.
When sending high amounts of assets, multichain may reject transactions due to rounding errors in floating point calculation. I was trying to work around this by adding additional outputs that would correct the error, but internal calculations seem to add additional errors.
Steps to reproduce:
alpcointest
with assetalpcointest
(
issue <adminaddress> '{"name":"alpcointest","open":true}' 1 0.00000001
)132463363.16643485
coins to an address30000000
to another address using the above amount as input (I am using raw transactions)sendrawtransaction
fails withThe raw transaction is:
output of
decoderawtransaction
:The problem seems to be related to the conversion from raw and qty here:
The text was updated successfully, but these errors were encountered: