0bc941e10c1988abbc2249f15551567bdcd16cfb
[ldk-java] / src / main / java / org / ldk / enums / ConfirmationTarget.java
1 package org.ldk.enums;
2
3 /**
4  * An enum that represents the priority at which we want a transaction to confirm used for feerate
5  * estimation.
6  */
7 public enum ConfirmationTarget {
8         /**
9          * We'd like a transaction to confirm in the future, but don't want to commit most of the fees
10          * required to do so yet. The remaining fees will come via a Child-Pays-For-Parent (CPFP) fee
11          * bump of the transaction.
12          * 
13          * The feerate returned should be the absolute minimum feerate required to enter most node
14          * mempools across the network. Note that if you are not able to obtain this feerate estimate,
15          * you should likely use the furthest-out estimate allowed by your fee estimator.
16          */
17         LDKConfirmationTarget_MempoolMinimum,
18         /**
19          * We are happy with a transaction confirming slowly, at least within a day or so worth of
20          * blocks.
21          */
22         LDKConfirmationTarget_Background,
23         /**
24          * We'd like a transaction to confirm without major delayed, i.e., within the next 12-24 blocks.
25          */
26         LDKConfirmationTarget_Normal,
27         /**
28          * We'd like a transaction to confirm in the next few blocks.
29          */
30         LDKConfirmationTarget_HighPriority,
31         ; static native void init();
32         static { init(); }
33 }