Пример #1
0
  private void protobufSerializeWallet(@Nonnull final Wallet wallet) throws IOException {
    final long start = System.currentTimeMillis();

    wallet.saveToFile(walletFile);

    // make wallets world accessible in test mode
    if (Constants.TEST) Io.chmod(walletFile, 0777);

    log.debug(
        "wallet saved to: '"
            + walletFile
            + "', took "
            + (System.currentTimeMillis() - start)
            + "ms");
  }
Пример #2
0
 @Override
 public void onAfterAutoSave(final File file) {
   // make wallets world accessible in test mode
   if (Constants.TEST) Io.chmod(file, 0777);
 }