From a94f8be56b1d297c2bd5d5183c239523f6df2d53 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 23 Nov 2018 06:51:45 -1100 Subject: [PATCH] Disallow taddr -> taddr --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f83defc37..2c0722c5b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1441,7 +1441,7 @@ bool CheckTransactionWithoutProofVerification(uint32_t tiptime,const CTransactio if ( ASSETCHAINS_PRIVATE != 0 && invalid_private_taddr != 0 ) { fprintf(stderr,"found taddr in private chain: z_z.%d z_t.%d t_z.%d\n",z_z,z_t,t_z); - if ( z_z != 0 || t_z != 0 ) + if ( z_t == 0 || z_z != 0 || t_z != 0 || tx.vins.size() != 0 ) return state.DoS(100, error("CheckTransaction(): this is a private chain, only sprout -> taddr allowed until deadline"),REJECT_INVALID, "bad-txns-acprivacy-chain"); } if ( ASSETCHAINS_TXPOW != 0 )