|
|
@ -1373,9 +1373,10 @@ bool CheckTransaction(uint32_t tiptime,const CTransaction& tx, CValidationState |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
int32_t komodo_isnotaryvout(char *coinaddr) // from ac_private chains only
|
|
|
|
int32_t komodo_isnotaryvout(char *coinaddr,uint32_t tiptime) // from ac_private chains only
|
|
|
|
{ |
|
|
|
static int32_t didinit; static char notaryaddrs[sizeof(Notaries_elected1)/sizeof(*Notaries_elected1) + 1][64]; |
|
|
|
//use normal notary functions
|
|
|
|
int32_t i; |
|
|
|
if ( didinit == 0 ) |
|
|
|
{ |
|
|
@ -1484,7 +1485,7 @@ bool CheckTransactionWithoutProofVerification(uint32_t tiptime,const CTransactio |
|
|
|
//
|
|
|
|
char destaddr[65]; |
|
|
|
Getscriptaddress(destaddr,txout.scriptPubKey); |
|
|
|
if ( komodo_isnotaryvout(destaddr) == 0 ) |
|
|
|
if ( komodo_isnotaryvout(destaddr,tiptime) == 0 ) |
|
|
|
{ |
|
|
|
invalid_private_taddr = 1; |
|
|
|
//return state.DoS(100, error("CheckTransaction(): this is a private chain, no public allowed"),REJECT_INVALID, "bad-txns-acprivacy-chain");
|
|
|
|