Add unauthenticated HTTP REST interface to public blockchain data.

This commit is contained in:
Jeff Garzik
2014-11-11 04:52:43 -05:00
parent 83f5daf2fe
commit e2655e0ab1
4 changed files with 216 additions and 1 deletions

View File

@@ -218,4 +218,10 @@ extern json_spirit::Value gettxout(const json_spirit::Array& params, bool fHelp)
extern json_spirit::Value verifychain(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getchaintips(const json_spirit::Array& params, bool fHelp);
// in rest.cpp
extern bool HTTPReq_REST(AcceptedConnection *conn,
std::string& strURI,
std::map<std::string, std::string>& mapHeaders,
bool fRun);
#endif // BITCOIN_RPCSERVER_H