-
Notifications
You must be signed in to change notification settings - Fork 18
Update core and coreutils #681
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
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 upgrades the go.sia.tech/core
and coreutils
modules to their latest revisions, standardizes the ReleaseInputs
API to return errors, and adds persistent locking for wallet UTXOs via SQLite migrations and new store methods.
- Bump
core
andcoreutils
versions ingo.mod
- Change
ReleaseInputs
signature across multiple interfaces to include anerror
return - Introduce
wallet_locked_utxos
table, migrations, andLockUTXOs
/LockedUTXOs
/ReleaseUTXOs
methods in the SQLite store
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 7 comments.
Show a summary per file
File | Description |
---|---|
rhp/v3/rhp.go | Updated ReleaseInputs to return error |
rhp/v2/rhp.go | Updated ReleaseInputs to return error |
api/api.go | Updated ReleaseInputs to return error |
host/settings/settings.go | Updated ReleaseInputs to return error |
host/contracts/manager.go | Updated ReleaseInputs to return error |
internal/testutil/rhp/v3/rhp.go | Updated stub ReleaseInputs to return error |
persist/sqlite/migrations.go | Added migrateVersion40 to create locked UTXO table |
persist/sqlite/init.sql | Added initial schema for wallet_locked_utxos |
persist/sqlite/wallet.go | Implemented locking/unlocking of UTXOs |
go.mod | Bumped versions of go.sia.tech/core and coreutils |
Comments suppressed due to low confidence (1)
persist/sqlite/wallet.go:15
- New UTXO locking methods (
LockUTXOs
,LockedUTXOs
,ReleaseUTXOs
) lack unit tests; consider adding coverage to validate locking behavior and cleanup.
func cleanupLockedUTXOs(tx *txn) error {
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.
left one suggestion in the test
3f8e5d3
to
d18af17
Compare
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.
Updates core and coreutils to the latest versions.