From a5253e2fb4ca06e02209dc41c3bd9528d20bab57 Mon Sep 17 00:00:00 2001 From: wowario Date: Tue, 9 Oct 2018 15:30:06 +0300 Subject: [PATCH 01/54] update checkpoints --- src/blocks/checkpoints.dat | Bin 6340 -> 6820 bytes src/checkpoints/checkpoints.cpp | 5 ++++- src/cryptonote_core/blockchain.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/blocks/checkpoints.dat b/src/blocks/checkpoints.dat index 200a572dd78864b44abc3c3422edea4f120a47ed..fce6c1d4d2ad26993cf781f68309b521643ee9b3 100644 GIT binary patch delta 494 zcmVz*AeFZ?t-47>0Uo=V-+{01 zc9ySUie76^6Q=Ft{H5m$^)u@htT!@bFE#f}?3x1V^ujZH9TTrqRtOsqx<*nn&1C(Y zCX{hT-gYDfV1R{tLjBj>Qp5t%kUVa3JTO z9(hXhy+k|jD`m1<5`Uef4b}JI-r~KC@NzXL-KB>s{|^&QQENeZWPE?gw^DU_peqxsFC#6;^U2#RAbow3qj*qeyW*Dcb(FQ zCooy=>??<|M1r{1AxD{r|AlB1^jQeWz}{&oGdZ4|=O-6=cU`!fdm=2@Y9y6im93(v kWh5FxKqgMz7mEpwI&L72je;Vw6*|YYHD{ECDN4yvW-ovGRR910 delta 10 RcmZ2tdc=_N*ha>~5&#$v1S0?d diff --git a/src/checkpoints/checkpoints.cpp b/src/checkpoints/checkpoints.cpp index 16fa39384..1fb98f0a3 100755 --- a/src/checkpoints/checkpoints.cpp +++ b/src/checkpoints/checkpoints.cpp @@ -185,7 +185,10 @@ namespace cryptonote ADD_CHECKPOINT(20000, "52cc7edcb49eb02f28a653b824089a726f4050eb210263ee6f4180d388a1e5cc"); ADD_CHECKPOINT(30000, "d22fde5dd240ade16d3250eb0aa5d1c16dc7cb51c20484e05eb274911032b3fa"); ADD_CHECKPOINT(40000, "aee0d642322542ba069cb1c58ab2acd3560f108d4682c3dc3cb15a54d442d91f"); - ADD_CHECKPOINT(50000, "5286ac2a0f39b3aefcba363cd71f2760bd1e0d763cbc81026ebdc3f80a86541f"); + ADD_CHECKPOINT(50000, "5286ac2a0f39b3aefcba363cd71f2760bd1e0d763cbc81026ebdc3f80a86541f"); + ADD_CHECKPOINT(53666, "3f43f56f66ef0c43cf2fd14d0d28fa2aae0ef8f40716773511345750770f1255"); //Hard fork to v9 + ADD_CHECKPOINT(54500, "8ed3078b389c2b44add007803d741b58d3fbed2e1ba4139bda702152d8773c9b"); + return true; } diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 08255d394..d762d3dfb 100755 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4441,7 +4441,7 @@ void Blockchain::cancel() } #if defined(PER_BLOCK_CHECKPOINT) -static const char expected_block_hashes_hash[] = "16cb7e839284c1910925f8d9f8a752f38ad908ae9deec7afdfbbc4a777f5ef2e"; +static const char expected_block_hashes_hash[] = "e8255f4188ddb613df2953d8ae2ed509223e432290368b0eef062f8c12da9f70"; void Blockchain::load_compiled_in_block_hashes() { const bool testnet = m_nettype == TESTNET; From cbf07f01ba19baf783886baa23e671da1468557c Mon Sep 17 00:00:00 2001 From: wowario Date: Wed, 17 Oct 2018 01:14:39 +0300 Subject: [PATCH 02/54] encourage use of subaddresses --- src/simplewallet/simplewallet.cpp | 98 +++++--------------- src/simplewallet/simplewallet.h | 3 +- src/wallet/api/wallet.cpp | 8 -- src/wallet/api/wallet.h | 1 - src/wallet/api/wallet2_api.h | 10 -- src/wallet/wallet2.cpp | 17 ++-- src/wallet/wallet2.h | 7 +- src/wallet/wallet_rpc_server.cpp | 63 ------------- src/wallet/wallet_rpc_server.h | 4 - src/wallet/wallet_rpc_server_commands_defs.h | 47 ---------- 10 files changed, 35 insertions(+), 223 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index bf76f3ffa..413277b11 100755 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1688,13 +1688,13 @@ bool simple_wallet::set_refresh_type(const std::vector &args/* = st return true; } -bool simple_wallet::set_confirm_missing_payment_id(const std::vector &args/* = std::vector()*/) +bool simple_wallet::set_confirm_subaddress(const std::vector &args/* = std::vector()*/) { const auto pwd_container = get_and_verify_password(); if (pwd_container) { parse_bool_and_use(args[1], [&](bool r) { - m_wallet->confirm_missing_payment_id(r); + m_wallet->confirm_subaddress(r); m_wallet->rewrite(m_wallet_file, pwd_container->password()); }); } @@ -1931,10 +1931,10 @@ bool simple_wallet::help(const std::vector &args/* = std::vector | all | [] | label