multi: rename FeePreference to FeeEstimateInfo
Results from running, ``` gofmt -d -w -r 'FeePreference -> FeeEstimateInfo' . ```
This commit is contained in:
15 files changed
+53
-49
No files matched your search
@@ -33,9 +33,9 @@ var (
|
||||
ErrFeePreferenceConflict = errors.New("fee preference conflict")
|
||||
)
|
||||
|
||||
// FeePreference allows callers to express their time value for inclusion of a
|
||||
// transaction into a block via either a confirmation target, or a fee rate.
|
||||
type FeePreference struct {
|
||||
// FeeEstimateInfo allows callers to express their time value for inclusion of
|
||||
// a transaction into a block via either a confirmation target, or a fee rate.
|
||||
type FeeEstimateInfo struct {
|
||||
// ConfTarget if non-zero, signals a fee preference expressed in the
|
||||
// number of desired blocks between first broadcast, and confirmation.
|
||||
ConfTarget uint32
|
||||
@@ -46,7 +46,7 @@ type FeePreference struct {
|
||||
}
|
||||
|
||||
// String returns a human-readable string of the fee preference.
|
||||
func (p FeePreference) String() string {
|
||||
func (p FeeEstimateInfo) String() string {
|
||||
if p.ConfTarget != 0 {
|
||||
return fmt.Sprintf("%v blocks", p.ConfTarget)
|
||||
}
|
||||
@@ -56,7 +56,7 @@ func (p FeePreference) String() string {
|
||||
// Estimate returns a fee rate for the given fee preference. It ensures that
|
||||
// the fee rate respects the bounds of the relay fee and the max fee rates, if
|
||||
// specified.
|
||||
func (f FeePreference) Estimate(estimator chainfee.Estimator,
|
||||
func (f FeeEstimateInfo) Estimate(estimator chainfee.Estimator,
|
||||
maxFeeRate chainfee.SatPerKWeight) (chainfee.SatPerKWeight, error) {
|
||||
|
||||
var (
|
||||
|
||||
Reference in new issue
Block a user