constants

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	COS_CHAIN_NAME     = "contentos"
	COS_INIT_SUPPLY    = 10000000000
	COS_CONSENSUS_NAME = "iBFT"
	COS_INIT_MINER     = "initminer"

	COIN_SYMBOL = "COS"
	VEST_SYMBOL = "VEST"

	BLOCK_INTERVAL = 3 // 3000 ms for one block produce

	NOTICE_OP_PRE      = "oppre"
	NOTICE_OP_POST     = "oppost"
	NOTICE_TRX_PRE     = "trxpre"
	NOTICE_TRX_POST    = "trxpost"
	NOTICE_TRX_PENDING = "trxpending"
	NOTICE_BLOCK_APPLY = "blockapply"

	ProducerNum = 21
	GenesisTime = 11111

	INIT_MINER_NAME      = "initminer"
	MAX_TRANSACTION_SIZE = 1024 * 256

	MAX_BLOCK_SIZE = MAX_TRANSACTION_SIZE * BLOCK_INTERVAL * 2000
	MIN_BLOCK_SIZE = 115

	GENESIS_TIME = 0
	INIT_SUPPLY  = 10000000000

	INITMINER_PUBKEY = "COS6oKUcS7jNfPk48SEHENfeHbkWWjH7QAJt6C5tzGyL46yTWWBBv"
	INITMINER_PRIKEY = "27Pah3aJ8XbaQxgU1jxmYdUzWaBbBbbxLbZ9whSH9Zc8GbPMhw"

	RPC_PAGE_SIZE_LIMIT = 100

	MAX_WITNESSES = 21

	POST_INVALID_ID         = 0
	POST_MAX_DEPTH          = 8
	POST_CASHPUT_DELAY_TIME = 60 * 60 * 24 * 7
	MAX_BP_VOTE_COUNT       = 30

	BLOCKS_PER_DAY = 24 * 60 * 60 / BLOCK_INTERVAL

	MAX_UNDO_HISTORY = 10000

	MIN_VOTE_INTERVAL = 20
	MIN_POST_INTERVAL = 0 // 5 * 60 TODO for unit test

	PERCENT = 10000

	VOTE_REGENERATE_TIME = (60 * 60 * 24) * 3

	VOTE_LIMITE_DURING_REGENERATE = 30

	VP_DECAY_TIME = (60 * 60 * 24) * 15

	TRX_MAX_EXPIRATION_TIME = 30 * 60

	PER_BLOCK_CURRENT = 10

	AUTHOR_REWARD = 7000
	REPLY_REWARD  = 2000
	BP_REWARD     = 1000
)

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