Merge branch 'master' of github.com:jedmccaleb/NewCoin

This commit is contained in:
JoelKatz
2013-02-01 15:37:02 -08:00
30 changed files with 1427 additions and 533 deletions

View File

@@ -296,6 +296,11 @@ Json::Value RPCHandler::transactionSign(Json::Value jvRequest, bool bSubmit)
return jvResult;
}
if (jvRequest.isMember("debug_signing")) {
jvResult["tx_unsigned"] = strHex(stpTrans->getSerializer().peekData());
jvResult["tx_signing_hash"] = stpTrans->getSigningHash().ToString();
}
// FIXME: For performance, transactions should not be signed in this code path.
stpTrans->sign(naAccountPrivate);