Port estimatesmartfee from dcrd #18

Merged
roylee17 merged 3 commits from roylee/port-estimatesmartfee-from-dcrd into master 2022-02-02 09:14:27 +01:00

3 commits

Author SHA1 Message Date
Roy Lee
226df55545 [lbry] fees: replace estimatefee with esimatesmartfee 2022-02-01 23:51:46 -08:00
Roy Lee
00219d87c6 [lbry] fees: port estimatesmartfee from DCRD
1. logger
2. blockheight: int64 -> int32
3. dcrutil -> lbcutl
4. MaxConfirimation: 42
5. MinBucketFee: mempool.MinRelayFee (default 1000)
6. BucketFee Spacing: 1.1 -> 1.05

Note:
  DCRD implementation of estimatesmartfee is based on bitcoin core 0.14
  Lbrycrd (0.17) includes the updates of bitcoin core 0.15.
  They are slightly different, but shouldn't matter much.
2022-02-01 23:51:46 -08:00
Roy Lee
82d0d07b85 [lbry] fees: initial import from DCRD
vendored https://github.com/decred/dcrd/tree/master/internal/fees

Commit of the last modification

    commit a6e205b88fbb44f7ee85be25a81f4dad155670d8
    Author: Dave Collins <davec@conformal.com>
    Date:   Sat Dec 26 12:17:48 2020 -0600

        fees: Remove deprecated DisableLog.
2022-01-29 16:24:21 -08:00