Libp2p Peerstore Persistence

This page summarizes the projects mentioned and recommended in the original post on /r/ipfs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • js-libp2p

    The JavaScript Implementation of libp2p networking stack.

  • I am quite new to ipfs and peer to peer work. I am trying to build a simple app that leverages the P2P platform. I have an up and running nodejs libp2p node that can dial and connect with a second node on a separate test device. I am trying to save the second node to my primary node's peerstore. However I noticed that it is not persisted on restart. I followed the instructions here on configuring my node for peerstore persistence to the letter: https://github.com/libp2p/js-libp2p/blob/8e1fc78353cba194c86102dafcd68373b3f9a796/doc/CONFIGURATION.md#configuring-peerstore. However, when I set the secondary node again into my peerstore it still doesn't persist on restart. The setup above did create a mydb folder with log input however so it has definitely implemented a datastore. However I am not sure why my peerstore isn't saving to it.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts