Minor fixes to documentation and formatting

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
str4d 2021-06-21 17:08:22 +01:00 committed by GitHub
parent 509e7c7d79
commit 86ac3e12f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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<CAmount> nChainOrchardValue;
//! Root of the Sapling commitment tree as of the end of this block.

View File

@ -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");
}
}
}