Skip to content

Commit a01fa30

Browse files
author
Philip Kaufmann
committed
minor style cleanup after HTTP rest interface merge
- no code changes
1 parent b5d1b10 commit a01fa30

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/key.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
#include <stdexcept>
1414
#include <vector>
1515

16-
struct CExtPubKey;
1716
class CPubKey;
1817

18+
struct CExtPubKey;
19+
1920
/**
2021
* secp256k1:
2122
* const unsigned int PRIVATE_KEY_SIZE = 279;

src/rest.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
// Copyright (c) 2009-2010 Satoshi Nakamoto
2-
// Copyright (c) 2009-2012 The Bitcoin developers
3-
// Distributed under the MIT/X11 software license, see the accompanying
2+
// Copyright (c) 2009-2014 The Bitcoin developers
3+
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#include <boost/algorithm/string.hpp>
7-
#include "rpcserver.h"
8-
#include "streams.h"
9-
#include "utilstrencodings.h"
106
#include "core/block.h"
117
#include "core/transaction.h"
12-
#include "version.h"
138
#include "main.h"
9+
#include "rpcserver.h"
10+
#include "streams.h"
1411
#include "sync.h"
12+
#include "utilstrencodings.h"
13+
#include "version.h"
14+
15+
#include <boost/algorithm/string.hpp>
1516

1617
using namespace std;
1718
using namespace json_spirit;
@@ -163,7 +164,7 @@ static bool rest_tx(AcceptedConnection *conn,
163164
string strJSON = write_string(Value(objTx), false) + "\n";
164165
conn->stream() << HTTPReply(HTTP_OK, strJSON, fRun) << std::flush;
165166
return true;
166-
}
167+
}
167168
}
168169

169170
// not reached
@@ -203,4 +204,3 @@ bool HTTPReq_REST(AcceptedConnection *conn,
203204
conn->stream() << HTTPError(HTTP_NOT_FOUND, false) << std::flush;
204205
return false;
205206
}
206-

0 commit comments

Comments
 (0)