Scaling is done wrt base 10.

This commit is contained in:
clemahieu 2014-10-25 03:17:14 -05:00
commit 0ec82ba566
2 changed files with 2 additions and 3 deletions

View file

@ -823,8 +823,7 @@ processor (*this),
transactions (*this),
peers (network.endpoint ()),
service (processor_a),
//scale ("1000000000000000000000000000") // 10 ^ 27
scale ("1")
scale ("100000000000000000000")
{
if (!init_a.error ())
{

View file

@ -186,7 +186,7 @@ TEST (client, scaling)
TEST (client, scale_num)
{
rai::system system (24000, 1);
rai::uint128_t num ("0xf0000000000000000000000000000000");
rai::uint128_t num ("100000000000000000000000000000000000000");
auto down (system.clients [0]->scale_down (num));
auto up (system.clients [0]->scale_up (down));
ASSERT_EQ (num, up);