Skip to content

Commit

Permalink
MonitorTool work
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Sep 18, 2020
1 parent 4bfb9a3 commit d90e387
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 8 additions & 4 deletions client/src/MonitorTool.java
Expand Up @@ -72,7 +72,6 @@ private void triggerAddress(AddressSpecHash hash)
for(ByteString tx_hash : ml.getTxHashesList())
{
sendNotices(hash, tx_hash);

}
}

Expand All @@ -84,7 +83,9 @@ private void sendNotices(AddressSpecHash hash, ByteString tx_hash)
if (processed_tx.contains(key)) return;
}

Transaction tx = stub_holder.getBlockingStub().getTransaction( RequestTransaction.newBuilder().setTxHash( tx_hash ).build() );
Transaction tx = stub_holder.getBlockingStub().getTransaction(
RequestTransaction.newBuilder().setTxHash( tx_hash ).build() );

TransactionInner inner = TransactionUtil.getInner(tx);

int idx = 0;
Expand All @@ -111,8 +112,6 @@ private void sendNotices(AddressSpecHash hash, ByteString tx_hash)
{
processed_tx.add(key);
}


}

public void onNext(AddressUpdate update)
Expand All @@ -130,6 +129,11 @@ public void onCompleted()
public void onError(Throwable t)
{
t.printStackTrace();
}

private void resubscribe()
{


}

Expand Down
1 change: 0 additions & 1 deletion client/src/StubHolder.java
Expand Up @@ -13,7 +13,6 @@ public class StubHolder
private volatile ManagedChannel channel;
private volatile UserServiceStub stub;
private volatile UserServiceBlockingStub blocking_stub;

private volatile OfferPayInterface offer_pay_interface;

public StubHolder()
Expand Down

0 comments on commit d90e387

Please sign in to comment.