Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes to improve the fee calculation in the
src/util.ts
file and updates to the GitHub workflows. The most crucial changes are the addition of afeeMinimum
parameter to several functions to calculate the minimum fee, renaming of the.github/workflows/dev.yml
to.github/workflows/main.yml
, and ignoring themaster
branch in the.github/workflows/test.yml
file. The tests intest/unit.test.ts
have also been updated to reflect the changes made insrc/util.ts
.GitHub Workflows:
.github/workflows/main.yml
: Thedev.yml
workflow file was renamed tomain.yml
and the workflow name was changed fromDev
toMain
..github/workflows/test.yml
: TheTest
workflow was updated to ignore themaster
branch.Fee Calculation:
src/util.ts
: ThegetEstimates()
function was updated to calculate thefeeMinimum
and log it. TheextractMempoolFees()
function was modified to take an additionaldepth
parameter. ThecalculateFees()
function was updated to take an additionalfeeMinimum
parameter and use it in thefilterEstimates()
function. [1] [2] [3] [4] [5]Tests:
test/unit.test.ts
: The tests were updated to import additional functions fromsrc/util.ts
and test data was defined. New tests were added for thefilterEstimates()
,extractMempoolFees()
, andcalculateFees()
functions. TheaddFeeEstimates()
test was updated to use the new test data.