Interface WalletReorganizeEventListener

All Known Implementing Classes:
NativeWalletReorganizeEventListener

public interface WalletReorganizeEventListener

Implementors are called when the wallet is reorganized.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This is called when a block is received that triggers a block chain re-organization.
  • Method Details

    • onReorganize

      void onReorganize(Wallet wallet)

      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.