Skip to content

Commit 2dbfb37

Browse files
committed
Fix Char as Bool in interfaces
1 parent e5fdda6 commit 2dbfb37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wallet/wallet.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ class CWalletTx
444444
* on this bitcoin node, and set to 0 for transactions that were created
445445
* externally and came in through the network or sendrawtransaction RPC.
446446
*/
447-
char fFromMe;
447+
bool fFromMe;
448448
int64_t nOrderPos; //!< position in ordered transaction list
449449
std::multimap<int64_t, CWalletTx*>::const_iterator m_it_wtxOrdered;
450450

@@ -501,8 +501,8 @@ class CWalletTx
501501

502502
std::vector<char> dummy_vector1; //!< Used to be vMerkleBranch
503503
std::vector<char> dummy_vector2; //!< Used to be vtxPrev
504-
char dummy_char = false; //!< Used to be fSpent
505-
s << tx << hashBlock << dummy_vector1 << nIndex << dummy_vector2 << mapValueCopy << vOrderForm << fTimeReceivedIsTxTime << nTimeReceived << fFromMe << dummy_char;
504+
bool dummy_bool = false; //!< Used to be fSpent
505+
s << tx << hashBlock << dummy_vector1 << nIndex << dummy_vector2 << mapValueCopy << vOrderForm << fTimeReceivedIsTxTime << nTimeReceived << fFromMe << dummy_bool;
506506
}
507507

508508
template<typename Stream>
@@ -512,8 +512,8 @@ class CWalletTx
512512

513513
std::vector<uint256> dummy_vector1; //!< Used to be vMerkleBranch
514514
std::vector<CMerkleTx> dummy_vector2; //!< Used to be vtxPrev
515-
char dummy_char; //! Used to be fSpent
516-
s >> tx >> hashBlock >> dummy_vector1 >> nIndex >> dummy_vector2 >> mapValue >> vOrderForm >> fTimeReceivedIsTxTime >> nTimeReceived >> fFromMe >> dummy_char;
515+
bool dummy_bool; //! Used to be fSpent
516+
s >> tx >> hashBlock >> dummy_vector1 >> nIndex >> dummy_vector2 >> mapValue >> vOrderForm >> fTimeReceivedIsTxTime >> nTimeReceived >> fFromMe >> dummy_bool;
517517

518518
ReadOrderPos(nOrderPos, mapValue);
519519
nTimeSmart = mapValue.count("timesmart") ? (unsigned int)atoi64(mapValue["timesmart"]) : 0;

0 commit comments

Comments
 (0)