MCPcopy Index your code
hub / github.com/chain/Core / main

Method main

perf/UtxoReservation.java:22–34  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

20
21public class UtxoReservation {
22 public static void main(String[] args) throws Exception {
23 String coreURL = System.getenv("CHAIN_API_URL");
24 String accessToken = System.getenv("CHAIN_API_TOKEN");
25 System.out.println(coreURL);
26 System.out.println(accessToken);
27 Client client = new Client(new URL(coreURL), accessToken);
28 client.setConnectTimeout(10, TimeUnit.MINUTES);
29 client.setReadTimeout(10, TimeUnit.MINUTES);
30 client.setWriteTimeout(10, TimeUnit.MINUTES);
31 setup(client);
32 transact(client);
33 System.exit(0);
34 }
35
36 static final int utxosPerDenomination = 100;
37 static final int utxoDenominations = 5;

Callers

nothing calls this directly

Calls 5

setConnectTimeoutMethod · 0.95
setReadTimeoutMethod · 0.95
setWriteTimeoutMethod · 0.95
setupMethod · 0.95
transactMethod · 0.95

Tested by

no test coverage detected