Document ConfirmationTarget a little bit (closes #101)
authorMatt Corallo <git@bluematt.me>
Wed, 19 Sep 2018 19:01:26 +0000 (15:01 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 20 Sep 2018 03:07:02 +0000 (23:07 -0400)
src/chain/chaininterface.rs

index 5ff720c32e5fed57d8c0ad23e20c3180c675674e..6f6362284072958115e97d5fe585d4e93e96e2ec 100644 (file)
@@ -70,9 +70,14 @@ pub trait ChainListener: Sync + Send {
        fn block_disconnected(&self, header: &BlockHeader);
 }
 
+/// An enum that represents the speed at which we want a transaction to confirm used for feerate
+/// estimation.
 pub enum ConfirmationTarget {
+       /// We are happy with this transaction confirming slowly when feerate drops some.
        Background,
+       /// We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
        Normal,
+       /// We'd like this transaction to confirm in the next few blocks.
        HighPriority,
 }