Hey!!

I have this issue:
I have sent some BTC to a spv wallet im creating, The onReceive Method is 
working good, also getDepthFuture method, if I check the TX on a block 
explorer I see is now mined and confirmed, but when I see the Log file of 
my wallet the transaction is still unconfirmed. 
When I try to reload the app, the Txs that are in the wallet are not yet 
confirmed, so what is the method to let my wallet know all these Txs are 
now confirmed.
Maybe I have to download the block header of the Tx then let my wallet know 
this is confirmed but Im a bit lost on how to achieve this.

public Bitcoin(Context activityContext) {
        this.activityContext = activityContext;
        parameters = testNet;
        walletDir = activityContext.getCacheDir();
        walletAppKit = new WalletAppKit(testNet, walletDir, "bitcoin_wallet"){

            @Override
            protected void onSetupCompleted() {
                super.onSetupCompleted();


                if (wallet().getImportedKeys().size() < 1) {
                    wallet().importKey(new ECKey());
                }

                wallet().getWalletTransactions().forEach(walletTransaction ->
                        checkDepth(walletTransaction.getTransaction()));

                walletAppKit.peerGroup().setMaxConnections(11);
                
walletAppKit.peerGroup().setBloomFilterFalsePositiveRate(0.00001);
                
walletAppKit.peerGroup().addConnectedEventListener(Bitcoin.this);
                
walletAppKit.peerGroup().setFastCatchupTimeSecs(walletAppKit.wallet().getEarliestKeyCreationTime());

                setupWalletListeners(wallet());
            }
        };
        walletAppKit.setDownloadListener(this);

        walletAppKit.setAutoSave(true);
        walletAppKit.setBlockingStartup(false);
        walletAppKit.setUserAgent("RocketWallet", "1.0");

        walletAppKit.startAsync();

    }


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bitcoinj+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to