forked from DeepCoin/nxt-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNxt$5.java
More file actions
32 lines (28 loc) · 851 Bytes
/
Copy pathNxt$5.java
File metadata and controls
32 lines (28 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import org.json.simple.JSONObject;
class Nxt$5
implements Runnable
{
private final JSONObject getUnconfirmedTransactionsRequest;
Nxt$5(Nxt paramNxt)
{
this.getUnconfirmedTransactionsRequest = new JSONObject();
this.getUnconfirmedTransactionsRequest.put("requestType", "getUnconfirmedTransactions");
}
public void run()
{
try
{
Nxt.Peer peer = Nxt.Peer.getAnyPeer(1, true);
if (peer != null)
{
JSONObject response = peer.send(this.getUnconfirmedTransactionsRequest);
if (response != null) {
Nxt.Transaction.processTransactions(response, "unconfirmedTransactions");
}
}
}
catch (Exception e)
{
Nxt.logDebugMessage("Error processing unconfirmed transactions from peer", e);
}
catch (Throwable t)