report invalid roots

This commit is contained in:
Duke Leto
2020-06-18 05:40:04 -04:00
parent 4800f497aa
commit 9bcf13bf4a

View File

@@ -1733,7 +1733,7 @@ void CWallet::GetSaplingNoteWitnesses(std::vector<SaplingOutPoint> notes,
//fprintf(stderr,"%s: rt=%s\n",__func__,rt.GetHash().ToString().c_str());
//fprintf(stderr,"%s: witnesses[%d]->root()=%s\n",__func__,i,witnesses[i]->root().GetHash().ToString().c_str());
// Something is fucky
std::string err = "CWallet::GetSaplingNoteWitnesses: Invalid witness root!";
std::string err = std::string("CWallet::GetSaplingNoteWitnesses: Invalid witness root! rt=") + rt.get().ToString();
throw std::logic_error(err);
}