consensus: height/time-gated removal of the CRYPTO555/notary t-vout exemption (F16)
On the fully-private chain (ac_private=1) all transparent outputs are banned except coinbase, but hush_isnotaryvout() exempts CRYPTO555 and dPoW notary addresses -- so a public transparent UTXO to those addresses is accepted on a chain users treat as fully shielded. Drop that exemption so such vouts are rejected like any other taddr. Dropping a previously-accepted output is a consensus change that could fork the live chain, so it is activated by block time (DRAGONX_NOTARYVOUT_BAN_TIME, same mechanism as HUSH_SAPING_ACTIVATION). It ships DEFAULT-OFF via the 0xFFFFFFFF sentinel (year 2106), so merging is a verified no-op; the operator sets a real future timestamp once (a) the upgrade window has passed and (b) they have confirmed no active dPoW notarization posts transparent notary vouts on-chain -- otherwise activation would reject notarization txs and halt/fork. Adversarially reviewed as SOUND (default-off, safe to merge): tiptime is deterministic at the authoritative connect paths (prev->nTime), the sentinel is byte-identical to prior behavior, and coinbase + ac_burn paths are preserved. Reviewer note: a height-based gate would be marginally cleaner than time if ever made live. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+8
-1
@@ -1598,7 +1598,14 @@ bool CheckTransactionWithoutProofVerification(uint32_t tiptime,const CTransactio
|
||||
char destaddr[65];
|
||||
Getscriptaddress(destaddr,txout.scriptPubKey);
|
||||
|
||||
if ( hush_isnotaryvout(destaddr,tiptime) == 0 )
|
||||
// The CRYPTO555/notary allowlist exempts those transparent vouts from the private-chain
|
||||
// ban, leaving a public UTXO on a chain users treat as fully shielded. At/after the
|
||||
// activation time that exemption is dropped and such vouts are rejected like any other
|
||||
// taddr (time-gated + default-off via the sentinel so the whole network upgrades first).
|
||||
// The gate is checked first so the allowlist lookup is skipped entirely once active.
|
||||
int32_t isNotaryVout = ( tiptime >= DRAGONX_NOTARYVOUT_BAN_TIME )
|
||||
? 0 : hush_isnotaryvout(destaddr,tiptime);
|
||||
if ( isNotaryVout == 0 )
|
||||
{
|
||||
const bool isburn = (strcmp(destaddr,BURN_ADDRESS) == 0);
|
||||
if ((ASSETCHAINS_BURN == 1) && isburn && tx.vin.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user