Merge pull request #3619

3edef51d blockchain_blackball: fix build with CLANG 5 (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-04-12 15:11:02 +02:00
commit 41a66bf05b
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -253,7 +253,8 @@ int main(int argc, char* argv[])
return 1;
}
std::vector<std::unique_ptr<Blockchain>> core_storage(inputs.size());
tx_memory_pool m_mempool(*(Blockchain*)NULL);
Blockchain *blockchain = NULL;
tx_memory_pool m_mempool(*blockchain);
for (size_t n = 0; n < inputs.size(); ++n)
{
core_storage[n].reset(new Blockchain(m_mempool));