constants

package
v1.0.0-alpha3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	APP_NAME       = "Consensus Voting Power Information Tool"
	GITHUB_ORG     = "https://github.com/bcdevtools"
	GITHUB_PROJECT = GITHUB_ORG + "/consvp"
	APP_INTRO      = "You are using " + APP_NAME + ", a product of bcdev.tools\nFollow us on GitHub for new tools and updates: " + GITHUB_ORG + " (don't forget to star our repo!)"

	BINARY_NAME = "cvp"
	VERSION     = "v1.0.0"
)
View Source
const (
	STREAMING_BASE_URL       = "https://cvp.bcdev.tools"
	STREAMING_BASE_URL_LOCAL = "http://localhost:8080" // for development purpose only

	STREAMING_PATH_REGISTER_PRE_VOTE_PREFIX  = "register-session/pre-vote"
	STREAMING_PATH_RESUME_PRE_VOTE_PREFIX    = "resume-session/pre-vote"
	STREAMING_PATH_BROADCAST_PRE_VOTE_PREFIX = "broadcast/pre-vote"
	STREAMING_PATH_VIEW_PRE_VOTE_PREFIX      = "pvtop"

	STREAMING_CONTENT_TYPE       = "application/octet-stream"
	STREAMING_HEADER_SESSION_KEY = "X-Session-Key"
)
View Source
const (
	MAX_VALIDATORS                             = 250
	MAX_ENCODED_LIGHT_VALIDATORS_BYTES         = 12251 // 12251 v1, 8251 v2
	MAX_ENCODED_NEXT_BLOCK_PRE_VOTE_INFO_BYTES = 2044  // 2044 v1, 1786 v2
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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