Skip to content

Commit

Permalink
fix headers
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Feb 27, 2019
1 parent 9fdfba4 commit 96545e8
Show file tree
Hide file tree
Showing 22 changed files with 91 additions and 59 deletions.
5 changes: 5 additions & 0 deletions src/bech32.h
Expand Up @@ -9,6 +9,9 @@
//
// For more information, see BIP 173.

#ifndef BITCOIN_BECH32_H
#define BITCOIN_BECH32_H

#include <stdint.h>
#include <string>
#include <vector>
Expand All @@ -23,3 +26,5 @@ std::string Encode(const std::string& hrp, const std::vector<uint8_t>& values);
std::pair<std::string, std::vector<uint8_t>> Decode(const std::string& str);

} // namespace bech32

#endif // BITCOIN_BECH32_H
6 changes: 3 additions & 3 deletions src/bench/perf.h
Expand Up @@ -3,8 +3,8 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

/** Functions for measurement of CPU cycles */
#ifndef H_PERF
#define H_PERF
#ifndef BITCOIN_BENCH_PERF_H
#define BITCOIN_BENCH_PERF_H

#include <stdint.h>

Expand Down Expand Up @@ -34,4 +34,4 @@ uint64_t perf_cpucycles(void);
void perf_init(void);
void perf_fini(void);

#endif // H_PERF
#endif // BITCOIN_BENCH_PERF_H
6 changes: 3 additions & 3 deletions src/blockencodings.h
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_BLOCK_ENCODINGS_H
#define BITCOIN_BLOCK_ENCODINGS_H
#ifndef BITCOIN_BLOCKENCODINGS_H
#define BITCOIN_BLOCKENCODINGS_H

#include <primitives/block.h>

Expand Down Expand Up @@ -206,4 +206,4 @@ class PartiallyDownloadedBlock {
ReadStatus FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing);
};

#endif
#endif // BITCOIN_BLOCKENCODINGS_H
6 changes: 3 additions & 3 deletions src/checkpointsync.h
@@ -1,8 +1,8 @@
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under conditional MIT/X11 open source software license
// see the accompanying file COPYING
#ifndef PPCOIN_CHECKPOINTSYNC_H
#define PPCOIN_CHECKPOINTSYNC_H
#ifndef PEERCOIN_CHECKPOINTSYNC_H
#define PEERCOIN_CHECKPOINTSYNC_H

#define CHECKPOINT_MAX_SPAN (60 * 60 * 4) // max 4 hours before latest block

Expand Down Expand Up @@ -126,4 +126,4 @@ class CSyncCheckpoint : public CUnsignedSyncCheckpoint
bool ProcessSyncCheckpoint(CNode* pfrom);
};

#endif
#endif // PEERCOIN_CHECKPOINTSYNC_H
6 changes: 3 additions & 3 deletions src/consensus/merkle.h
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_MERKLE
#define BITCOIN_MERKLE
#ifndef BITCOIN_CONSENSUS_MERKLE_H
#define BITCOIN_CONSENSUS_MERKLE_H

#include <stdint.h>
#include <vector>
Expand Down Expand Up @@ -35,4 +35,4 @@ uint256 BlockWitnessMerkleRoot(const CBlock& block, bool* mutated = nullptr);
*/
std::vector<uint256> BlockMerkleBranch(const CBlock& block, uint32_t position);

#endif
#endif // BITCOIN_CONSENSUS_MERKLE_H
6 changes: 3 additions & 3 deletions src/kernel.h
@@ -1,8 +1,8 @@
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PPCOIN_KERNEL_H
#define PPCOIN_KERNEL_H
#ifndef PEERCOIN_KERNEL_H
#define PEERCOIN_KERNEL_H

#include <primitives/transaction.h> // CTransaction(Ref)

Expand Down Expand Up @@ -59,4 +59,4 @@ bool IsSuperMajority(int minVersion, const CBlockIndex* pstart, unsigned int nRe
// peercoin: entropy bit for stake modifier if chosen by modifier
unsigned int GetStakeEntropyBit(const CBlock& block);

#endif // PPCOIN_KERNEL_H
#endif // PEERCOIN_KERNEL_H
9 changes: 6 additions & 3 deletions src/kernelrecord.h
@@ -1,5 +1,8 @@
#ifndef KERNELRECORD_H
#define KERNELRECORD_H
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PEERCOIN_KERNELRECORD_H
#define PEERCOIN_KERNELRECORD_H

#include <uint256.h>

Expand Down Expand Up @@ -49,4 +52,4 @@ class KernelRecord
double prevProbability;
};

#endif // KERNELRECORD_H
#endif // PEERCOIN_KERNELRECORD_H
9 changes: 6 additions & 3 deletions src/qt/mintingfilterproxy.h
@@ -1,5 +1,8 @@
#ifndef MINTINGFILTERPROXY_H
#define MINTINGFILTERPROXY_H
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PEERCOIN_QT_MINTINGFILTERPROXY_H
#define PEERCOIN_QT_MINTINGFILTERPROXY_H

#include <QSortFilterProxyModel>

Expand All @@ -10,4 +13,4 @@ class MintingFilterProxy : public QSortFilterProxyModel
explicit MintingFilterProxy(QObject *parent = 0);
};

#endif // MINTINGFILTERPROXY_H
#endif // PEERCOIN_QT_MINTINGFILTERPROXY_H
9 changes: 6 additions & 3 deletions src/qt/mintingtablemodel.h
@@ -1,5 +1,8 @@
#ifndef MINTINGTABLEMODEL_H
#define MINTINGTABLEMODEL_H
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PEERCOIN_QT_MINTINGTABLEMODEL_H
#define PEERCOIN_QT_MINTINGTABLEMODEL_H

#include <QAbstractTableModel>
#include <QStringList>
Expand Down Expand Up @@ -66,4 +69,4 @@ public Q_SLOTS:
friend class MintingTablePriv;
};

#endif // MINTINGTABLEMODEL_H
#endif // PEERCOIN_QT_MINTINGTABLEMODEL_H
9 changes: 6 additions & 3 deletions src/qt/mintingview.h
@@ -1,5 +1,8 @@
#ifndef MINTINGVIEW_H
#define MINTINGVIEW_H
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PEERCOIN_QT_MINTINGVIEW_H
#define PEERCOIN_QT_MINTINGVIEW_H

#include <QWidget>
#include <QComboBox>
Expand Down Expand Up @@ -47,4 +50,4 @@ public Q_SLOTS:
void chooseMintingInterval(int idx);
};

#endif // MINTINGVIEW_H
#endif // PEERCOIN_QT_MINTINGVIEW_H
9 changes: 6 additions & 3 deletions src/qt/multisigaddressentry.h
@@ -1,5 +1,8 @@
#ifndef MULTISIGADDRESSENTRY_H
#define MULTISIGADDRESSENTRY_H
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PEERCOIN_QT_MULTISIGADDRESSENTRY_H
#define PEERCOIN_QT_MULTISIGADDRESSENTRY_H

#include <QFrame>

Expand Down Expand Up @@ -42,4 +45,4 @@ class MultisigAddressEntry : public QFrame
void on_addressBookButton_clicked();
};

#endif // MULTISIGADDRESSENTRY_H
#endif // PEERCOIN_QT_MULTISIGADDRESSENTRY_H
9 changes: 6 additions & 3 deletions src/qt/multisigdialog.h
@@ -1,5 +1,8 @@
#ifndef MULTISIGDIALOG_H
#define MULTISIGDIALOG_H
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PEERCOIN_QT_MULTISIGDIALOG_H
#define PEERCOIN_QT_MULTISIGDIALOG_H

//#include "multisigaddressentry.h"
//#include "multisiginputentry.h"
Expand Down Expand Up @@ -60,4 +63,4 @@ class MultisigDialog : public QDialog
void updateAmounts();
};

#endif // MULTISIGDIALOG_H
#endif // PEERCOIN_QT_MULTISIGDIALOG_H
9 changes: 6 additions & 3 deletions src/qt/multisiginputentry.h
@@ -1,5 +1,8 @@
#ifndef MULTISIGINPUTENTRY_H
#define MULTISIGINPUTENTRY_H
// Copyright (c) 2012-2019 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PEERCOIN_QT_MULTISIGINPUTENTRY_H
#define PEERCOIN_QT_MULTISIGINPUTENTRY_H

#include <uint256.h>

Expand Down Expand Up @@ -49,4 +52,4 @@ class MultisigInputEntry : public QFrame
void on_pasteRedeemScriptButton_clicked();
};

#endif // MULTISIGINPUTENTRY_H
#endif // PEERCOIN_QT_MULTISIGINPUTENTRY_H
6 changes: 6 additions & 0 deletions src/qt/test/paymentrequestdata.h
Expand Up @@ -2,6 +2,9 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_QT_TEST_PAYMENTREQUESTDATA_H
#define BITCOIN_QT_TEST_PAYMENTREQUESTDATA_H

//
// Data for paymentservertests.cpp
//
Expand Down Expand Up @@ -458,3 +461,6 @@ iEBFUrBDJZU+UEezGwr7/zoECjo5ZY3PmtZcM2sILNjyweJF6XVzGqTxUw6pN6sW\
XR2T3Gy2LzRvhVA25QgGqpz0/juS2BtmNbsZPkN9gMMwKimgzc+PuCzmEKwPK9cQ\
YQ==\
";

#endif // BITCOIN_QT_TEST_PAYMENTREQUESTDATA_H

6 changes: 3 additions & 3 deletions src/qt/test/rpcnestedtests.h
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_QT_TEST_RPC_NESTED_TESTS_H
#define BITCOIN_QT_TEST_RPC_NESTED_TESTS_H
#ifndef BITCOIN_QT_TEST_RPCNESTEDTESTS_H
#define BITCOIN_QT_TEST_RPCNESTEDTESTS_H

#include <QObject>
#include <QTest>
Expand All @@ -19,4 +19,4 @@ class RPCNestedTests : public QObject
void rpcNestedTests();
};

#endif // BITCOIN_QT_TEST_RPC_NESTED_TESTS_H
#endif // BITCOIN_QT_TEST_RPCNESTEDTESTS_H
6 changes: 3 additions & 3 deletions src/rpc/client.h
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_RPCCLIENT_H
#define BITCOIN_RPCCLIENT_H
#ifndef BITCOIN_RPC_CLIENT_H
#define BITCOIN_RPC_CLIENT_H

#include <univalue.h>

Expand All @@ -19,4 +19,4 @@ UniValue RPCConvertNamedValues(const std::string& strMethod, const std::vector<s
*/
UniValue ParseNonRFCJSONValue(const std::string& strVal);

#endif // BITCOIN_RPCCLIENT_H
#endif // BITCOIN_RPC_CLIENT_H
6 changes: 3 additions & 3 deletions src/rpc/protocol.h
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_RPCPROTOCOL_H
#define BITCOIN_RPCPROTOCOL_H
#ifndef BITCOIN_RPC_PROTOCOL_H
#define BITCOIN_RPC_PROTOCOL_H

#include <fs.h>

Expand Down Expand Up @@ -104,4 +104,4 @@ void DeleteAuthCookie();
/** Parse JSON-RPC batch reply into a vector */
std::vector<UniValue> JSONRPCProcessBatchReply(const UniValue &in, size_t num);

#endif // BITCOIN_RPCPROTOCOL_H
#endif // BITCOIN_RPC_PROTOCOL_H
4 changes: 2 additions & 2 deletions src/rpc/register.h
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_RPCREGISTER_H
#define BITCOIN_RPCREGISTER_H
#ifndef BITCOIN_RPC_REGISTER_H
#define BITCOIN_RPC_REGISTER_H

/** These are in one header file to avoid creating tons of single-function
* headers for everything under src/rpc/ */
Expand Down
6 changes: 3 additions & 3 deletions src/rpc/server.h
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_RPCSERVER_H
#define BITCOIN_RPCSERVER_H
#ifndef BITCOIN_RPC_SERVER_H
#define BITCOIN_RPC_SERVER_H

#include <amount.h>
#include <rpc/protocol.h>
Expand Down Expand Up @@ -196,4 +196,4 @@ std::string JSONRPCExecBatch(const JSONRPCRequest& jreq, const UniValue& vReq);
// Retrieves any serialization flags requested in command line argument
int RPCSerializationFlags();

#endif // BITCOIN_RPCSERVER_H
#endif // BITCOIN_RPC_SERVER_H
6 changes: 3 additions & 3 deletions src/script/bitcoinconsensus.h
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_BITCOINCONSENSUS_H
#define BITCOIN_BITCOINCONSENSUS_H
#ifndef BITCOIN_SCRIPT_BITCOINCONSENSUS_H
#define BITCOIN_SCRIPT_BITCOINCONSENSUS_H

#include <stdint.h>

Expand Down Expand Up @@ -80,4 +80,4 @@ EXPORT_SYMBOL unsigned int bitcoinconsensus_version();

#undef EXPORT_SYMBOL

#endif // BITCOIN_BITCOINCONSENSUS_H
#endif // BITCOIN_SCRIPT_BITCOINCONSENSUS_H
6 changes: 3 additions & 3 deletions src/wallet/test/wallet_test_fixture.h
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_WALLET_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_FIXTURE_H
#ifndef BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H

#include <test/test_bitcoin.h>

Expand All @@ -20,5 +20,5 @@ struct WalletTestingSetup: public TestingSetup {
std::unique_ptr<CWallet> pwalletMain;
};

#endif
#endif // BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H

6 changes: 3 additions & 3 deletions src/wallet/walletutil.h
Expand Up @@ -2,13 +2,13 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_WALLET_UTIL_H
#define BITCOIN_WALLET_UTIL_H
#ifndef BITCOIN_WALLET_WALLETUTIL_H
#define BITCOIN_WALLET_WALLETUTIL_H

#include <chainparamsbase.h>
#include <util.h>

//! Get the path of the wallet directory.
fs::path GetWalletDir();

#endif // BITCOIN_WALLET_UTIL_H
#endif // BITCOIN_WALLET_WALLETUTIL_H

0 comments on commit 96545e8

Please sign in to comment.