Skip to content

Conversation

@andhikayuana
Copy link
Contributor

@andhikayuana andhikayuana commented May 15, 2025

Overview

Fixed issue causing send transaction to get stuck after fee refactor

Internal Issue

Tested on Emulator

Emulator
Screenshot 2025-05-16 at 12 45 30

Core

please test with this core gruntsoftware/core#8

@andhikayuana andhikayuana self-assigned this May 15, 2025
@andhikayuana andhikayuana requested review from josikie and kcw-grunt May 16, 2025 05:57
@andhikayuana andhikayuana changed the title [WIP] chore: remove cache for network_fee_per_kb fix: Fixed issue causing send transaction to get stuck after fee refactor May 16, 2025
@andhikayuana andhikayuana marked this pull request as ready for review May 16, 2025 06:08
@kcw-grunt
Copy link
Collaborator

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
Copy link
Collaborator

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

Copy link
Collaborator

@kcw-grunt kcw-grunt May 19, 2025

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.

@andhikayuana
Copy link
Contributor Author

@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);
Copy link
Collaborator

@josikie josikie May 21, 2025

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?

Copy link
Collaborator

@kcw-grunt kcw-grunt May 21, 2025

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.

Copy link
Collaborator

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

@andhikayuana
Copy link
Contributor Author

andhikayuana commented May 22, 2025

@kcw-grunt pls test with core from source branch from this PR gruntsoftware/core#10
thanks

@kcw-grunt kcw-grunt marked this pull request as draft May 25, 2025 08:09
@kcw-grunt
Copy link
Collaborator

We may or not revisit ass we needed to ship

@kcw-grunt
Copy link
Collaborator

Closing

@kcw-grunt kcw-grunt closed this Aug 12, 2025
@kcw-grunt kcw-grunt deleted the fix/stuck-sending-40 branch October 7, 2025 21:19
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.

4 participants