We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
globalbalance
eclair-cli globalbalance returns these values
eclair-cli globalbalance
"onChain": { "confirmed": x.yyyyyyy9000000001, "unconfirmed": 0 }
whereas bitcoin-cli getbalace returns x.yyyyyyy9.
bitcoin-cli getbalace
x.yyyyyyy9
Eclair found 0.00000000000000001 somewhere.
The text was updated successfully, but these errors were encountered:
@pm47 could that be related to something eclair does, or is that just a rounding issue from scala's double?
Sorry, something went wrong.
My bet is a conversion error from BigDecimal to Decimal at serialization (we should probably use Formats.withBigDecimal() and not convert to Decimal):
BigDecimal
Decimal
Formats.withBigDecimal()
eclair/eclair-core/src/main/scala/fr/acinq/eclair/json/JsonSerializers.scala
Lines 169 to 171 in e298ba9
We do use Formats.withBigDecimal() to parse bitcoind responses, the rounding could potentially come from here too:
eclair/eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BasicBitcoinJsonRPCClient.scala
Line 37 in e298ba9
Or when summing individual amounts to build the CorrectedOnChainBalance (note that we don't call getbalance):
CorrectedOnChainBalance
getbalance
eclair/eclair-core/src/main/scala/fr/acinq/eclair/balance/CheckBalance.scala
Lines 293 to 296 in e298ba9
No branches or pull requests
eclair-cli globalbalance
returns these valueswhereas
bitcoin-cli getbalace
returnsx.yyyyyyy9
.Eclair found 0.00000000000000001 somewhere.
The text was updated successfully, but these errors were encountered: