Skip to content

Commit

Permalink
Correct decimal place in RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Nov 12, 2018
1 parent 861938a commit 7d36bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ UniValue ValueFromAmount(const CAmount& amount)
int64_t quotient = n_abs / COIN;
int64_t remainder = n_abs % COIN;
return UniValue(UniValue::VNUM,
strprintf("%s%d.%08d", sign ? "-" : "", quotient, remainder));
strprintf("%s%d.%06d", sign ? "-" : "", quotient, remainder));
}

uint256 ParseHashV(const UniValue& v, string strName)
Expand Down

0 comments on commit 7d36bdd

Please sign in to comment.