项目作者: karai

项目描述 :
Karai is a bolt-on scaling solution for blockchain apps.
高级语言: Go
项目地址: git://github.com/karai/coordinator.git
创建时间: 2020-05-10T00:08:52Z
项目社区:https://github.com/karai/coordinator

开源协议:MIT License

下载


karaicoordinator

Discord GitHub issues GitHub stars Build GitHub GitHub issues by-label Go Report Card

Website: 📝 karai.io Browse: 💻 Karai Pointer Explorer Read: 🔗 Official Karai Blog

Usage

Note: Karai aims to always compile and run on Linux targetting the AMD64 CPU architecture. Other operating systems and architectures may compile and run this software but should do so expecting some inconsistencies.

Launch Karai Coordinator

  1. make postgres
  2. make migrate
  3. make karai

Deprecated> For optimal transaction speed as coordinator:

Deprecated> When skipping the write process, you are taking some risk if Karai crashes before you write transactions to disk. You can write your transactions to disk with the wt command.

  1. ./go-karai -coordinator -write=false

To place graph objects in a different directory:

  1. ./go-karai -coordinator -graphDir="/literal/path/to/graph/"

Launch Options

  1. Usage of ./go-karai:
  2. -apiport int
  3. Port to run Karai Coordinator API on. (default 4200)
  4. -batchDir string
  5. Path where batched transactions should be saved (default "./graph/batch")
  6. -chunkSize int
  7. Number of transactions per batch on disk. (default 100)
  8. -clean
  9. Clear all peer certs and graph objects
  10. -consume
  11. Consume data from sources.
  12. -graphDir string
  13. Path where graph objects should be saved (default "./graph")
  14. -matrix
  15. Enable Matrix functions. Requires -matrixToken, -matrixURL, and -matrixRoomID
  16. -matrixRoomID string
  17. Room ID for matrix publishd events
  18. -matrixToken string
  19. Matrix homeserver token
  20. -matrixURL string
  21. Matrix homeserver URL
  22. -write
  23. Write each graph object to disk. (default true)

Type menu to view a list of functions. Functions that are darkened are disabled.

Dependencies

Operating System

Karai supports Linux on AMD64 architecture, but may compile in other settings. Differences between Linux and non-Linux installs should be expected.

Optional: Compile with all errors displayed, then run binary. Avoids “too many errors” from hiding error info.

go build -gcflags="-e" && ./go-karai

Contributing

This repo only receives stable version release updates, development happens in a private repo. Please make an issue before writing code for a PR.

  • MIT License
  • gofmt
  • go modules
  • stdlib > *

Thanks to:

turtlecoin
IPFS
LibP2P
GOLANG