aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-11-24 14:35:41 +0100
committerWladimir J. van der Laan <[email protected]>2014-11-24 14:35:50 +0100
commitdfc8e1432a57c1516bd474a79d0fd1f65f02dd37 (patch)
treee526265695222c44933cbea2ade06e59c73f9289 /src/rest.cpp
parentMerge pull request #5356 (diff)
parent[Qt] minor ordering cleanup after new fee selection (diff)
downloaddiscoin-dfc8e1432a57c1516bd474a79d0fd1f65f02dd37.tar.xz
discoin-dfc8e1432a57c1516bd474a79d0fd1f65f02dd37.zip
Merge pull request #5309
4574248 [Qt] minor ordering cleanup after new fee selection (Philip Kaufmann) a01fa30 minor style cleanup after HTTP rest interface merge (Philip Kaufmann)
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rest.cpp b/src/rest.cpp
index 9a8793a51..122b36171 100644
--- a/src/rest.cpp
+++ b/src/rest.cpp
@@ -1,17 +1,18 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
-// Copyright (c) 2009-2012 The Bitcoin developers
-// Distributed under the MIT/X11 software license, see the accompanying
+// Copyright (c) 2009-2014 The Bitcoin developers
+// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-#include <boost/algorithm/string.hpp>
-#include "rpcserver.h"
-#include "streams.h"
-#include "utilstrencodings.h"
#include "core/block.h"
#include "core/transaction.h"
-#include "version.h"
#include "main.h"
+#include "rpcserver.h"
+#include "streams.h"
#include "sync.h"
+#include "utilstrencodings.h"
+#include "version.h"
+
+#include <boost/algorithm/string.hpp>
using namespace std;
using namespace json_spirit;
@@ -163,7 +164,7 @@ static bool rest_tx(AcceptedConnection *conn,
string strJSON = write_string(Value(objTx), false) + "\n";
conn->stream() << HTTPReply(HTTP_OK, strJSON, fRun) << std::flush;
return true;
- }
+ }
}
// not reached
@@ -203,4 +204,3 @@ bool HTTPReq_REST(AcceptedConnection *conn,
conn->stream() << HTTPError(HTTP_NOT_FOUND, false) << std::flush;
return false;
}
-