Comment out non-working code.

This commit is contained in:
JoelKatz
2011-12-17 13:33:32 -08:00
parent 1fb12e9883
commit aad4696a46
6 changed files with 12 additions and 32 deletions

10
rpc.cpp
View File

@@ -8,22 +8,18 @@
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include "json/json_spirit_reader_template.h"
#include "json/json_spirit_writer_template.h"
#include "json/json_spirit_utils.h"
#include <openssl/buffer.h>
#include <openssl/evp.h>
using namespace std;
using namespace boost;
using namespace boost::asio;
using namespace json_spirit;
#if 0
Object JSONRPCError(int code, const string& message)
{
Object error;
@@ -33,7 +29,6 @@ Object JSONRPCError(int code, const string& message)
}
//
// HTTP protocol
//
@@ -45,7 +40,7 @@ string createHTTPPost(const string& strMsg, const map<string,string>& mapRequest
{
ostringstream s;
s << "POST / HTTP/1.1\r\n"
<< "User-Agent: bitcoin-json-rpc/" << FormatFullVersion() << "\r\n"
<< "User-Agent: coin-json-rpc/" << FormatFullVersion() << "\r\n"
<< "Host: 127.0.0.1\r\n"
<< "Content-Type: application/json\r\n"
<< "Content-Length: " << strMsg.size() << "\r\n"
@@ -278,3 +273,4 @@ void ConvertTo(Value& value)
#endif