8000 Update core and coreutils by n8maninger · Pull Request #681 · SiaFoundation/hostd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 4 commits into from
May 24, 2025
Merged

Update core and coreutils #681

merged 4 commits into from
May 24, 2025

Conversation

n8maninger
Copy link
Member

Updates core and coreutils to the latest versions.

@github-project-automation github-project-automation bot moved this to In Progress in Sia May 22, 2025
Copy link
@Copilot Copilot AI left a 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 and coreutils versions in go.mod
  • Change ReleaseInputs signature across multiple interfaces to include an error return
  • Introduce wallet_locked_utxos table, migrations, and LockUTXOs/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 {

peterjan
peterjan previously approved these changes May 23, 2025
Copy link
Member
@peterjan peterjan left a 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

ChrisSchinnerl
ChrisSchinnerl previously approved these changes May 23, 2025
@n8maninger n8maninger dismissed stale reviews from ChrisSchinnerl and peterjan via 3f8e5d3 May 23, 2025 23:07
@n8maninger n8maninger force-pushed the nate/update-coreutils branch from 3f8e5d3 to d18af17 Compare May 24, 2025 00:29
@n8maninger n8maninger requested a review from Copilot May 24, 2025 00:34
Copy link
@Copilot Copilot AI left a 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.

@n8maninger n8maninger merged commit d21f9a0 into master May 24, 2025
11 checks passed
@n8maninger n8maninger deleted the nate/update-coreutils branch May 24, 2025 00:35
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
0