hexresearch / hschain

Other
4 stars 0 forks source link

Implement difficulty adjustment for the KV node #613

Closed Shimuuar closed 4 years ago

Shimuuar commented 4 years ago

Now KV example uses simple bitcoin-like work function (SHA256 of block) and difficult adjustment algorithm copied from bitcoin as well.

NOTE TM.P2P.testCatchup is broken by this change but these tests need some rework anyway