Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ LIBSAPLING_H = \
sapling/sapling_core_write.h \
sapling/sapling_util.h \
sapling/prf.h \
sapling/noteencryption.hpp \
sapling/address.hpp \
sapling/note.hpp \
sapling/noteencryption.h \
sapling/address.h \
sapling/note.h \
sapling/zip32.h \
sapling/saplingscriptpubkeyman.h \
sapling/incrementalmerkletree.hpp \
sapling/proof.hpp \
sapling/incrementalmerkletree.h \
sapling/proof.h \
sapling/sapling_transaction.h \
sapling/transaction_builder.h \
sapling/sapling_operation.h
Expand Down
6 changes: 3 additions & 3 deletions src/coins.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#define BITCOIN_COINS_H

#include "compressor.h"
#include "consensus/consensus.h" // can be removed once policy/ established
#include "memusage.h"
#include "consensus/consensus.h" // can be removed once policy/ established
#include "sapling/incrementalmerkletree.h"
#include "script/standard.h"
#include "sapling/incrementalmerkletree.hpp"
#include "serialize.h"
#include "uint256.h"

Expand Down Expand Up @@ -277,7 +277,7 @@ class CCoinsViewCache : public CCoinsViewBacked
protected:
/**
* Make mutable so that we can "fill the cache" even from Get-methods
* declared as "const".
* declared as "const".
*/
mutable uint256 hashBlock;
mutable CCoinsMap cacheCoins;
Expand Down
2 changes: 1 addition & 1 deletion src/keystore.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "key.h"
#include "pubkey.h"
#include "sapling/address.hpp"
#include "sapling/address.h"
#include "sapling/zip32.h"
#include "sync.h"

Expand Down
2 changes: 1 addition & 1 deletion src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include "uint256.h"
#include "utilmoneystr.h"
#ifdef ENABLE_WALLET
#include "sapling/address.h"
#include "sapling/key_io_sapling.h"
#include "sapling/address.hpp"
#include "wallet/wallet.h"
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/sapling/address.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "sapling/address.hpp"
#include "sapling/noteencryption.hpp"
#include "sapling/address.h"
#include "sapling/noteencryption.h"
#include "sapling/prf.h"
#include "sapling/sapling_util.h"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sapling/incrementalmerkletree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

#include <stdexcept>

#include "sapling/incrementalmerkletree.hpp"
#include "crypto/sha256.h"
#include "sapling/incrementalmerkletree.h"
#include <librustzcash.h>

