[bisq-network/bisq] Refactor fee estimation (#2251)
Manfred Karrer
notifications at github.com
Wed Jan 23 11:18:32 UTC 2019
ManfredKarrer commented on this pull request.
> +import java.util.List;
+
+import lombok.extern.slf4j.Slf4j;
+
+import static com.google.common.base.Preconditions.checkArgument;
+
+/**
+ * Util class for getting the estimated tx fee for maker or taker fee tx.
+ */
+ at Slf4j
+public class TxFeeEstimationService {
+ public static int TYPICAL_TX_WITH_1_INPUT_SIZE = 260;
+ private static int DEPOSIT_TX_SIZE = 320;
+ private static int PAYOUT_TX_SIZE = 380;
+ private static int BSQ_INPUT_INCREASE = 150;
+ private static int MAX_ITERATIONS = 10;
I have not a very strong opinion here, @blabno critiziced that they should be statics and not magic numbers in the code. I usually only make statics if they are used repeatedly and/or if the class is longer and it helps to see quickly important parameters. I would prefer to leave it now.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/2251#discussion_r250152349
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190123/e689e8df/attachment.html>
More information about the bisq-github
mailing list