Commit ae792fef authored by Zhenzhen Zhan's avatar Zhenzhen Zhan
Browse files

Support PoS in block version

parent 88fc782c
......@@ -17,12 +17,17 @@ class Version {
return (this.version & Version.AUXPOW) !== 0;
}
isProofOfStake() {
return (this.version & Version.POS_START) !== 0;
}
isLegacy() {
return this.version < Version.AUXPOW;
}
}
Version.AUXPOW = 0x100;
Version.POS_START = 0x200;
Version.CHAIN_START = 0x10000;
Version.CHAIN_ID = 20;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment