mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
1398e0bf85
* Added sizeshift to proof of work and encoding as VLQ * Fix some loose ends to get things to compile * Rename sizehift to min_sizeshift * Pipeline checks for PoW Cuckoo Cycle size shift and adjustment factor before difficulty comparison. * Working delta+VLQ encoding of u64 PoW, unfortunately still a little larger than u32, at least for Cuckoo30. * Changed binary encoding of proof of work to a sequence of exact compact bit representation of each nonce. Somewhat simpler, shorter and matches the data to be hashed. * Few fixes based on @tromp feedback: * Max nonce is 2^(N-1) * Need a separate constant for reference sizeshift * Cuckoo implementation now conserves sizeshift. Test providing a block at higher sizeshift. * Last small overflow protection |
||
---|---|---|
.. | ||
common | ||
vec_backend | ||
block.rs | ||
consensus.rs | ||
core.rs | ||
merkle_proof.rs | ||
pmmr.rs | ||
transaction.rs |