From 6160a2db3dd173b0311f97797ad8418f94700242 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 29 Apr 2014 17:33:02 +0200 Subject: [PATCH] Wallet: expose saveNow/saveLater to subclasses. --- core/src/main/java/com/google/bitcoin/core/Wallet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/core/Wallet.java b/core/src/main/java/com/google/bitcoin/core/Wallet.java index db6c23cbefe..ab84d303988 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -456,14 +456,15 @@ public void shutdownAutosaveAndWait() { } } - private void saveLater() { + /** Requests an asynchronous save on a background thread */ + protected void saveLater() { WalletFiles files = vFileManager; if (files != null) files.saveLater(); } /** If auto saving is enabled, do an immediate sync write to disk ignoring any delays. */ - private void saveNow() { + protected void saveNow() { WalletFiles files = vFileManager; if (files != null) { try {