org.bitcoinj.core.listeners.NewBestBlockListener Java Examples
The following examples show how to use
org.bitcoinj.core.listeners.NewBestBlockListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WalletService.java From bisq-core with GNU Affero General Public License v3.0 | 5 votes |
@SuppressWarnings("deprecation") public void addNewBestBlockListener(NewBestBlockListener listener) { //noinspection deprecation final BlockChain chain = walletsSetup.getChain(); if (isWalletReady() && chain != null) chain.addNewBestBlockListener(listener); }
Example #2
Source File: WalletService.java From bisq-core with GNU Affero General Public License v3.0 | 5 votes |
@SuppressWarnings("deprecation") public void removeNewBestBlockListener(NewBestBlockListener listener) { //noinspection deprecation final BlockChain chain = walletsSetup.getChain(); if (isWalletReady() && chain != null) chain.removeNewBestBlockListener(listener); }
Example #3
Source File: WalletService.java From bisq with GNU Affero General Public License v3.0 | 5 votes |
@SuppressWarnings("deprecation") public void addNewBestBlockListener(NewBestBlockListener listener) { //noinspection deprecation final BlockChain chain = walletsSetup.getChain(); if (isWalletReady() && chain != null) chain.addNewBestBlockListener(listener); }
Example #4
Source File: WalletService.java From bisq with GNU Affero General Public License v3.0 | 5 votes |
@SuppressWarnings("deprecation") public void removeNewBestBlockListener(NewBestBlockListener listener) { //noinspection deprecation final BlockChain chain = walletsSetup.getChain(); if (isWalletReady() && chain != null) chain.removeNewBestBlockListener(listener); }