namespace libzcash {
Expand Down
2 changes: 1 addition & 1 deletion src/sapling/note.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sapling/note.hpp"
#include "sapling/note.h"

#include "sapling/prf.h"
#include "sapling/sapling_util.h"
Expand Down
6 changes: 3 additions & 3 deletions src/sapling/note.hpp → src/sapling/note.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef ZC_NOTE_H_
#define ZC_NOTE_H_

#include "uint256.h"
#include "sapling/address.h"
#include "sapling/noteencryption.h"
#include "sapling/sapling.h"
#include "sapling/address.hpp"
#include "sapling/noteencryption.hpp"
#include "uint256.h"

#include <array>
#include <boost/optional.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/sapling/noteencryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "sapling/noteencryption.hpp"
#include "sapling/noteencryption.h"

#include "sapling/prf.h"
#include "sapling/sapling_util.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ See the Zcash protocol specification for more information.

#include "uint256.h"

#include "sapling/address.h"
#include "sapling/sapling.h"
#include "sapling/address.hpp"

#include <array>

Expand Down
2 changes: 1 addition & 1 deletion src/sapling/proof.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sapling/proof.hpp"
#include "sapling/proof.h"

namespace libzcash {

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/sapling/sapling_transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include "uint256.h"
#include "consensus/consensus.h"

#include "sapling/noteencryption.hpp"
#include "sapling/noteencryption.h"
#include "sapling/sapling.h"
#include "sapling/proof.hpp"
#include "sapling/proof.h"

#include <boost/variant.hpp>

Expand Down
4 changes: 2 additions & 2 deletions src/sapling/saplingscriptpubkeyman.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#define PIVX_SAPLINGSCRIPTPUBKEYMAN_H

#include "consensus/consensus.h"
#include "sapling/note.hpp"
#include "sapling/note.h"
#include "wallet/hdchain.h"
#include "wallet/wallet.h"
#include "wallet/walletdb.h"
#include "sapling/incrementalmerkletree.hpp"
#include "sapling/incrementalmerkletree.h"

//! Size of witness cache
// Should be large enough that we can expect not to reorg beyond our cache
Expand Down
8 changes: 4 additions & 4 deletions src/sapling/transaction_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include "script/script.h"
#include "script/standard.h"
#include "uint256.h"
#include "sapling/address.hpp"
#include "sapling/incrementalmerkletree.hpp"
#include "sapling/note.hpp"
#include "sapling/noteencryption.hpp"
#include "sapling/address.h"
#include "sapling/incrementalmerkletree.h"
#include "sapling/note.h"
#include "sapling/noteencryption.h"

struct SpendDescriptionInfo {
libzcash::SaplingExpandedSpendingKey expsk;
Expand Down
2 changes: 1 addition & 1 deletion src/sapling/zip32.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "blob_uint256.h"
#include "key.h"
#include "uint256.h"
#include "sapling/address.hpp"
#include "sapling/address.h"

#include <boost/optional.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/test/coins_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "utilstrencodings.h"
#include "random.h"

#include "sapling/incrementalmerkletree.hpp"
#include "sapling/incrementalmerkletree.h"

#include <vector>
#include <map>
Expand Down
2 changes: 1 addition & 1 deletion src/test/librust/merkletree_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "serialize.h"
#include "streams.h"

#include "sapling/incrementalmerkletree.hpp"
#include "sapling/incrementalmerkletree.h"
#include "sapling/sapling_util.h"

#include "json_test_vectors.h"
Expand Down
8 changes: 4 additions & 4 deletions src/test/librust/noteencryption_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
#include <array>
#include <stdexcept>

#include "sapling/address.hpp"
#include "sapling/note.hpp"
#include "sapling/noteencryption.hpp"
#include "crypto/sha256.h"
#include "sapling/address.h"
#include "sapling/note.h"
#include "sapling/noteencryption.h"
#include "sapling/prf.h"
#include "sapling/sapling_util.h"
#include "crypto/sha256.h"

#include <boost/test/unit_test.hpp>
#include <librustzcash.h>
Expand Down
4 changes: 3 additions & 1 deletion src/test/librust/sapling_key_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

#include "test/test_pivx.h"

#include "sapling/address.hpp"
#include "sapling/address.h"
#include "sapling/key_io_sapling.h"

#include <string>
#include <vector>

#include <boost/test/unit_test.hpp>


Expand Down
3 changes: 2 additions & 1 deletion src/test/librust/sapling_keystore_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
#include "test/test_pivx.h"
#include "test/librust/utiltest.h"

#include "sapling/address.hpp"
#include "sapling/address.h"
#include "sapling/sapling_util.h"

#include <boost/test/unit_test.hpp>
#include <univalue.h>

Expand Down
5 changes: 3 additions & 2 deletions src/test/librust/sapling_note_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@

#include "test/test_pivx.h"

#include "sapling/address.hpp"
#include "sapling/note.hpp"
#include "sapling/address.h"
#include "sapling/note.h"
#include "sapling/sapling_util.h"

#include "amount.h"
#include "random.h"
#include <librustzcash.h>

#include <array>

#include <boost/test/unit_test.hpp>

BOOST_FIXTURE_TEST_SUITE(sapling_note_tests, BasicTestingSetup)
Expand Down
2 changes: 1 addition & 1 deletion src/test/librust/sapling_rpc_wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "wallet/wallet.h"

#include "sapling/key_io_sapling.h"
#include "sapling/address.hpp"
#include "sapling/address.h"
#include "sapling/sapling_operation.h"

#include <unordered_set>
Expand Down
4 changes: 2 additions & 2 deletions src/test/librust/sapling_wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include "test/librust/utiltest.h"
#include "wallet/wallet.h"
#include "consensus/merkle.h"
#include "sapling/note.hpp"
#include "sapling/noteencryption.hpp"
#include "sapling/note.h"
#include "sapling/noteencryption.h"

#include <boost/filesystem.hpp>

Expand Down
8 changes: 4 additions & 4 deletions src/test/librust/utiltest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#ifndef PIVX_UTIL_TEST_H
#define PIVX_UTIL_TEST_H

#include "sapling/address.hpp"
#include "sapling/incrementalmerkletree.hpp"
#include "sapling/note.hpp"
#include "sapling/noteencryption.hpp"
#include "sapling/address.h"
#include "sapling/incrementalmerkletree.h"
#include "sapling/note.h"
#include "sapling/noteencryption.h"
#include "wallet/wallet.h"

struct TestSaplingNote {
Expand Down
2 changes: 1 addition & 1 deletion src/test/librust/wallet_zkeys_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "wallet/test/wallet_test_fixture.h"

#include "sapling/sapling_util.h"
#include "sapling/address.hpp"
#include "sapling/address.h"
#include "wallet/wallet.h"
#include "wallet/walletdb.h"
#include "util.h"
Expand Down
2 changes: 1 addition & 1 deletion src/validationinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define BITCOIN_VALIDATIONINTERFACE_H

#include "optional.h"
#include "sapling/incrementalmerkletree.hpp"
#include "sapling/incrementalmerkletree.h"

#include <boost/signals2/signal.hpp>

Expand Down
4 changes: 2 additions & 2 deletions src/wallet/test/wallet_shielded_balances_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "consensus/merkle.h"
#include "primitives/block.h"
#include "random.h"
#include "sapling/note.hpp"
#include "sapling/noteencryption.hpp"
#include "sapling/note.h"
#include "sapling/noteencryption.h"
#include "sapling/transaction_builder.h"
#include "test/librust/utiltest.h"
#include "wallet/wallet.h"
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "policy/feerate.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "sapling/address.hpp"
#include "sapling/address.h"
#include "guiinterface.h"
#include "util.h"
#include "util/memory.h"
Expand Down