Skip to content

Commit

Permalink
Remove old SLP/NFT shit
Browse files Browse the repository at this point in the history
  • Loading branch information
pokkst committed Oct 28, 2021
1 parent 3540015 commit 38f1df3
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions wallettemplate/src/main/java/wallettemplate/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,34 +156,6 @@ protected void onSetupCompleted() {
.setUserAgent(APP_NAME, "1.0");
if (seed != null)
bitcoin.restoreWalletFromSeed(seed);

new Thread() {
@Override
public void run() {
while(true) {
if(bitcoin.isRunning()) {
//System.out.println(bitcoin.wallet().getRecentTransactions(0, false));
bitcoin.recalculateSlpUtxos();
bitcoin.recalculateNftUtxos();

System.out.println("SLPs::");
for(SlpTokenBalance slpTokenBalance : bitcoin.getSlpBalances()) {
System.out.println(bitcoin.getSlpToken(slpTokenBalance.getTokenId()).toString() + ", " + slpTokenBalance.getBalance());
}

System.out.println("NFTs::");
for(SlpTokenBalance nftSlpTokenBalance : bitcoin.getNftBalances()) {
System.out.println(bitcoin.getNft(nftSlpTokenBalance.getTokenId()).toString() + ", " + nftSlpTokenBalance.getBalance());
}
try {
Thread.sleep(5000L);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}
}.start();
}

private Node stopClickPane = new Pane();
Expand Down

0 comments on commit 38f1df3

Please sign in to comment.