Beam Consensus Rules
WARNING: Used for development and testing only!
The following parameters allow to configuration of Consensus Rules in the Beam node and wallet.
Consensus Rules are for testing and development purposes only. Changing the consensus parameters changes the Rule Signature and breaks the node and wallet compatibility with the running Mainnet or Testnet servers.

Rules

Parameter
Description & Example
EmissionValue0
Initial coinbase emission in a single block (in Groth, 10^-8 of Beam)
EmissionDrop0
Height of the last block that still has the initial emission. Emission drops by half in the next block. Default equals one year (assuming one block per minute).
EmissionDrop1
Number of blocks in halving cycle (defaults to four years, assuming one block per minute).
MaturityCoinbase
Number of blocks that should be mined (verified) before coinbase UTXO can be spent.
MaturityStd
Number of blocks that should be mined (verified) before normal (non-coinbase) UTXO can be spent.
MaxBodySize
Block body size (in bytes).
DesiredRate_s
Target block rate (in seconds).
DifficultyReviewWindow
Number of blocks in the window for the mining difficulty adjustment.
TimestampAheadThreshold_s
Block timestamp tolerance (in seconds).
WindowForMedian
Number of blocks considered in calculating the timestamp median.
AllowPublicUtxos
Flag allowing regular (non-coinbase) UTXO to have non-confidential signature.
FakePoW
Flag to disable verification of PoW. Mining is simulated by timer.
The sample below displays the corresponding .cfg fie section:
1
################################################################################
2
# Rules configuration:
3
################################################################################
4
​
5
# initial coinbase emission in a single block
6
# EmissionValue0=800000000
7
​
8
# height of the last block that still has the initial emission, the drop is starting from the next block
9
# EmissionDrop0=525600
10
​
11
# Each such a cycle there's a new drop
12
# EmissionDrop1=2102400
13
​
14
# num of blocks before coinbase UTXO can be spent
15
# MaturityCoinbase=240
16
​
17
# num of blocks before non-coinbase UTXO can be spent
18
# MaturityStd=0
19
​
20
# Max block body size [bytes]
21
# MaxBodySize=0x100000
22
​
23
# Desired rate of generated blocks [seconds]
24
# DesiredRate_s=60
25
​
26
# num of blocks in the window for the mining difficulty adjustment
27
# DifficultyReviewWindow=1440
28
​
29
# Block timestamp tolerance [seconds]
30
# TimestampAheadThreshold_s=7200
31
​
32
# How many blocks are considered in calculating the timestamp median
33
# WindowForMedian=25
34
​
35
# set to allow regular (non-coinbase) UTXO to have non-confidential signature
36
# AllowPublicUtxos=0
37
​
38
# Don't verify PoW. Mining is simulated by the timer
39
# FakePoW=0
Copied!
Last modified 4mo ago
Copy link
Contents
Rules