-
Notifications
You must be signed in to change notification settings - Fork 8
Feature/Live Policy #100
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
Feature/Live Policy #100
Conversation
- Added Live Policy implmentation - Added mock tests to test the Live Policy implementation - Updated transaction.py to use Live Policy instead of SatoshisPerKilobyte - Made Live Policy the default model in __init__.py in fee_models - Added documentation reference to README.md and wrote documentation for live_policy
|
Added commits that change some of the pre-existing libraries to double check to make sure that the live policy implementation can work via async. Applied changes may not be necessary and currently being reviewed by the engineers at Yenpoint. Upon review the final committed changes may be reverted. |
Enhanced the Transaction.fee() method to support synchronous usage while internally maintaining asynchronous logic. This ensures backward compatibility is not broken. Increased the default TRANSACTION_FEE_RATE to 10 satoshis per kilobyte for more realistic fee calculations. Updated the pytest-asyncio dependency to version 0.24.0. Modified the LivePolicy fallback fee logic to utilize the default TRANSACTION_FEE_RATE constant, ensuring consistency across fee calculations.
- Replaced `async` logic in `live_test.py` with synchronous calls for better compatibility. - Refactored `Transaction.fee()` to include a private helper for asynchronous fee handling. - Updated `LivePolicy` tests to utilize `default_http_client` with mock responses. - Improved test coverage for cache utilization and fallback scenarios. - Removed outdated and unused code in `LivePolicy` test suite.
- Deleted outdated scripts: `create_wallet.py`, `inspect_live_policy.py`, and `live_test.py`. - Updated `__init__.py` to reflect version 1.0.9. - Added release notes for version 1.0.9 in `CHANGELOG.md`.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
|
ALiberalVoluntarist
left a comment
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.
ok



Description of Changes
Based changes on the following
bsv-blockchain/ts-sdk#343
Linked Issues / Tickets
Reference any related issues or tickets, e.g. "Closes #123".
Testing Procedure
Describe the tests you've added or any testing steps you've taken.
Checklist:
CHANGELOG.mdwith my changes