by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    gitati16
    @gitati16
    Ah, right
    thx
    so this piece of code is not needed: ```
    // Listen for updates from peers
     db.events.on("replicated", address => {
       console.log(db.iterator({ limit: -1 }).collect());
     });```
    Mark Robert Henderson
    @aphelionz
    not for replication no, the callback is for after replication
    vasa
    @vasa-develop
    Has anyone created observablehq.com tutorial for orbitdb?
    Mark Robert Henderson
    @aphelionz
    Not yet, it's on my radar though
    You gonna go for it?
    vasa
    @vasa-develop
    Not alone :sweat_smile:
    I was thinking about converting field guide into an observable...but some parts like encryp/decryp would get a lot complex to implement (thus confusing the user)
    Mark Robert Henderson
    @aphelionz
    Hmm interesting!
    Bernardo Vieira
    @obernardovieira
    '/dns4/secure-beyond-12878.herokuapp.com/tcp/443/wss/p2p-webrtc-star/',
     '/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star/',
     '/dns4/wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star/'

    great thanks

    what js-ipfs version are you guys using? I get a Error: no valid addresses were provided for transports [TCP,WebSockets,Circuit]

    Mark Robert Henderson
    @aphelionz
    I don't know exactly what version removed websocket support, what version are you on?
    Bernardo Vieira
    @obernardovieira
    ipfs 0.50.2
    orbitdb 0.26.0
    but, aren't those URL's for webrtc?
    I know that websocket was dropped. Don't remember which version either
    Mark Robert Henderson
    @aphelionz
    Hrmmm
    The array [TCP,WebSockets,Circuit] is the list of available transports..
    Those addresses should go in Addresses.Swarm, not Bootstrap iirc
    Bernardo Vieira
    @obernardovieira
    That's where I'm writing them, in Addresses.Swarm
    it's somethign related to the version, because I've done it with previous versions, a couple months ago
    Mark Robert Henderson
    @aphelionz
    Show us your config?
    Bernardo Vieira
    @obernardovieira
    https://github.com/impactMarket/api/blob/master/src/db/services/experimental.ts
    but still trying locally. This config above works, but use the Control Center page, I can't access the db data, which I believe is because it's the control center can't find the db. And then, adding the webrtc URLs above and using like I did here https://github.com/dlx-lisbon/descentra/blob/master/src/helpers/ipfsFactory.ts#L9 I get that error. But in this case, this second example (built around January this year) worked pretty well. I even used it with a few friends (as an experiment).
    maurotorres
    @chebyte
    Hello there, I can figureout the orbitdb address from peerid ?
    anders
    @tabcat
    orbitdb store addresses are not tied to ipfs peerIds at all. orbitdb ids i think used to be tied to the ipfs instances peerId but i dont think thats the case anymore. @chebyte
    Mark Robert Henderson
    @aphelionz
    well they're a combination of the ACL (which can sometimes include the peer ID), the database type, and the database name
    anders
    @tabcat
    finalizing orbitdb store states somehow would be epic. i think any solution would have to break eventual consistency because it would require some synchrony?
    anders
    @tabcat
    maybe just index state checkpoints are better
    Mark Robert Henderson
    @aphelionz
    It could potentially be a quorum of connect peers in the pubsub channel, but that would still mean they'd have to be online at the same time
    I thibk the easiest thing is high / low watermark snapshots
    anders
    @tabcat
    snapshotting index state or
    i dont know what high/low watermark snapshots are
    searching
    Mark Robert Henderson
    @aphelionz
    Look at martin fowlers site there are good explanations there
    Mark Robert Henderson
    @aphelionz
    Yep
    anders
    @tabcat
    what we would use to determine low watermark
    ?
    Mark Robert Henderson
    @aphelionz
    Anything after a proper state snapshot I think
    anders
    @tabcat
    ok
    Mark Robert Henderson
    @aphelionz
    Or the low watermark entry could contain the state as part of the payload and you could still use the Lamport clocks to achieve consensus if there's a diff between two snapshots
    Yeah, the "snapshot based low watermark" as described in the post
    anders
    @tabcat
    yea
    we include the snapshot in entries? cool
    Mark Robert Henderson
    @aphelionz
    Best if done with a number of peers 2 or greater imo, but that's not always possible
    No no we don't now but we easily could
    anders
    @tabcat
    yea
    sorry unclear there
    hypothetical
    anders
    @tabcat
    low watermark seems like it should be done locally? and high watermark seems like it looks for synchrony among a quorum
    ig whats important to orbitdb stores is reducing memory usage and index calculations
    Mark Robert Henderson
    @aphelionz
    Yeah the low watermark shouldn't discard entries I guess, just stop traversing