accumulate

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 0 Imported by: 0

README

Accumulate

Accumulate is a novel blockchain network designed to be hugely scalable while maintaining security. More details

Command Line Interface (CLI)

The CLI lives in ./cmd/accumulate. It can be run directly via go run ./cmd/accumulate, which builds to a temporary directory and executes the binary in one go. It can be built via go build ./cmd/accumulate, which creates accumulate or accumulate.exe in the current directory. It can be installed to $GOPATH/bin/accumulate ( GOPATH defaults to $HOME/go) via go install ./cmd/accumulate.

Main TestNet

To initialize node configuration in ~/.accumulate, choose a network from networks/networks.go, and run accumulated init -n <name>.

Once ~/.accumulate is initialized, run accumulated run -n <n> where <n> is the index of the node you want to run. For example, "Arches" has two nodes, index 0 and index 1.

Local TestNet

To set up a testnet on your PC, using localhost addresses, run accumulated testnet -w <config-dir>, e.g. accumulated testnet -w ./nodes.

  • -v/--validators sets the number of nodes created, default 3.
  • --ip sets the IP address of the first node, default 127.0.1.1. Nodes after the first will increment the IP, e.g. 127.0.1.2.
  • --port sets the base port, default 26656. Tendermint P2P will run on the base port, Tendermint RPC on base port + 1, Tendermint GRPC on +2, Accumulate RPC on +3, Accumulate JSONRPC API on +4, and Accumulate REST API on +5.

To run a node in the testnet, run accumulated run -w <dir>/Node<n>, e.g. accumulated run -w ./nodes/Node0.

Code organization

Accumulate is broken into the following components:

  • cmd/accumulated - Daemon
  • cmd/accumulate - CLI wallet
  • config - Daemon configuration types
  • internal/node/abci - ABCI implementation
  • internal/api- JSON-RPC v1; Deprecated: use internal/api/v2
  • internal/api/v2- JSON-RPC v2
  • internal/core/chain - Transaction validation and processing (aka chain validators)
  • internal/cmd/gentypes - Type generator for internal/api and protocol
  • pkg/types/encoding - Shared code used by generated types in internal/api and protocol
  • internal/node/genesis - Objects that are created when the node first starts up
  • internal/logging - Logging setup
  • internal/node - Node configuration, initialization, and execution
  • internal/relay - The relay, responsible for relaying transactions to the appropriate BVC; Deprecated: use internal/api/v2
  • test/testing - Test helpers
  • pkg/url - Accumulate URL parser
  • internal/node/web/static - Embedded web server content
  • networks - Accumulate network definitions
  • protocol - Protocol types and definitions
  • router - Accumulate API
  • smt - Stateful Merkle Tree
  • types - Data type definitions, used for RPC and persistence; Deprecated: these packages will eventually be moved or replaced, new work should happen elsewhere
Load Test

To load test an Accumulate network, run accumulated testnet --network <name> or accumulated testnet --remote <ip-addr>. These flags can be combined.

  • --network adds the first IP of the named or numbered network to the target list.
  • --remote adds the given IP to the target list.
  • --wallets sets the number of generated wallets.
  • --transactions sets the number of generated transactions.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commit string
View Source
var Version = unknownVersion

Functions

func IsVersionKnown

func IsVersionKnown() bool

Types

This section is empty.

Directories

Path Synopsis
cmd
internal
bsn
core
Package core holds core protocol types and constants
Package core holds core protocol types and constants
database
For key value stores where buckets are not supported, we add a byte to the key to represent a bucket.
For key value stores where buckets are not supported, we add a byte to the key to represent a bucket.
database/smt/common
For key value stores where buckets are not supported, we add a byte to the key to represent a bucket.
For key value stores where buckets are not supported, we add a byte to the key to represent a bucket.
node
Package node provides functions to configure, initialize, and execute a Tendermint node.
Package node provides functions to configure, initialize, and execute a Tendermint node.
node/abci
Package abci implements the Accumulate ABCI applications.
Package abci implements the Accumulate ABCI applications.
pkg
api/v3/message
Package message defines message types and implements binary message transport for Accumulate API v3.
Package message defines message types and implements binary message transport for Accumulate API v3.
exp
Package exp is experimental and may change without warning.
Package exp is experimental and may change without warning.
url
test
sdk
tools

Jump to

Keyboard shortcuts

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