Skip to content

Commit 402aa16

Browse files
chopperbrianoclaude
andcommitted
PSP: log processNewMetaData detection result and outputs (win.27)
DEBUG-level diagnostic to tell whether serializeMetaProcessor is actually matching mctrivia's pay-in addresses on Windows. Prints the computed extra string (a:N = no match, a:N,p1:S_<bytes> = match) and every output's address + dgb value for each asset issuance seen. Turn on with [L] in the dashboard, wait for a new issuance on-chain. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2323188 commit 402aa16

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SET(PATCH_VERSION 0)
4040
SET(SO_VERSION 0)
4141

4242
# Windows port build number (increment for each Windows-specific release)
43-
SET(WIN_BUILD 26)
43+
SET(WIN_BUILD 27)
4444

4545
# Add source directory
4646
include_directories(src)

src/PermanentStoragePool/PermanentStoragePoolList.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,22 @@ void PermanentStoragePoolList::processNewMetaData(const DigiByteTransaction& tx,
230230
extra += ",p" + to_string(pool->getPoolIndex()) + ":" + serialized; //add to instructions
231231
}
232232

233+
// DEBUG: surface the detection result so we can tell if serializer found
234+
// a matching output. "a:N" alone = no pool matched; "a:N,p1:S_..." = matched.
235+
// Also dump the raw outputs at DEBUG so we can see addresses/digibyte
236+
// values the serializer saw.
237+
{
238+
Log* log = Log::GetInstance();
239+
log->addMessage("PSP processNewMetaData: assetIdx=" + to_string(assetIndex) +
240+
" extra=" + extra, Log::DEBUG);
241+
size_t outCount = tx.getOutputCount();
242+
for (size_t i = 0; i < outCount; i++) {
243+
AssetUTXO out = tx.getOutput(i);
244+
log->addMessage(" out[" + to_string(i) + "] addr='" + out.address +
245+
"' dgb=" + to_string(out.digibyte), Log::DEBUG);
246+
}
247+
}
248+
233249
//download the metadata
234250
IPFS* ipfs = AppMain::GetInstance()->getIPFS();
235251
ipfs->callOnDownload(cid, "", extra, PSP_CALLBACK_NEWMETADATA_ID);

0 commit comments

Comments
 (0)