diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-01-28 13:55:49 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-01-28 13:55:50 +0200 |
commit | 4a0e4c7d706f33fb72fe809434676b1de7b4b4f7 (patch) | |
tree | 36fdd03f84ae78dbd217b5bd255bd86e33db1bcc /src/blockchain_utilities/blockchain_export.cpp | |
parent | Merge pull request #5008 (diff) | |
parent | Pruning (diff) | |
download | monero-4a0e4c7d706f33fb72fe809434676b1de7b4b4f7.tar.xz |
Merge pull request #4843
b750fb27 Pruning (moneromooo-monero)
Diffstat (limited to 'src/blockchain_utilities/blockchain_export.cpp')
-rw-r--r-- | src/blockchain_utilities/blockchain_export.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/blockchain_utilities/blockchain_export.cpp b/src/blockchain_utilities/blockchain_export.cpp index 5a49f3478..5c5bc7f69 100644 --- a/src/blockchain_utilities/blockchain_export.cpp +++ b/src/blockchain_utilities/blockchain_export.cpp @@ -177,6 +177,12 @@ int main(int argc, char* argv[]) } r = core_storage->init(db, opt_testnet ? cryptonote::TESTNET : opt_stagenet ? cryptonote::STAGENET : cryptonote::MAINNET); + if (core_storage->get_blockchain_pruning_seed()) + { + LOG_PRINT_L0("Blockchain is pruned, cannot export"); + return 1; + } + CHECK_AND_ASSERT_MES(r, 1, "Failed to initialize source blockchain storage"); LOG_PRINT_L0("Source blockchain storage initialized OK"); LOG_PRINT_L0("Exporting blockchain raw data..."); |