From 109e09ebbdadf327bde854931e98d4307b8323a0 Mon Sep 17 00:00:00 2001 From: Larry Ruane Date: Tue, 19 Mar 2019 09:35:42 -0600 Subject: [PATCH] DisconnectBlock(): write spentindex to disk --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b1b9abe7f086..6d0489615421 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2360,6 +2360,12 @@ bool DisconnectBlock(const CBlock& block, CValidationState& state, const CBlockI } } + if (fSpentIndex) { + if (!pblocktree->UpdateSpentIndex(spentIndex)) { + return AbortNode(state, "Failed to write transaction index"); + } + } + return fClean; }