Better error checking in consolidation for when CommitTransaction() fails

This commit is contained in:
Duke Leto
2020-03-09 21:02:52 -04:00
parent 67f666d5ff
commit e4bfafc76c
3 changed files with 11 additions and 7 deletions

View File

@@ -1258,7 +1258,7 @@ public:
const CBlock *pblock,
boost::optional<std::pair<SproutMerkleTree, SaplingMerkleTree>> added);
void RunSaplingConsolidation(int blockHeight);
void CommitConsolidationTx(const CTransaction& tx);
bool CommitConsolidationTx(const CTransaction& tx);
/** Saves witness caches and best block locator to disk. */
void SetBestChain(const CBlockLocator& loc);
std::set<std::pair<libzcash::PaymentAddress, uint256>> GetNullifiersForAddresses(const std::set<libzcash::PaymentAddress> & addresses);