From f53e6c02b3f18eacd2150c63da2995218c3342a2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 4 Mar 2019 00:18:28 -1100 Subject: [PATCH] Grandfather existing handles --- src/cc/dilithium.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cc/dilithium.c b/src/cc/dilithium.c index d7b59f54c..4a181e7c5 100644 --- a/src/cc/dilithium.c +++ b/src/cc/dilithium.c @@ -3508,6 +3508,8 @@ bool dilithium_Rvalidate(struct CCcontract_info *cp,int32_t height,Eval *eval,co static int32_t didinit; std::vector > txids; uint256 txid,hashBlock; int32_t numvouts; struct dilithium_handle *hashstr; std::string handle; std::vector bigpub; CTransaction txi; CPubKey oldpub33,pub33,dilithiumpk; CTxOut vout,vout0; char CCaddr[64]; + if ( height < 14500 ) + return(true); dilithiumpk = GetUnspendable(cp,0); if ( didinit == 0 ) {