Show a prefix of the first 8 chars of the hash for note debug lines
This commit is contained in:
@@ -1840,7 +1840,7 @@ void CWallet::GetSaplingNoteWitnesses(std::vector<SaplingOutPoint> notes,
|
|||||||
auto noteData = mapWallet[note.hash].mapSaplingNoteData;
|
auto noteData = mapWallet[note.hash].mapSaplingNoteData;
|
||||||
auto nWitnesses = noteData[note].witnesses.size();
|
auto nWitnesses = noteData[note].witnesses.size();
|
||||||
if (mapWallet.count(note.hash) && noteData.count(note) && nWitnesses > 0) {
|
if (mapWallet.count(note.hash) && noteData.count(note) && nWitnesses > 0) {
|
||||||
fprintf(stderr,"%s: Found %lu witnesses for note %s\n", __func__, nWitnesses, note.hash.ToString().c_str() );
|
fprintf(stderr,"%s: Found %lu witnesses for note %s...\n", __func__, nWitnesses, note.hash.ToString().substr(0,8).c_str() );
|
||||||
witnesses[i] = noteData[note].witnesses.front();
|
witnesses[i] = noteData[note].witnesses.front();
|
||||||
if (!rt) {
|
if (!rt) {
|
||||||
//fprintf(stderr,"%s: Setting witness root\n",__func__);
|
//fprintf(stderr,"%s: Setting witness root\n",__func__);
|
||||||
@@ -4587,14 +4587,14 @@ void CWallet::LockNote(const SaplingOutPoint& output)
|
|||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet);
|
AssertLockHeld(cs_wallet);
|
||||||
setLockedSaplingNotes.insert(output);
|
setLockedSaplingNotes.insert(output);
|
||||||
fprintf(stderr,"%s: locking note\n", __func__);
|
fprintf(stderr,"%s: locking note %s...\n", __func__, output.hash.ToString().substr(0,8).c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWallet::UnlockNote(const SaplingOutPoint& output)
|
void CWallet::UnlockNote(const SaplingOutPoint& output)
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet);
|
AssertLockHeld(cs_wallet);
|
||||||
setLockedSaplingNotes.erase(output);
|
setLockedSaplingNotes.erase(output);
|
||||||
fprintf(stderr,"%s: unlocking note\n", __func__);
|
fprintf(stderr,"%s: unlocking note %s...\n", __func__, output.hash.ToString().substr(0,8).c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWallet::UnlockAllSaplingNotes()
|
void CWallet::UnlockAllSaplingNotes()
|
||||||
|
|||||||
Reference in New Issue
Block a user