Skip to content

Commit

Permalink
Fix build on mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
mempko committed Aug 15, 2018
1 parent de2b4fd commit 2ce54b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,10 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
pblocktree = new CBlockTreeDB(nBlockTreeDBCache, false, fReset);

// TODO: Re-evaluate this placement of the RefDB and Cache. There may be a more efficient place.
prefviewdb = new referral::ReferralsViewDB{nReferralDBCache, false, fReset || fReindexChainState};
prefviewdb = new referral::ReferralsViewDB{
static_cast<size_t>(nReferralDBCache),
false, fReset || fReindexChainState};

prefviewcache = new referral::ReferralsViewCache{prefviewdb};

if (fReset) {
Expand Down

0 comments on commit 2ce54b7

Please sign in to comment.