From 41d6d037d876258bb9603178c82065da8a089a70 Mon Sep 17 00:00:00 2001 From: Duke Date: Mon, 23 Oct 2023 09:43:40 -0400 Subject: [PATCH] Log number of SpendDescriptions and note value if an invalid sapling spend happens --- src/transaction_builder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transaction_builder.cpp b/src/transaction_builder.cpp index 38d7b375b..1ea61b3f8 100644 --- a/src/transaction_builder.cpp +++ b/src/transaction_builder.cpp @@ -182,7 +182,7 @@ boost::optional TransactionBuilder::Build() auto ctx = librustzcash_sapling_proving_ctx_init(); - LogPrintf("%s: Creating Sapling SpendDescriptions\n", __FUNCTION__); + LogPrintf("%s: Creating Sapling SpendDescriptions size=%d\n", __FUNCTION__, spends.size()); // Create Sapling SpendDescriptions for (auto spend : spends) { auto cm = spend.note.cm(); @@ -213,7 +213,7 @@ boost::optional TransactionBuilder::Build() sdesc.rk.begin(), sdesc.zkproof.data())) { librustzcash_sapling_proving_ctx_free(ctx); - LogPrintf("%s: Invalid sapling spend proof!\n", __FUNCTION__); + LogPrintf("%s: Invalid sapling spend proof! note value=%d\n", __FUNCTION__, spend.note.value() ); return boost::none; }