Expand description
Helper utilities
Functions§
- Auxiliary function to find best ranked fork.
- Compute a block’s rank, assuming that its valid, based on provided mining target.
- Deploy DarkFi native wasm contracts to provided blockchain overlay.
- Given a proposal, find the index of a fork chain it extends, along with the specific extended proposal index. Additionally, check that proposal doesn’t already exists in any fork chain.
- Auxiliary function to calculate the middle value between provided u64 numbers
- Verify provided header is valid for provided mining target and compute its rank.
- Auxiliary function to calculate the median of a given
Vec<u64>
. The function sorts the vector internally.