Skip to content

[DNM] feat: faster scanning on remote nodes for xmr #2286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
13 changes: 11 additions & 2 deletions cw_monero/lib/api/wallet_manager.dart
Original file line number Diff line number Diff line change
@@ -418,11 +418,20 @@ Future<void> loadWallet(
}
}

void setupBackgroundSync(String password, Wallet2Wallet wallet) {
Future<void> setupBackgroundSync(String password, Wallet2Wallet wallet) async {
if (isViewOnlyBySpendKey(wallet)) {
return;
}
wallet.setupBackgroundSync(backgroundSyncType: 2, walletPassword: password, backgroundCachePassword: '');
final wptrAddr = wallet.ffiAddress();
await Isolate.run(() {
monero.Wallet_setupBackgroundSync(
Pointer.fromAddress(wptrAddr),
backgroundSyncType: 2,
walletPassword: password,
backgroundCachePassword: '',
);
});
// wallet.setupBackgroundSync(backgroundSyncType: 2, walletPassword: password, backgroundCachePassword: '');
if (wallet.status() != 0) {
// We simply ignore the error.
printV("setupBackgroundSync: ${wallet.errorString()}");
2 changes: 1 addition & 1 deletion cw_zano/pubspec.lock
Original file line number Diff line number Diff line change
@@ -842,4 +842,4 @@ packages:
version: "3.1.3"
sdks:
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.27.4"
flutter: ">=3.24.0"
2 changes: 1 addition & 1 deletion scripts/prepare_moneroc.sh
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ if [[ ! -d "monero_c/.git" ]];
then
git clone https://github.com/mrcyjanek/monero_c --branch master monero_c
cd monero_c
git checkout b335585a7fb94b315eb52bd88f2da6d3489fa508
git checkout f415fc58d69ad5ba53b7d613c21fc7d6d8fc219d
git reset --hard
git submodule update --init --force --recursive
./apply_patches.sh monero