Wallet: Fix infinite recursion, causing StackOverflowError in deprecated version of Wallet.toString(boolean, boolean, boolean, AbstractBlockChain) method.

This commit is contained in:
Tomasz Ludek 2018-01-15 09:15:57 +01:00 committed by Andreas Schildbach
parent 0ede3c7367
commit 4d0f15dc2e

View file

@ -3226,14 +3226,14 @@ public class Wallet extends BaseTaggableObject
@Deprecated
public String toString(boolean includePrivateKeys, boolean includeTransactions, boolean includeExtensions,
@Nullable AbstractBlockChain chain) {
return toString(includePrivateKeys, includeTransactions, includeExtensions, chain);
return toString(includePrivateKeys, null, includeTransactions, includeExtensions, chain);
}
/**
* Formats the wallet as a human readable piece of text. Intended for debugging, the format is not meant to be
* stable or human readable.
* @param includePrivateKeys Whether raw private key data should be included.
* @param key for decrypting private key data for if the wallet is encrypted.
* @param aesKey for decrypting private key data for if the wallet is encrypted.
* @param includeTransactions Whether to print transaction data.
* @param includeExtensions Whether to print extension data.
* @param chain If set, will be used to estimate lock times for block timelocked transactions.