• Stars
    star
    2,367
  • Rank 19,431 (Top 0.4 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created over 3 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Official Go Implementation of the Quai Network

Go Quai

Official Golang implementation of the Quai protocol.

API Reference Go Report Card Discord

Building the source

For prerequisites and detailed build instructions please read the Installation Instructions.

First, clone the repository and navigate to it using

$ git clone https://github.com/dominant-strategies/go-quai.git
$ cd go-quai

Next, you will need to copy some default environment variables to your machine. You can do this by running

$ cp network.env.dist network.env

Building go-quai requires both a Go (version 1.19 or later) and a C compiler. You can install them using your favorite package manager. Once these dependencies are installed, run

$ make go-quai

or, to build the full suite of utilities:

$ make all

Executables

The go-quai project comes with several wrappers/executables found in the cmd directory.

Command Description
go-quai Our main Quai CLI client. It is the entry point into the Quai network (main-, test- or private net), capable of running as a full node (default), archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Quai network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. go-quai --help for command line options.
test Runs a battery of tests on the repository to ensure it builds and functions correctly.

Running go-quai

Full node on the main Quai network

Using the makefile will preload configuration values from the network.env file.

$ make run-all

Full node on the Garden test network

Garden test network is based on the Blake3 proof-of-work consensus algorithm. As such, it has certain extra overhead and is more susceptible to reorganization attacks due to the network's low difficulty/security.

Viewing logs

Logs are stored in the go-quai/nodelogs directory by default. You can view them by using tail or another utility, like so:

$ tail -f nodelogs/zone-0-0.log

Modify the network.env configuration file to reflect: NETWORK=garden. You should also set ENABLE_ARCHIVE=true to make sure to save the trie-nodes after you stop your node. Then build and run with the same commands as mainnet.

Configuration

Configuration is handled in network.env.dist file. You will need to copy or rename the file to network.env. The make commands will automatically pull from this file for configuration changes.

Contribution

Thank you for considering to help out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!

If you'd like to contribute to go-quai, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base. If you wish to submit more complex changes though, please check up with the core devs first on our Discord Server to ensure those changes are in line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple.

Please make sure your contributions adhere to our coding guidelines:

  • Code must adhere to the official Go formatting guidelines (i.e. uses gofmt).
  • Code must be documented adhering to the official Go commentary guidelines.
  • Pull requests need to be based on and opened against the main branch.
  • Commit messages should be prefixed with the package(s) they modify.
    • E.g. "rpc: make trace configs optional"

Please see the Developers' Guide for more details on configuring your environment, managing project dependencies, and testing procedures.

License

The go-quai library (i.e. all code outside of the cmd directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER file.

The go-quai binaries (i.e. all code inside of the cmd directory) is licensed under the GNU General Public License v3.0, also included in our repository in the COPYING file.

More Repositories

1

quai-docusaurus

Open-source documentation for the Quai Network protocol.
TypeScript
32
star
2

quai-node-cli-tool

Shell
24
star
3

quai-gpu-miner-archive

GPU Mining Implementation of Quai's ProgPow Algorithm.
C++
23
star
4

go-quai-stratum

Stratum Proxy to Facilitate Mining Pools
Go
19
star
5

hardhat-example

Solidity
17
star
6

quai-manager

Managing and mining software that connects to the core Quai Network protocol.
Go
16
star
7

quai-cpu-miner

A CPU miner for Quai network
Go
14
star
8

quai-explorer

Quai Network frontend block explorer.
JavaScript
13
star
9

quai-snap

Quai Network MetaMask Flask Integration
JavaScript
13
star
10

quai-nvidia-miner

GPU Mining Implementation of Quai's Blake3 Algorithm
C
12
star
11

quais-by-example

Example repository for the quais sdk
Solidity
8
star
12

quai-next-dapp

A boilerplate dApp built on top of Quai Network using NextJs and shadcn
TypeScript
7
star
13

quaipay

TypeScript
7
star
14

SolidityX-Contracts

Solidity
3
star
15

.github

2
star
16

quais-test

TypeScript
2
star
17

discv4-dns-lists

Shell
2
star
18

quai-hardhat-plugin

TypeScript
2
star
19

SolidityX

C++
2
star
20

quai-accounts

Go
2
star
21

quais.js

JavaScript library for interacting with Quai Network.
TypeScript
2
star
22

quai-docs

Open-source documentation for the Quai Network protocol.
MDX
2
star
23

quai-transactor

JavaScript
1
star
24

quai-local-node

Containerized instance of Quai Network for local development.
1
star
25

blockscout

HTML
1
star
26

quai-devp2p

Go
1
star
27

quais-5.js

TypeScript
1
star
28

quai-no-code-deployer

A friendly user interface for easily deploy and interacting with NFT and Tokens on Quai Network.
TypeScript
1
star
29

Quai-Macro-Model

Jupyter Notebook
1
star
30

qi-transactor

Go
1
star
31

quai-postman-collection

Importable postman collection for go-quai clients.
1
star