From 39993614d0bfea3943972648afd79815a9c91b36 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 10 Jul 2019 22:12:49 -1100 Subject: [PATCH] +prints --- src/script/sign.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/script/sign.cpp b/src/script/sign.cpp index d0ae52b3a..784f2b8b8 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -51,8 +51,10 @@ bool TransactionSignatureCreator::CreateSig(std::vector& vchSig, if (pprivKey) key = *pprivKey; else if (!keystore || !keystore->GetKey(address, key)) + { + fprintf(stderr,"keystore error\n"); return false; - + } if (scriptCode.IsPayToCryptoCondition()) { CC *cc = (CC *)extraData; @@ -67,7 +69,10 @@ bool TransactionSignatureCreator::CreateSig(std::vector& vchSig, if ( ASSETCHAINS_TXPOW == 0 ) { if (!key.Sign(hash, vchSig)) + { + fprintf(stderr,"key.Sign error\n"); return false; + } } else {