[Dev] Documenting Feathercoin Specific Software settings - Part 16
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Fixed boost c++11 build error - ambiguous overload in chainparams.cpp :: commit
Fixes this error:
chainparams.cpp: In constructor ‘CMainParams::CMainParams()’:
chainparams.cpp:85:52: error: ambiguous overload for ‘operator=’ (operand types are ‘std::vector<unsigned char>’ and ‘boost::assign_detail::generic_list<int>’)
base58Prefixes[PUBKEY_ADDRESS] = list_of(14); // FeatherCoin addresses start with F
^
In file included from /usr/include/c++/6.2.1/vector:69:0,
from serialize.h:21,
from bignum.h:9,
from chainparams.h:9,
from chainparams.cpp:6:
/usr/include/c++/6.2.1/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]
vector<_Tp, _Alloc>::https://github.com/FeatherCoin/Feathercoin/commit/c29adf99bbfe054608c37317294ceec4aab6720a
src/qt/transactionview.cpp
- QString program="./bitmessagemain "; + #if defined(Q_OS_LINUX) + QString program="pybitmessage"; + #else + QString program="./bitmessagemain"; + #endif
Code replaced
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Add support for miniupnpc api version 14 :: commit
Merge pull request #147 The value of new arg ttl is set to 2 as it’s recommended default.
https://github.com/FeatherCoin/Feathercoin/commit/4ec46d045c14c7aa957c63b2ee2053ac97f16c2a
src/net.cpp
-#else +#elif MINIUPNPC_API_VERSION < 14
Code replaced
+#else + /* miniupnpc 2.0 */ + int error = 0; + devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
Code added
-
Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*
Fix relaypriority calculation error :: commit
Solves #127 Fix relaypriority calculation error #148
https://github.com/FeatherCoin/Feathercoin/commit/b0741f8d7fdd3afc37060ac71b1c61fd6ce6641e
src/coins.cpp
- if (coins.nHeight < nHeight) { - dResult += coins.vout[txin.prevout.n].nValue * (nHeight-coins.nHeight); + if (coins.nHeight <= nHeight) { + dResult += (double)(coins.vout[txin.prevout.n].nValue) * (nHeight-coins.nHeight);
Code replaced