Package org.bitcoinj.wallet.listeners
Interface WalletReorganizeEventListener
- All Known Implementing Classes:
NativeWalletReorganizeEventListener
public interface WalletReorganizeEventListener
Implementors are called when the wallet is reorganized.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onReorganize
(Wallet wallet) This is called when a block is received that triggers a block chain re-organization.
-
Method Details
-
onReorganize
This is called when a block is received that triggers a block chain re-organization.
A re-organize means that the consensus (chain) of the network has diverged and now changed from what we believed it was previously. Usually this won't matter because the new consensus will include all our old transactions assuming we are playing by the rules. However it's theoretically possible for our balance to change in arbitrary ways, most likely, we could lose some money we thought we had.
It is safe to use methods of wallet whilst inside this callback.
-