From ddca550f5a94350ce60d40a88fde28d892fdc60e Mon Sep 17 00:00:00 2001 From: Vincent Durham Date: Sun, 16 Oct 2011 20:26:10 -0400 Subject: [PATCH] Fix hole in aux POW validation --- src/auxpow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/auxpow.cpp b/src/auxpow.cpp index 2131b0c7ccb4c..620504f05c14b 100644 --- a/src/auxpow.cpp +++ b/src/auxpow.cpp @@ -20,6 +20,9 @@ void RemoveMergedMiningHeader(vector& vchAux) bool CAuxPow::Check(uint256 hashAuxBlock, int nChainID) { + if (nIndex != 0) + return error("AuxPow is not a generate"); + if (!fTestNet && parentBlock.GetChainID() == nChainID) return error("Aux POW parent has our chain ID");