@@ -1359,13 +1359,11 @@ bool Sign1(const CKeyID& address, const CKeyStore& keystore, uint256 hash, int n
13591359{
13601360 CKey key;
13611361 if (!keystore.GetKey (address, key)) {
1362- printf (" could not find the right key ******************" );
13631362 return false ;
13641363 }
13651364
13661365 vector<unsigned char > vchSig;
13671366 if (!key.Sign (hash, vchSig)) {
1368- printf (" signing failed :( *****************" );
13691367 return false ;
13701368 }
13711369 vchSig.push_back ((unsigned char )nHashType);
@@ -1407,17 +1405,12 @@ bool Solver(const CKeyStore& keystore, const CScript& scriptPubKey, uint256 hash
14071405 switch (whichTypeRet)
14081406 {
14091407 case TX_NONSTANDARD :
1410- printf (" ****************** tx is not standard" );
14111408 return false ;
14121409 case TX_PUBKEY :
14131410 keyID = CPubKey (vSolutions[0 ]).GetID ();
1414- printf (" ***************** tx is pubkey: %s" , keyID.ToString ());
1415- printf (" \n " );
14161411 return Sign1 (keyID, keystore, hash, nHashType, scriptSigRet);
14171412 case TX_PUBKEYHASH :
14181413 keyID = CKeyID (uint160 (vSolutions[0 ]));
1419- printf (" ***************** tx is pubkeyhash: %s" , uint160 (vSolutions[0 ]));
1420- printf (" \n " );
14211414 if (!Sign1 (keyID, keystore, hash, nHashType, scriptSigRet))
14221415 return false ;
14231416 else
@@ -1428,15 +1421,12 @@ bool Solver(const CKeyStore& keystore, const CScript& scriptPubKey, uint256 hash
14281421 }
14291422 return true ;
14301423 case TX_SCRIPTHASH :
1431- printf (" ***************** tx is scripthash" );
14321424 return keystore.GetCScript (uint160 (vSolutions[0 ]), scriptSigRet);
14331425
14341426 case TX_MULTISIG :
1435- printf (" ***************** tx is multisig" );
14361427 scriptSigRet << OP_0 ; // workaround CHECKMULTISIG bug
14371428 return (SignN (vSolutions, keystore, hash, nHashType, scriptSigRet));
14381429 case TX_NULL_DATA :
1439- printf (" **************** tx is null data" );
14401430 return true ;
14411431 }
14421432 return false ;
@@ -1658,7 +1648,6 @@ bool SignSignature(const CKeyStore &keystore, const CScript& fromPubKey, CTransa
16581648
16591649 txnouttype whichType;
16601650 if (!Solver (keystore, fromPubKey, hash, nHashType, txin.scriptSig , whichType)) {
1661- printf (" ******************** solver failed :(" );
16621651 return false ;
16631652 }
16641653
0 commit comments