Java Code Examples for org.bitcoinj.wallet.BasicKeyChain#addEventListener()
The following examples show how to use
org.bitcoinj.wallet.BasicKeyChain#addEventListener() .
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: BasicKeyChainTest.java From bcm-android with GNU General Public License v3.0 | 5 votes |
@Before public void setup() { chain = new BasicKeyChain(); onKeysAdded = new AtomicReference<>(); onKeysAddedRan = new AtomicBoolean(); chain.addEventListener(new AbstractKeyChainEventListener() { @Override public void onKeysAdded(List<ECKey> keys2) { onKeysAdded.set(keys2); onKeysAddedRan.set(true); } }, Threading.SAME_THREAD); }
Example 2
Source File: BasicKeyChainTest.java From green_android with GNU General Public License v3.0 | 5 votes |
@Before public void setup() { chain = new BasicKeyChain(); onKeysAdded = new AtomicReference<>(); onKeysAddedRan = new AtomicBoolean(); chain.addEventListener(new AbstractKeyChainEventListener() { @Override public void onKeysAdded(List<ECKey> keys2) { onKeysAdded.set(keys2); onKeysAddedRan.set(true); } }, Threading.SAME_THREAD); }
Example 3
Source File: BasicKeyChainTest.java From GreenBits with GNU General Public License v3.0 | 5 votes |
@Before public void setup() { chain = new BasicKeyChain(); onKeysAdded = new AtomicReference<>(); onKeysAddedRan = new AtomicBoolean(); chain.addEventListener(new AbstractKeyChainEventListener() { @Override public void onKeysAdded(List<ECKey> keys2) { onKeysAdded.set(keys2); onKeysAddedRan.set(true); } }, Threading.SAME_THREAD); }