public class NativeWalletReorganizeEventListener extends java.lang.Object implements WalletReorganizeEventListener
Modifier and Type | Field and Description |
---|---|
long |
ptr |
Constructor and Description |
---|
NativeWalletReorganizeEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
onReorganize(Wallet wallet)
This is called when a block is received that triggers a block chain re-organization.
|
public void onReorganize(Wallet wallet)
WalletReorganizeEventListener
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.
onReorganize
in interface WalletReorganizeEventListener