mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
This adds the first version of the fees package, responsible for performing fee estimation of network transactions. The main goal of fee estimation is to allow the usage of dynamic fees by wallets, contingent on block contention and the desired confirmation range for a given transaction. This version was based on bitcoin core fee estimation. |
||
|---|---|---|
| .. | ||
| cmd/dumpfeedb | ||
| doc.go | ||
| estimator.go | ||
| go.mod | ||
| go.sum | ||
| log.go | ||
| README.md | ||
fees
Package fees provides decred-specific methods for tracking and estimating fee rates for new transactions to be mined into the network. Fee rate estimation has two main goals:
- Ensuring transactions are mined within a target confirmation range (expressed in blocks);
- Attempting to minimize fees while maintaining be above restriction.
This package was started in order to resolve issue decred/dcrd#1412 and related. See that issue for discussion of the selected approach.
This package was developed for dcrd, a full-node implementation of Decred which is under active development. Although it was primarily written for dcrd, this package has intentionally been designed so it can be used as a standalone package for any projects needing the functionality provided.
Installation and Updating
$ go get -u github.com/decred/dcrd/fees
License
Package dcrutil is licensed under the copyfree ISC License.