-
Notifications
You must be signed in to change notification settings - Fork 2
fix: Fixed issue causing send transaction to get stuck after fee refactor #83
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
Conversation
|
Tyvm @andhikayuana ...checking |
| * Previous value: 2500L (2.5 satoshis per byte). From legacy minimum. default min is 1000 as Litecoin Core version v0.17.1 | ||
| * Updated to 8000L (8 satoshis per byte) on 2023-11-16 | ||
| */ | ||
| private const val defaultEconomyFeePerKB: Long = 8000L |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my recollection...the Android client was just pulling these numbers , but in iOS I was using the calculation so we (iOS) always had the right amount for network fees....my mind is a blur @andhikayuana
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My point is this might be all academic but reverting this to the pre (40% stuck) mode is the safer bet anyway.
|
@kcw-grunt please test with this core gruntsoftware/core#8 |
| final Context ctx = BrainwalletApp.getBreadContext(); | ||
| if (ctx != null) { | ||
| BRSharedPrefs.putScanRecommended(ctx, true); | ||
| TransactionDataSource.getInstance(ctx).deleteTxByHash(hash); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat code, nice @andhikayuana
I have question, why is the deleteTxByHash called here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat code, nice @andhikayuana
I have question, why is the deleteTxByHash called here?
Oh @josikie you are missing out on the 'fun' 😭
When we implemented live tx fees there was a miscalculation and some tx were send below the minimum 10 lits/byte to the network. So it needs to be deleted from wallet mempool so that is not sent out again.
Otherwise...users get stuck at 40% because that bad tx goes back and forth out to the network.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG that's make sense @kcw-grunt
|
@kcw-grunt pls test with core from source branch from this PR gruntsoftware/core#10 |
|
We may or not revisit ass we needed to ship |
|
Closing |
Overview
Fixed issue causing send transaction to get stuck after fee refactor
Internal Issue
Tested on Emulator
Core
please test with this core gruntsoftware/core#8