Closed gwestwood closed 5 years ago
I've looked into it right now and it is a pretty simple fix, it's most probably old code that right now has no use and it actually turned into a bug.
This part starting at line 575 in miner.cpp
pblocktemplate = std::unique_ptr<CBlockTemplate> (CreateNewBlock(chainparams, coinbaseScript->reserveScript));
pblocktemplate = std::unique_ptr<CBlockTemplate> (CreateNewBlock(chainparams));
will be changed to
pblocktemplate = std::unique_ptr
Fixed in v1.3.1.0.
Describe the issue
When trying to build with credit binaries without the wallet compiled in, it fails with an error.
Steps to reproduce
Expected behavior (tell us what should happen)
Build completes successfully.
Actual behavior (tell us what happens instead)
Build fails with the error:
miner.cpp: In function ‘void CreditsMiner(const CChainParams&)’: miner.cpp:570:89: error: too few arguments to function ‘std::unique_ptr CreateNewBlock(const CChainParams&, const CScript&)’
pblocktemplate = std::unique_ptr (CreateNewBlock(chainparams));
^
miner.cpp:202:33: note: declared here
std::unique_ptr CreateNewBlock(const CChainParams& chainparams, const CScript& scriptPubKeyIn)
^
Makefile:5376: recipe for target 'libcredits_server_a-miner.o' failed
What platform are you using (Linux, Windows, Mac)
Linux.