Skip to content
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

IPFS is available hash #3256

Closed
Kubuxu opened this issue Sep 24, 2016 · 9 comments · Fixed by #2997
Closed

IPFS is available hash #3256

Kubuxu opened this issue Sep 24, 2016 · 9 comments · Fixed by #2997
Assignees
Labels
need/community-input Needs input from the wider community

Comments

@Kubuxu
Copy link
Member

Kubuxu commented Sep 24, 2016

It is nice feature to check if IPFS is operational only with having access to hashes (fs:/ipfs/X), to check if IPFS is supported (for webpages - see ipfs/ipfs-companion#149).

Currently my best idea is to use autogenerated index.html of empty directory as it is always available hash in IPFS but I think it would be better to have dedicated canary content that would be included in every repo of initial IPFS installation (that would also survive GC).

Something like file with content IPFS is active for example. Then by requesting this hash using web+fs:/ipfs/Qm...AAA one can check if browser supports IPFS.

@Kubuxu Kubuxu added the need/community-input Needs input from the wider community label Sep 24, 2016
@Kubuxu Kubuxu changed the title Add ipfs works hash IPFS is available hash Sep 24, 2016
@WardCunningham
Copy link

WardCunningham commented Sep 25, 2016

I like this idea. I will suggest users add such a hash before launching the localhost daemon.

echo wiki | ipfs add
ipfs daemon

This will be required of only the earliest adopters.

@whyrusleeping
Copy link
Member

We can add such a small file to the welcome docs (that way they are pre-seeded into every node on init)

@Kubuxu
Copy link
Member Author

Kubuxu commented Sep 28, 2016

I tired adding it to assets/ but it gave me an error:

# go generate
bindata: Failed to stat input path '../vendor/dir-index-html-v1.0.0': lstat ../vendor/dir-index-html-v1.0.0: no such file or directory
assets.go:1: running "go-bindata": exit status 1

@whyrusleeping
Copy link
Member

@lgierth any idea on that error?

@whyrusleeping whyrusleeping added the status/ready Ready to be worked label Sep 28, 2016
@ghost
Copy link

ghost commented Sep 28, 2016

I have a fix for that in #2997 which is blocked

@ghost
Copy link

ghost commented Sep 28, 2016

Specifically ca907c6 brings back the dir-index-html dependency which was deleted for the second time already because it's not imported anywhere.

@whyrusleeping
Copy link
Member

@lgierth what is it blocked on?

@ghost
Copy link

ghost commented Sep 28, 2016

js-ipfs-api tests making assumption about init-docs: ipfs-inactive/js-ipfs-http-client#365

I figure just picking that commit over here should work.

@ghost
Copy link

ghost commented Sep 29, 2016

#2997 is unblocked and ready

@ghost ghost self-assigned this Oct 5, 2016
@ghost ghost assigned Kubuxu and unassigned ghost Nov 2, 2016
@whyrusleeping whyrusleeping removed the status/ready Ready to be worked label Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/community-input Needs input from the wider community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants