From 931684b24a89aba884cb18c13fa67ccca339ee8c Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Wed, 14 Apr 2021 13:29:27 -0400 Subject: validation: fix ActivateSnapshot to use hardcoded nChainTx This fixes an oversight from the move of nChainTx from the user-supplied snapshot metadata into the hardcoded assumeutxo chainparams. Since the nChainTx is now unused in the metadata, it should be removed in a future commit. --- src/validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/validation.cpp') diff --git a/src/validation.cpp b/src/validation.cpp index 332cb581b8..a105624510 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -5346,7 +5346,7 @@ bool ChainstateManager::PopulateAndValidateSnapshot( } assert(index); - index->nChainTx = metadata.m_nchaintx; + index->nChainTx = au_data.nChainTx; snapshot_chainstate.setBlockIndexCandidates.insert(snapshot_start_block); LogPrintf("[snapshot] validated snapshot (%.2f MB)\n", -- cgit v1.2.3