From 35b0a8581862c5e19138ebd2289a13f888ccd4a7 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Fri, 18 Feb 2022 18:42:06 +0000 Subject: [PATCH] Increased WALLET_KEY_LOOKAHEAD_INCREMENT_BITCOINJ to 50 --- src/main/java/org/qortal/crosschain/Bitcoiny.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/qortal/crosschain/Bitcoiny.java b/src/main/java/org/qortal/crosschain/Bitcoiny.java index 0d26c397..cce20c84 100644 --- a/src/main/java/org/qortal/crosschain/Bitcoiny.java +++ b/src/main/java/org/qortal/crosschain/Bitcoiny.java @@ -61,10 +61,10 @@ public abstract class Bitcoiny implements ForeignBlockchain { /** How many wallet keys to generate in each batch. */ private static final int WALLET_KEY_LOOKAHEAD_INCREMENT = 3; - /** How many wallet keys to generate in each batch when using bitcoinj as the data provider. + /** How many wallet keys to generate when using bitcoinj as the data provider. * We must use a higher value here since we are unable to request multiple batches of keys. - * Without this, the bitcoinj balance (or other data) can be missing transactions. */ - private static final int WALLET_KEY_LOOKAHEAD_INCREMENT_BITCOINJ = 20; + * Without this, the bitcoinj state can be missing transactions, causing errors such as "insufficient balance". */ + private static final int WALLET_KEY_LOOKAHEAD_INCREMENT_BITCOINJ = 50; /** Byte offset into raw block headers to block timestamp. */ private static final int TIMESTAMP_OFFSET = 4 + 32 + 32;