quality-of-life improvements, lower client slave thread stack to 512KB (maybe still too much), dynamic fullverify - freeing transactions after verification

This commit is contained in:
2026-04-23 21:34:12 +02:00
parent 9c99eec3a8
commit a89a912898
8 changed files with 26 additions and 3 deletions

View File

@@ -416,6 +416,11 @@ static bool VerifyChainFully(blockchain_t* chain) {
if (memcmp(blk->header.merkleRoot, expectedMerkle, sizeof(expectedMerkle)) != 0) {
return false;
}
// Transactions are persisted on disk. Once this block is fully verified,
// release its in-memory transaction list to reduce peak memory usage.
DynArr_destroy(blk->transactions);
blk->transactions = NULL;
}
return true;