memcoin

command
v0.4.7-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Package main implements a ledger based on in-memory components.

Unix example:

# Expect GOPATH to be correctly set to have memcoin available.
go install

memcoin --config /tmp/node1 start --port 2001 &
memcoin --config /tmp/node2 start --port 2002 &
memcoin --config /tmp/node3 start --port 2003 &

# Share the different certificates among the participants.
memcoin --config /tmp/node2 minogrpc join --address 127.0.0.1:2001\
  $(memcoin --config /tmp/node1 minogrpc token)
memcoin --config /tmp/node3 minogrpc join --address 127.0.0.1:2001\
  $(memcoin --config /tmp/node1 minogrpc token)

# Create a chain with two members.
memcoin --config /tmp/node1 ordering setup\
  --member $(memcoin --config /tmp/node1 ordering export)\
  --member $(memcoin --config /tmp/node2 ordering export)

# Add the third after the chain is set up.
memcoin --config /tmp/node1 ordering roster add\
  --member $(memcoin --config /tmp/node3 ordering export)

Jump to

Keyboard shortcuts

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