-
Notifications
You must be signed in to change notification settings - Fork 1
Minimal fee checks on RBF #379
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
app/src/main/java/to/bitkit/ui/sheets/BoostTransactionViewModel.kt
Outdated
Show resolved
Hide resolved
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.
Pull Request Overview
This PR addresses RBF (Replace-By-Fee) errors caused by low recommended fee rates and improves the latest activities fetching mechanism. The changes implement proper minimum fee rate checks for RBF transactions and make the activities refresh function public for better state management.
- Implements dynamic minimum fee rate calculation for RBF transactions (original fee rate + 2 sat/vbyte)
- Refactors activity list syncing to use explicit fetch calls instead of internal sync methods
- Adds automatic max fee warning display when fee limits are reached
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| BoostTransactionViewModel.kt | Core fee calculation logic with dynamic minimum fee rates for RBF and improved fee validation |
| ActivityListViewModel.kt | Refactored sync method to public fetchLatestActivities for better external access |
| BoostTransactionSheet.kt | Fixed LaunchedEffect dependency to prevent unnecessary re-initialization |
| ActivityDetailScreen.kt | Added activity refresh call after successful boost transaction |
| HomeScreen.kt | Enhanced pull-to-refresh to include latest activities fetch |
| LightningRepo.kt | Increased sync timeout from 15 to 20 seconds |
app/src/main/java/to/bitkit/ui/sheets/BoostTransactionViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/to/bitkit/ui/sheets/BoostTransactionViewModel.kt
Outdated
Show resolved
Hide resolved
|
couldn't test |
|
Drafted to implement Copilot suggestions |
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.
LGTM and worked like a charm in my 1 RBF test 🎉
|
not sure why the e2e tests are failing 🤷🏻 EDIT: nvm succeeded now except the boost test retriggering ♻️ |
Closes #374
Description
This PR fixes the RBF error due to a too low recommended fee rate and also improve the latest activities fetching
Preview
cpfp-suggested.webm
rbf-suggested.webm
QA Notes
Tested: