aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2021-04-14 13:29:27 -0400
committerJames O'Beirne <james.obeirne@pm.me>2021-04-14 13:29:27 -0400
commit931684b24a89aba884cb18c13fa67ccca339ee8c (patch)
tree99e37bcf0cab24fed7ee2916e1ca290f151588a0 /src/validation.cpp
parent773f8c1a7d568012768e16d2ede65b5d4d62aced (diff)
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.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp2
1 files changed, 1 insertions, 1 deletions
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",