Post
Topic
Board Announcements (Altcoins)
Re: [ANN] CoinonatX-PoW/PoS-Masternodes-75% APR (CXT Sister) -NEW THREAD
by
kydub
on 13/09/2017, 23:04:20 UTC
darksend.cpp:978:29: error: cannot convert ‘bool’ to ‘bool*’ in initialization      bool* pfMissingInputs = false;

This happened in several locations I made the following changes to the code to make the compiler happy and accomplish the same thing.


        bool pfMissingInputs;
        if(!AcceptableInputs(mempool, tx, false, &pfMissingInputs)){

Since the variable is used only locally withing the scope of the current function, it should be ok to allocate the variable on the stack and then pass its address into the
AcceptableInputs function. Within the function the value is set to false in the event that its not already done.

Thank you. That is correct. It's a bug carried over from the original code by the The Darkcoin developers. For some reason older compilers allowed it, but newer compilers don't. FYI if anyone is wondering darksend.cpp:978 is a reference to line 978 in src/darksend.cpp