From 86ac3e12f061539a9f06e497a29ec77902d34a0f Mon Sep 17 00:00:00 2001 From: str4d Date: Mon, 21 Jun 2021 17:08:22 +0100 Subject: [PATCH] Minor fixes to documentation and formatting Co-authored-by: Daira Hopwood --- src/chain.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chain.h b/src/chain.h index 41314fb47..1a5933c67 100644 --- a/src/chain.h +++ b/src/chain.h @@ -270,7 +270,7 @@ public: CAmount nOrchardValue; //! (memory only) Total value held by the Orchard circuit up to and including this block. - //! Will be std::nullopt if nChainTx is zero. + //! Will be std::nullopt if and only if nChainTx is zero. std::optional nChainOrchardValue; //! Root of the Sapling commitment tree as of the end of this block. diff --git a/src/main.cpp b/src/main.cpp index 20c23bc38..24e8faf4d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2818,7 +2818,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin if (pindex->nChainOrchardValue) { if (*pindex->nChainOrchardValue < 0) { return state.DoS(100, error("ConnectBlock(): turnstile violation in Orchard shielded value pool"), - REJECT_INVALID, "turnstile-violation-orchard"); + REJECT_INVALID, "turnstile-violation-orchard"); } } }