Accumulate
Search…
Contributing
This guide will walk you through setting up your environment and downloading the Accumulate source code.

Prerequisites

  • Go 1.17 (or higher) is required to compile accumulate
  • GNU Make is required to create versioned builds
  • In order to capture metrics from a dev node, you must set up Prometheus
If you are unsure what version of Go is installed in your environment, or you are unsure if any version is installed, use the following command to verify Go is installed:
1
$ go version
2
go version go1.17.x linux/amd64
Copied!

Go

Alternatively, on macOS you can install Go with Homebrew; on Linux you can install Go with your distribution's package manager. However, package managers may distribute an out of date version of Go, so direct installation is often more effective.
As described in a link above, you can use Go to install multiple versions of Go. For example, to install Go 1.17 along side an existing installation, execute these commands:
1
$ go install golang.org/dl/[email protected]
2
$ go1.17.2 download
3
$ go1.17.2 version
4
go version go1.17.2 linux/amd64
Copied!

Prometheus

Given an accumulate node running on 1.2.3.4 with 3000 as the base port number, Prometheus can be configured as follows:
prometheus.yml
1
global:
2
scrape_interval: 5s
3
4
scrape_configs:
5
- job_name: MyBVC
6
static_configs:
7
- targets:
8
- 1.2.3.4:3006
Copied!

Compiling

1
$ git clone https://github.com/accumulateNetwork/accumulate
2
$ cd accumulate
3
$ make # or go build ./cmd/accumulate
4
$ ./accumulate version
5
{"data":{"commit":"adbcac031eb437e749aa09c99f2e2228c2821f02","version":"v0.3.0","versionIsKnown":true},"type":"version"}
Copied!
Last modified 1d ago