Browse Source

Avoid coredumps by initializing vpwallets on wallet loading

pull/132/head
Duke Leto 6 years ago
parent
commit
f987b079a9
  1. 3
      src/init.cpp
  2. 2
      src/komodo_validation011.h

3
src/init.cpp

@ -1583,6 +1583,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
strErrors << _("Error loading wallet.dat") << "\n";
}
// Wallet has been successfully loaded
vpwallets.push_back(pwalletMain);
if (GetBoolArg("-upgradewallet", fFirstRun))
{
int nMaxVersion = GetArg("-upgradewallet", 0);

2
src/komodo_validation011.h

@ -1169,7 +1169,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
static int32_t hwmheight;
uint64_t signedmask; uint8_t scriptbuf[4096],pubkeys[64][33],scriptPubKey[35]; uint256 zero; int32_t i,j,k,numnotaries,notarized,scriptlen,numvalid,specialtx,notarizedheight,len,numvouts,numvins,height,txn_count;
if ( KOMODO_NEEDPUBKEYS != 0 )
if ( KOMODO_NEEDPUBKEYS >= 0 )
{
komodo_importpubkeys();
KOMODO_NEEDPUBKEYS = 0;

Loading…
Cancel
Save