Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regtest network bug with wrong values in K,N #108

Open
evgenyundefined opened this issue Oct 24, 2017 · 0 comments
Open

Regtest network bug with wrong values in K,N #108

evgenyundefined opened this issue Oct 24, 2017 · 0 comments

Comments

@evgenyundefined
Copy link

evgenyundefined commented Oct 24, 2017

Regtest network have init K and N params different from mainnet and testnet.
On mainnet and testnet K, N
const size_t N = 200, K = 9; // Same as mainchain.
BOOST_STATIC_ASSERT(equihash_parameters_acceptable(N, K));
nEquihashN = N;
nEquihashK = K;
On regtest K, N (chainparams.cpp:344)
const size_t N = 48, K = 5;
BOOST_STATIC_ASSERT(equihash_parameters_acceptable(N, K));
nEquihashN = N;
nEquihashK = K;

With public miners on mainnet and testnet all works fine, but if you make regtest network (for some test) daemon reject all shares from public miners. (this problem have all forks of zerocash).

Please make regtest params same mainnet and make genesis block for regtest with K,N 200,9 and not with K,N 48,5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants