net.bither.bitherj.core.BlockChain Java Examples
The following examples show how to use
net.bither.bitherj.core.BlockChain.
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: BlockPanel.java From bither-desktop-java with Apache License 2.0 | 6 votes |
private void refreshBlock() { new Thread(new Runnable() { @Override public void run() { List<Block> temp = BlockChain.getInstance().getLimitBlocks(100); if (temp != null && temp.size() > 0) { blocks.clear(); blocks.addAll(temp); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { blockTableModel.fireTableDataChanged(); } }); } } }).start(); }
Example #2
Source File: BlockPanel.java From bither-desktop-java with Apache License 2.0 | 6 votes |
private void refreshBlock() { new Thread(new Runnable() { @Override public void run() { List<Block> temp = BlockChain.getInstance().getLimitBlocks(100); if (temp != null && temp.size() > 0) { blocks.clear(); blocks.addAll(temp); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { blockTableModel.fireTableDataChanged(); } }); } } }).start(); }
Example #3
Source File: BlockListFragment.java From bither-android with Apache License 2.0 | 4 votes |
public List<Block> getRecentBlocks(final int limit) { return BlockChain.getInstance().getLimitBlocks(limit); }