Skip to content
New issue

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

Update onchain.c #1247

Conversation

roconnor-blockstream
Copy link

Round tx fees up.

Fixes #1194 (comment) ... maybe. I didn't even try compiling this. I just directly edited it in github.

Round tx fees up.
@ZmnSCPxj
Copy link
Contributor

ACK 806bc02

@jb55
Copy link
Collaborator

jb55 commented Mar 19, 2018

this is begging for tests ;)

@ZmnSCPxj
Copy link
Contributor

Looking more deeply, maybe it is incomplete? wallet/wallet.c also contains fee calculation code.

*fee_estimate = weight * feerate_per_kw / 1000;

@roconnor-blockstream
Copy link
Author

Good catch in wallet.c

Sorry, this PR wasn't entirely serious.

@roconnor-blockstream
Copy link
Author

roconnor-blockstream commented Mar 19, 2018

Actually, while I think these are all errors, Perhaps they are not causing the problems in #1194. Since feerate_per_kw should be exactly 4000, the division should be exact here.

Strike the above. The feereate_per_kw should be 250 (and itself another possible problem due to rounding)

@roconnor-blockstream
Copy link
Author

Superseded by #1251

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

Successfully merging this pull request may close these issues.

3 participants