Log number of SpendDescriptions and note value if an invalid sapling spend happens
This commit is contained in:
@@ -182,7 +182,7 @@ boost::optional<CTransaction> TransactionBuilder::Build()
|
|||||||
|
|
||||||
auto ctx = librustzcash_sapling_proving_ctx_init();
|
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
|
// Create Sapling SpendDescriptions
|
||||||
for (auto spend : spends) {
|
for (auto spend : spends) {
|
||||||
auto cm = spend.note.cm();
|
auto cm = spend.note.cm();
|
||||||
@@ -213,7 +213,7 @@ boost::optional<CTransaction> TransactionBuilder::Build()
|
|||||||
sdesc.rk.begin(),
|
sdesc.rk.begin(),
|
||||||
sdesc.zkproof.data())) {
|
sdesc.zkproof.data())) {
|
||||||
librustzcash_sapling_proving_ctx_free(ctx);
|
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;
|
return boost::none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user