Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Unblock fee rate limit, add caption warning about mempool monitors #358

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Unblock fee rate limit, add caption warning about mempool monitors #358

merged 2 commits into from
Jan 5, 2024

Conversation

Shadouts
Copy link
Contributor

@Shadouts Shadouts commented Jan 4, 2024

Description

This updates unchained-bitcoin to v1.2.0

This change uses the new fee error types provided by unchained-bitcoin v1.2.0 to conditionally display fee error feedback. The conditional in this case is that FeeValidationError.FEE_RATE_TOO_HIGH is going to be ignored to allow for CPFP transactions to be authored in a high fee environment. A caption has been added to the fee rate input instructing the user to be responsible in researching fee rate acceptance on their own.

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR fix an open issue?

Perhaps partially: #169

const fee =
feeRateError === ""
feeRateError === null &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this need to be an or statement to ignore rate-too-high errors? If I'm reading this correctly fees will only be set if feeRateError is null

feeRateError === null ||
feeRateError === FeeValidationError.FEE_RATE_TOO_HIGH

Copy link
Contributor Author

@Shadouts Shadouts Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, good catch. Such a basic thing, and yet I had missed it. Fixed in 9b491a1

The behavior wasn't causing an error though and the visual feedback on fee rate was correct. This reveals another problem which is that there is a non-unified approach to tracking these values and they seem to desync where the state does not match the visual representation. Not a problem to fix for the scope of this change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a good point. We could set the feeRateErrorMessage when fee is an empty string to avoid the disconnect, but I'm also fine with what you are doing now.

@Shadouts Shadouts mentioned this pull request Jan 4, 2024
4 tasks
@bucko13 bucko13 merged commit 2b417c6 into unchained-capital:master Jan 5, 2024
3 checks passed
@Shadouts Shadouts deleted the unblock-fee-rate-limit branch January 5, 2024 19:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants