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
Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to java.math.BigDecimal
at wf.bitcoin.javabitcoindrpcclient.BitcoinJSONRPCClient.getDifficulty(BitcoinJSONRPCClient.java:1005)
It occurs because bitcoin core not always return a decimal number from "getdifficulty" operation and
the response parser delivers the number as a Long in this case, but BitcoinJSONRPCClient.getDifficult tries to convert it to BigDecimal
The text was updated successfully, but these errors were encountered:
henriquetft
changed the title
Error on BitcoinJSONRPCClient.getDifficult()
Error on BitcoinJSONRPCClient.getDifficulty()
May 14, 2020
Sometimes it throws the following exception:
It occurs because bitcoin core not always return a decimal number from "getdifficulty" operation and
the response parser delivers the number as a Long in this case, but BitcoinJSONRPCClient.getDifficult tries to convert it to BigDecimal
The text was updated successfully, but these errors were encountered: