title: account/DevMintInputValidator.hpp summary: Production dev-chain input validator: the net-gated twin of TestMintInputValidator (D-03).
account/DevMintInputValidator.hpp¶
Production dev-chain input validator: the net-gated twin of TestMintInputValidator (D-03). More...
Namespaces¶
| Name |
|---|
| sgns |
Classes¶
| Name | |
|---|---|
| class | sgns::DevMintInputValidator |
Detailed Description¶
Production dev-chain input validator: the net-gated twin of TestMintInputValidator (D-03).
Date: 2026-10-21
Burn-less mints that declare the chain id "dev" route here through the existing IInputValidator registry. The witness verdict is kValid iff DevMintBurnlessPermitted() — the validator's OWN net decides, never the witness content or any proposer claim — so the same registration that permits dev mints on staging/local-dev nets refuses them on test and main.
Source code¶
#ifndef SGNS_DEV_MINT_INPUT_VALIDATOR_HPP
#define SGNS_DEV_MINT_INPUT_VALIDATOR_HPP
#include "account/InputValidators.hpp"
namespace sgns
{
class DevMintInputValidator final : public IInputValidator
{
public:
static bool Register();
bool ValidateUTXOParameters( const UTXOTxParameters ¶ms,
const std::string &address,
const UTXOManager &utxo_manager ) const override;
IInputValidator::WitnessVerdict ValidateWitness( const ConsensusSubject &subject,
const GeniusTransaction &tx,
const UTXOTxParameters ¶ms,
const Blockchain &blockchain ) const override;
bool RequiresConsensusUTXOData() const override;
};
} // namespace sgns
#endif // SGNS_DEV_MINT_INPUT_VALIDATOR_HPP
Updated on 2026-10-22 at 19:28:23 +0000