04/27 - PAI Hybrid Consensus Updates
How will Hybrid Consensus be launched?
Hybrid Consensus is a fundamental change to the PAI Coin protocol. It changes the basic rules by which transactions are verified. This change is not backwards compatible, and therefore, requires what’s called a hard fork of the blockchain. At a pre-specified block height, which is yet to be determined, all peers that have updated to the new version of PAI Coin Core will reject candidate blocks which do not conform to the Hybrid Consensus protocol.
This will effectively cause two blockchains to exist in parallel: the current, original PAI blockchain, using Bitcoin-style PoW Consensus, and the new, then-“official” PAI Blockchain, using PoW/PoS Hybrid Consensus.
Once Hybrid Consensus is launched, how will mining and staking work? Is any equipment needed for mining?
Following the launch of Hybrid Consensus, users will have two options to mine and stake:
- By proxy, via PAI Coin Pool
- Directly, via PAI Coin Core (for advanced users)
In either case, you shouldn’t need any special equipment to participate.
PAI Coin Pool will be updated to mine on-chain, so that mining will be as simple as it is now — download the PAI Miner application and run it on your computer. The only difference will be that the Lucky Hashes your miner submits will be used to construct valid candidate blocks for addition to the PAI Blockchain.
Regardless of whether or not you specifically generate the block that becomes part of the blockchain, all participating PCP miners will be rewarded with a proportional fraction of the block reward whenever PAI Coin Pool, as a whole, finds a block. Smaller, but more frequent, block rewards are the main benefit of participating in a pool versus solo mining directly.
If you still prefer to try your hand at solo mining, you would do so by cloning and compiling the open-source PAI Coin Core software that will be available on the Project PAI GitHub.
Can big mining companies with a lot of ASICs take over the network?
No, the PoW/PoS Hybrid Consensus mechanism uses a SHA-3 hash function. An ASIC that computes SHA-3 does not exist, to our knowledge (although one could theoretically be built). That levels the playing field and allows regular users to fairly participate in mining using standard computing equipment.
Here’s a snapshot of some of the commits / PRs by our developers last week:
- Implemented transaction reordering for block validation: https://github.com/projectpai/paicoin/commit/8fe8f5d9823e4b9a0e497f5cc6051600e268e2fe
- Added VSP fee validation for ticket purchases: https://github.com/projectpai/paicoin/commit/41acf5b1fc58b0440c113bf66fb15e0511059cc0
- Added vote transactions to standard verification: https://github.com/projectpai/paicoin/commit/85e149ab369e0169bc00c6cde327d1dae304a0ed
- Solved synchronization issues and added dedicated unit test: https://github.com/projectpai/paicoin/commit/b5a4338d7e9de27c0e458d00078b4d258621ee4f
- Added hard fork activation for an extended block header: https://github.com/projectpai/paicoin/pull/285