Skip to content

Scripts and tools: Update IPFS client - #1307

Open
Tabakkui wants to merge 1 commit into
RavenProject:developfrom
Tabakkui:fix/issue-588-ipfshttpclient
Open

Tabakkui wants to merge 1 commit into
RavenProject:developfrom
Tabakkui:fix/issue-588-ipfshttpclient

Conversation

@Tabakkui

Copy link
Copy Markdown

Problem

The asset IPFS pinner still imports the deprecated ipfsapi package, which no longer receives updates and emits a deprecation warning.

Change

  • Migrate the pinner to ipfshttpclient.
  • Use the current client methods for content stat, add/get, pin add/list, and repository stat.
  • Use the explicit local IPFS API multiaddress and close each client connection with a context manager.
  • Update the tool documentation.
  • Add a dependency-free unit test for all migrated client operations.

Test plan

  • python3 -m unittest -v assets/tools/test_ipfs_pinner.py
  • python3 -m py_compile assets/tools/ipfs_pinner.py assets/tools/test_ipfs_pinner.py
  • git diff --check

Risk and exclusions

This changes only the optional asset-pinner tool and its dependency/API adapter. It does not change Ravencoin consensus or wallet behavior. Live IPFS daemon integration was not run because no local daemon is configured in this checkout.

Refs #588

Replace the deprecated ipfsapi module in the asset pinner with ipfshttpclient and use the current client methods for stat, pin, and repository operations. Document the supported dependency and cover the adapter calls with a dependency-free unit test.\n\nRefs RavenProject#588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant