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/node/utxo_snapshot.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/node/utxo_snapshot.h') diff --git a/src/node/utxo_snapshot.h b/src/node/utxo_snapshot.h index fe78cb46bd..4767d49889 100644 --- a/src/node/utxo_snapshot.h +++ b/src/node/utxo_snapshot.h @@ -24,6 +24,8 @@ public: //! Necessary to "fake" the base nChainTx so that we can estimate progress during //! initial block download for the assumeutxo chainstate. + //! + //! TODO: this is unused and should be removed. unsigned int m_nchaintx = 0; SnapshotMetadata() { } -- cgit v1.2.3