Giter Club home page Giter Club logo

Comments (5)

haydenyoung avatar haydenyoung commented on June 1, 2024

Is the peer using an in-memory blockstore for Helia? What happens if you configure the node with a persistent blockstore?

E.g.

import { LevelBlockstore } from 'blockstore-level' 

const blockstore = new LevelBlockstore('./some/path')
const libp2p = await createLibp2p()
const helia = await createHelia({ libp2p, blockstore })

My understanding is that the replicated block should also be pinned on the remote peer (isPinned should == "true" on the remote peer also).

from orbitdb.

haydenyoung avatar haydenyoung commented on June 1, 2024

Just to add that a persistent datastore may also be needed as I believe pins are stored to datastore not blockstore.

import { LevelBlockstore } from 'blockstore-level' 
import { LevelDatastore } from 'datastore-level' 

const blockstore = new LevelBlockstore('./some/path/helia/blocks')
const datastore = new LevelDatastore('./some/path/helia/data')
const libp2p = await createLibp2p()
const helia = await createHelia({ libp2p, blockstore, datastore })

(sorry haven't been able to actually confirm this, just going on a hunch re: datastore and pins).

from orbitdb.

justin0mcateer avatar justin0mcateer commented on June 1, 2024

from orbitdb.

justin0mcateer avatar justin0mcateer commented on June 1, 2024

My understanding is that the replicated block should also be pinned on the remote peer (isPinned should == "true" on the remote peer also).

I am not really sure what you are referring to here. The only way to pin anything in Helia is either locally, or via the 'Pinning API'. There isn't any way to compel another node to Pin your data.

from orbitdb.

haydenyoung avatar haydenyoung commented on June 1, 2024

Does IPFSBlockStorage fail immediately (I.e. as soon as the remote node is offline) or does it happen over time (I.e. the remote node has been offline for some time)? What would be the steps for me to reproduce this issue?

from orbitdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.