move disconnect notarisations from DisconnectBlock to DisconnectTip

This commit is contained in:
Scott Sadler
2018-06-16 12:05:22 -03:00
parent 7f3cc8a296
commit 84964112be
2 changed files with 35 additions and 23 deletions

View File

@@ -75,8 +75,8 @@ int ScanNotarisationsFromHeight(int nHeight, const IsTarget f, Notarisation &fou
for (int h=nHeight; h<limit; h++) {
NotarisationsInBlock notarisations;
uint256 blockHash = *chainActive[h]->phashBlock;
if (!GetBlockNotarisations(blockHash, notarisations))
if (!GetBlockNotarisations(*chainActive[h]->phashBlock, notarisations))
continue;
BOOST_FOREACH(found, notarisations) {