diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2025-05-25 17:27:54 +0200 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2025-05-25 17:27:54 +0200 |
| commit | f415fc58d69ad5ba53b7d613c21fc7d6d8fc219d (patch) | |
| tree | 87442a6408323c67c61cdbfb56920c0dcb686259 | |
| parent | a27fbcb24d91143715ed930a05aaa4d853fba1f2 (diff) | |
feat: improve scanning speedcyjan-fast-sync
| -rw-r--r-- | impls/monero.dart/lib/src/checksum_monero.dart | 2 | ||||
| -rw-r--r-- | impls/monero.ts/checksum_monero.ts | 2 | ||||
| -rw-r--r-- | monero_libwallet2_api_c/src/main/cpp/monero_checksum.h | 2 | ||||
| -rw-r--r-- | patches/monero/0018-9936.patch | 22 |
4 files changed, 25 insertions, 3 deletions
diff --git a/impls/monero.dart/lib/src/checksum_monero.dart b/impls/monero.dart/lib/src/checksum_monero.dart index fdbfbaa..4d0e459 100644 --- a/impls/monero.dart/lib/src/checksum_monero.dart +++ b/impls/monero.dart/lib/src/checksum_monero.dart @@ -1,4 +1,4 @@ // ignore_for_file: constant_identifier_names const String wallet2_api_c_h_sha256 = "91218f60e937753a606b1db899ee2ed66a1b02144eb2d79b950ce59804397f84"; const String wallet2_api_c_cpp_sha256 = "282128494f3419c128dff7ed67daadd9c2ad0600d10557e829df03d9bc1ad891-0232839913b13cf0ab0bb7ad25fff0c05f37d2fe"; -const String wallet2_api_c_exp_sha256 = "d0f95f1f3bc49f1f59fe4eb0b61826128d7d3bb75405d5a01a252d02db03097d"; +const String wallet2_api_c_exp_sha256 = "b2f2355242f9ad852ccf860a60a5c7a74054f9450ba1fbf9c0f42c58dbfdee9d"; diff --git a/impls/monero.ts/checksum_monero.ts b/impls/monero.ts/checksum_monero.ts index 7ed01a3..0d5549a 100644 --- a/impls/monero.ts/checksum_monero.ts +++ b/impls/monero.ts/checksum_monero.ts @@ -1,5 +1,5 @@ export const moneroChecksum = { wallet2_api_c_h_sha256: "91218f60e937753a606b1db899ee2ed66a1b02144eb2d79b950ce59804397f84", wallet2_api_c_cpp_sha256: "282128494f3419c128dff7ed67daadd9c2ad0600d10557e829df03d9bc1ad891-0232839913b13cf0ab0bb7ad25fff0c05f37d2fe", - wallet2_api_c_exp_sha256: "d0f95f1f3bc49f1f59fe4eb0b61826128d7d3bb75405d5a01a252d02db03097d", + wallet2_api_c_exp_sha256: "b2f2355242f9ad852ccf860a60a5c7a74054f9450ba1fbf9c0f42c58dbfdee9d", } diff --git a/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h b/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h index d3d7414..b4c250a 100644 --- a/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h +++ b/monero_libwallet2_api_c/src/main/cpp/monero_checksum.h @@ -2,5 +2,5 @@ #define MONEROC_CHECKSUMS const char * MONERO_wallet2_api_c_h_sha256 = "91218f60e937753a606b1db899ee2ed66a1b02144eb2d79b950ce59804397f84"; const char * MONERO_wallet2_api_c_cpp_sha256 = "282128494f3419c128dff7ed67daadd9c2ad0600d10557e829df03d9bc1ad891-0232839913b13cf0ab0bb7ad25fff0c05f37d2fe"; -const char * MONERO_wallet2_api_c_exp_sha256 = "d0f95f1f3bc49f1f59fe4eb0b61826128d7d3bb75405d5a01a252d02db03097d"; +const char * MONERO_wallet2_api_c_exp_sha256 = "b2f2355242f9ad852ccf860a60a5c7a74054f9450ba1fbf9c0f42c58dbfdee9d"; #endif diff --git a/patches/monero/0018-9936.patch b/patches/monero/0018-9936.patch new file mode 100644 index 0000000..0e97807 --- /dev/null +++ b/patches/monero/0018-9936.patch @@ -0,0 +1,22 @@ +From 0e9441f532606a6dd6bd6e63d6daf3fd672316b1 Mon Sep 17 00:00:00 2001 +From: j-berman <justinberman@protonmail.com> +Date: Fri, 16 May 2025 15:29:59 -0700 +Subject: [PATCH] wallet2: use IO tpool for pulling blocks from daemon + +--- + src/wallet/wallet2.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp +index dd0ed39bfcf..d57a9130618 100644 +--- a/src/wallet/wallet2.cpp ++++ b/src/wallet/wallet2.cpp +@@ -4017,7 +4017,7 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo + size_t try_count = 0; + crypto::hash last_tx_hash_id = m_transfers.size() ? m_transfers.back().m_txid : null_hash; + std::list<crypto::hash> short_chain_history; +- tools::threadpool& tpool = tools::threadpool::getInstanceForCompute(); ++ tools::threadpool& tpool = tools::threadpool::getInstanceForIO(); + tools::threadpool::waiter waiter(tpool); + uint64_t blocks_start_height; + std::vector<cryptonote::block_complete_entry> blocks; |
