Closed maflcko closed 1 year ago
I don't have enough rdd to test but I assume there is a rounding error for some amounts larger than 60*10^6 rdd.
Assumed steps to reproduce:
curl --user $rpcuser$ --data-binary '{"jsonrpc": "1.0", "id":"test1", "method": "sendtoaddress", "params": [ "RgFyTFv9Lvo8eBTswq6wypKvrnH7U5eosd", 67108864.02886402 ] }' -H 'content-type: text/plain;' http://127.0.0.1:$rpcport$/
Expected result: Send 67108864.02886402 to the given address. Actual result: Sent 67108864.02886403 (off by one reddtoshi) to the given address.
I don't have enough rdd to test but I assume there is a rounding error for some amounts larger than 60*10^6 rdd.
Assumed steps to reproduce:
curl --user $rpcuser$ --data-binary '{"jsonrpc": "1.0", "id":"test1", "method": "sendtoaddress", "params": [ "RgFyTFv9Lvo8eBTswq6wypKvrnH7U5eosd", 67108864.02886402 ] }' -H 'content-type: text/plain;' http://127.0.0.1:$rpcport$/
Expected result: Send 67108864.02886402 to the given address. Actual result: Sent 67108864.02886403 (off by one reddtoshi) to the given address.