From 3251f0c935528c2582deab9820444851e8732349 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Mon, 28 Jun 2021 17:56:57 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: str4d --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c6f394a38..0a8697248 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1445,12 +1445,12 @@ bool CheckTransactionWithoutProofVerification(const CTransaction& tx, CValidatio // Check for duplicate orchard nullifiers in this transaction { - set vOrchardNullifiers; + std::set vOrchardNullifiers; for (const uint256& nf : tx.GetOrchardBundle().GetNullifiers()) { if (vOrchardNullifiers.count(nf)) return state.DoS(100, error("CheckTransaction(): duplicate nullifiers"), - REJECT_INVALID, "bad-spend-description-nullifiers-duplicate"); + REJECT_INVALID, "bad-orchard-nullifiers-duplicate"); vOrchardNullifiers.insert(nf); }