diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index e6a245aad6..65bb7996b9 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -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);