From 62e8070ea7a891e41f559900eb96d19be2333956 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 5 Jul 2019 03:46:44 -1100 Subject: [PATCH] CBasicKeyStore --- src/komodo_nSPV_wallet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index 4a33823ce..07d499a76 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -144,7 +144,7 @@ int64_t NSPV_addinputs(struct NSPV_utxoresp *used,CMutableTransaction &mtx,int64 bool NSPV_SignTx(CMutableTransaction &mtx,int32_t vini,int64_t utxovalue,const CScript scriptPubKey) { - CTransaction txNewConst(mtx); SignatureData sigdata; CKeyStore keystore; + CTransaction txNewConst(mtx); SignatureData sigdata; CBasicKeyStore keystore; auto consensusBranchId = CurrentEpochBranchId(chainActive.Height() + 1, Params().GetConsensus()); keystore.AddKey(NSPV_key); if ( ProduceSignature(TransactionSignatureCreator(&keystore,&txNewConst,vini,utxovalue,SIGHASH_ALL),scriptPubKey,sigdata,consensusBranchId) != 0 )