consensus

package module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 1 Imported by: 0

README

Any-Sync Consensus Node

Implementation of consensus node from any-sync protocol.

Building the source

To ensure compatibility, please use Go version 1.22.

To build and run the Any-Sync Consensus Node on your own server, follow these technical steps:

  1. Clone the Any-Sync Consensus Node repository to your local machine.
  2. Navigate to the root directory of the repository, where you will find a Makefile.
  3. Run the following commands to install the required dependencies and build the Any-Sync Consensus Node.
    make deps
    make build
    
  4. If there are no errors, the Any-Sync Consensus Node will be built and can be found in the ./bin directory.

Running

You will need a MongoDB in replica set mode to run Any-Sync Consensus Node.

Any-Sync Consensus Node requires a configuration. You can generate configuration files for your nodes with any-sync-network tool.

The following options are available for running the Any-Sync Consensus Node:

  • -c — path to config file (default etc/any-sync-consensusnode.yml).
  • -v — current version.
  • -h — help message.

Contribution

Thank you for your desire to develop Anytype together!

❤️ This project and everyone involved in it is governed by the Code of Conduct.

🧑‍💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.

🫢 For security findings, please email security@anytype.io and refer to our security guide for more information.

🤝 Follow us on Github and join the Contributors Community.


Made by Any — a Swiss association 🇨🇭

Licensed under MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Id      string   `bson:"_id"`
	Records []Record `bson:"records"`
	Err     error    `bson:"-"`
}

type Record

type Record struct {
	Id      string    `bson:"id"`
	PrevId  string    `bson:"prevId"`
	Payload []byte    `bson:"payload"`
	Created time.Time `bson:"created"`
}

Directories

Path Synopsis
db
mock_db
Package mock_db is a generated GoMock package.
Package mock_db is a generated GoMock package.

Jump to

Keyboard shortcuts

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