anticone

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockDelay       = 15
	DefaultBlockRate = 0.02
	SecurityLevel    = 0.01
)

Variables

This section is empty.

Functions

func GetSize

func GetSize(_delay, _rate, _security float64) int

Calculate AntiCone size, which means when some miner has just created a block, how many blocks at most are there created by other miners. Simply understanding, it is the block creating concurrency

delay: Max propagation delay, unit is second rate: Block rate, unit is blocks/second security: Security level, the probability of an honest block being marked red

Types

This section is empty.

Jump to

Keyboard shortcuts

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