kit.setAutoSave(false)the .wallet file is still saved.
bitcoin.kit.wallet().encrypt(keyCrypter, key);Is it possible ?
bitcoin.kit.wallet().saveToFile(bitcoin.getWalletFile());
You received this message because you are subscribed to a topic in the Google Groups "bitcoinj" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bitcoinj/eCRiK0RBdjw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bitcoinj+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stanisław Barański
public class BitcoinJTest {
private File rootDirectory = new File(".");
private NetworkParameters params = TestNet3Params.get();
private String walletFileName = "RaspberryWallet_" + params.getPaymentProtocolId();
@Test
void testWalletAppKit() {
File walletFile = getWalletFile();
if (walletFile.exists()) walletFile.delete();
assertFalse(walletFile.exists());
WalletAppKit kit = new WalletAppKit(params, rootDirectory, walletFileName) {
@Override
protected void onSetupCompleted() {
Logger.info("Bitcoin setup complete");
assertFalse(walletFile.exists()); //AssertionFailedError
}
};
kit.setAutoSave(false);
kit.startAsync().awaitRunning();
}
public File getWalletFile() {
return new File(rootDirectory, walletFileName + ".wallet");
}
}
Exception in thread " STARTING" org.opentest4j.AssertionFailedError: expected: <false> but was: <true>
at io.raspberrywallet.manager.bitcoin.BitcoinJTest$1.onSetupCompleted(BitcoinJTest.java:28)
To unsubscribe from this group and all its topics, send an email to bitcoinj+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> <mailto:bitcoinj%252Bunsubscribe@googlegroups.com>>
> > > <mailto:bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj%2Bunsu...@googlegroups.com>
> > <mailto:bitcoinj%2Bunsu...@googlegroups.com
> <mailto:bitcoinj%252Bunsubscribe@googlegroups.com>>>.
> > > For more options, visit https://groups.google.com/d/optout.
> >
> >
> > --
> > You received this message because you are subscribed to a topic in
> > the Google Groups "bitcoinj" group.
> > To unsubscribe from this topic, visit
> >
> https://groups.google.com/d/topic/bitcoinj/eCRiK0RBdjw/unsubscribe.
> > To unsubscribe from this group and all its topics, send an
> email to
> > bitcoinj+u...@googlegroups.com
> <mailto:bitcoinj%2Bunsu...@googlegroups.com>
> > <mailto:bitcoinj%2Bunsu...@googlegroups.com
> <mailto:bitcoinj%252Bunsubscribe@googlegroups.com>>.