Using bitcoinj, my server created a transaction and it was broadcasted on the blockchain. I can get its history using: walletAppKit.wallet().getTransaction(txHash)

It is in Pending state.

Then I stopped my server before the transaction get confirmed.

Then I started the server again, and I was still getting Pending status when calling walletAppKit.wallet().getTransaction(txHash), although the status is well confirmed on explorer like https://live.blockcypher.com/

I understand that when server was down, there was no more listener for change events on that wallet/transaction. But the question is how make my wallet aware again about the new change of my transaction status after my server restart?

(I am on TestNet by the way)

source

By pplny

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다