Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Total fees for a block can go negative #79

Open
icook opened this issue Sep 18, 2014 · 2 comments
Open

Total fees for a block can go negative #79

icook opened this issue Sep 18, 2014 · 2 comments
Labels

Comments

@icook
Copy link
Member

icook commented Sep 18, 2014

This is likely because floating point use at some point from GBT.

@icook icook added the bug label Sep 18, 2014
@ericecook
Copy link
Member

Details on how to replicate this?

@icook
Copy link
Member Author

icook commented Jul 28, 2015

Bleh, these are the worst. If I remember right the result was that the blocks total fees would come out to "-0.00000001" or something like that. The correct handling for it would be to switch all variable usage to decimals.

Replication is going to be really tough on a testnet... Writing a test case might replicate, but that would require setting up a testing infrastructure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants