OriginProtocol / origin-bridge

We've moved to a monorepo: https://github.com/OriginProtocol/origin/tree/master/infra/bridge
MIT License
15 stars 7 forks source link

Tool for pinning and unpinning IPFS objects #76

Closed cuongdo closed 6 years ago

cuongdo commented 6 years ago

Checklist:

Description:

This PR adds a new tool called ipfs_pinner.py for pinning / unpinning IPFS hashes depending on whether they have a corresponding Origin listing. This is meant to be run as a cron job. ipfs_pinner.py inherits its settings from bridge-server.

cuongdo commented 6 years ago

I incorporated @wanderingstan's suggestion of getting the IPFS hashes related to Origin listings directly from the blockchain. This works much better now, at least in my local test environment (with a local IPFS, blockchain, etc.).

tyleryasaka commented 6 years ago

It's been a while since I've run the bridge server and I'm running into issues getting it running now, so I'm not able to test this just yet. Code LGTM and I'm working on getting my environment set up properly. Will hopefully be able to test soon.