p2pecho.with.leveldb

command module
v0.0.0-...-9823ae5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 20 Imported by: 0

README

This is a demonstration of using leveldb with go-libp2p.

$ go install github.com/fgergo/p2pecho.with.leveldb@latest

In the first terminal window:
$ mkdir -p /tmp/d1 && cd /tmp/d1 && p2pecho.with.leveldb -l 10000

In the second terminal window, follow instructions in displayed in first terminal window, similar to this:
$ mkdir -p /tmp/d2 && cd /tmp/d2 && p2pecho.with.leveldb -l 10001 -d /ip4/127.0.0.1/tcp/10000/p2p/QmUD2KWcEyjVkFv4LnRRmJ8aURJC6X35oqUmyzYrtn3ERr

To dump db with timestamps:
$ cd /tmp/d1 && p2pecho.with.leveldb -D

Documentation

Overview

This is a demonstration of using leveldb with go-libp2p

$ go install github.com/fgergo/p2pecho.with.leveldb@latest

in the first terminal window:

$ mkdir -p /tmp/d1 && cd /tmp/d1 && p2pecho.with.leveldb -l 10000

in the second terminal window, follow instructions in displayed in first terminal window, similar to this:

$ mkdir -p /tmp/d2 && cd /tmp/d2 && p2pecho.with.leveldb -l 10001 -d /ip4/127.0.0.1/tcp/10000/p2p/QmUD2KWcEyjVkFv4LnRRmJ8aURJC6X35oqUmyzYrtn3ERr

to dump db with timestamps:

$ cd /tmp/d1 && p2pecho.with.leveldb -D

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL