# How Poriot produces blocks

produce new blocks Consensus mechanism is the core problem that block chain needs to be solved. and Poriot’s consensus mechanism needs to answer: “ How does Poriot produce new blocks?”This is a core issue.

**1. Have Capability**

Make calculation, storage, network, material-linked devices and dataresource weights value: Wc=0.2, Ws=0.2, Wn=0.1,Wi=0.2, Wd=0.3。Assuming that there are N nodes in the network, the resource capacity of a single node i (1<i<N) at time t is computed, stored, networked, interconnected devices, resource capacity weights of data and:

Considering the appropriate resource ratio, introducing the smoothing parameter *P*（*i *When the resource scale is at the given parameter scale (CPU:Storage: Bandwidth:Material Linked Device: Data = 2C:1TB:10Mbps:1 Box: in the [1/4,4] interval of 100GB, *Pi *= 1, in the other intervals, *Pi *= 1/2).

Then the capacity of node i at time t is defined as:

The j takes a value of 1 to the N.

**2. Characteristics of the consensus algorithm**

1)Fairness: Each node has only one chance at each election, and the final success rate is basically the same with its ownership. In expectation, the success rate is equal to the superposition of owned computing, storage, network, Internet of Things equipment, data weighting capabilities, the more nodes that effectively contribute to the Poriot network (considering the meaning of mix s), the more likely to be elected as the bookkeeping node.

2)Not forged: Verification information is signed by the node private key,others cannot forge.

3)Validability: the elected new block bookkeeping node will broadcast the verification elements to the whole network for verification, to ensure consistent signature, ownership ability, and meet the Hash cryptography conditions; any verification node can be quickly completed in a very short time.