Revert "Split CMerkleTx::SetMerkleBranch"
[novacoin.git] / src / rpcblockchain.cpp
index 83ca8fd..054dca2 100644 (file)
@@ -13,7 +13,7 @@
 using namespace json_spirit;
 using namespace std;
 
-extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spirit::Object& entry);
+extern void TxToJSON(const CTransaction& tx, const uint256& hashBlock, json_spirit::Object& entry);
 extern enum Checkpoints::CPMode CheckpointsMode;
 
 double GetDifficulty(const CBlockIndex* blockindex)
@@ -282,7 +282,7 @@ bool ExportBlock(const string& strBlockHash, const CDataStream& ssBlock)
         pathDest /= strBlockHash;
 
     try {
-        boost::iostreams::stream_buffer<boost::iostreams::file_sink> buf(pathDest.c_str());
+        boost::iostreams::stream_buffer<boost::iostreams::file_sink> buf(pathDest.string());
         ostream                     exportStream(&buf);
         exportStream << HexStr(ssBlock.begin(), ssBlock.end());
         exportStream.flush();