package
0.1.2
Repository: https://github.com/qwslane/go-quai.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CalculateQuaiReward calculates the quai that can be recieved for mining a block and returns value in its k_quai = state["K Quai"] alpha = params["Controller Alpha Parameter"] D = spaces[0]["Block Difficulty"] D = sum(D) / len(D) d1 = D d2 = log(D, params["Quai Reward Base Parameter"]) x_d = d1 / d2 x_b_star = -spaces[1]["Beta"][0] / spaces[1]["Beta"][1] k_quai += alpha * (x_b_star / x_d - 1) * k_quai spaces = [{"K Qi": state["K Qi"], "K Quai": k_quai}, spaces[1]] return spaces.
CalculateQiReward caculates the qi that can be received for mining a block and returns value in qits.
No description provided by the author
No description provided by the author
FindMinDenominations finds the minimum number of denominations to make up the reward.
IntrinsicLogEntropy returns the logarithm of the intrinsic entropy reduction of a PoW hash.
Calculate the amount of Quai that Qi can be converted to.
Calculate the amount of Qi that Quai can be converted to.