Merge pull request #7824 from yyforyongyu/sweeper-unit-test
input+sweep: make sure input with no fee rate is not added to cluster
This commit is contained in:
11 files changed
+491
-37
No files matched your search
@@ -70,6 +70,11 @@ func (s SatPerKWeight) FeePerKVByte() SatPerKVByte {
|
||||
return SatPerKVByte(s * blockchain.WitnessScaleFactor)
|
||||
}
|
||||
|
||||
// FeePerVByte converts the current fee rate from sat/kw to sat/vb.
|
||||
func (s SatPerKWeight) FeePerVByte() SatPerVByte {
|
||||
return SatPerVByte(s * blockchain.WitnessScaleFactor / 1000)
|
||||
}
|
||||
|
||||
// String returns a human-readable string of the fee rate.
|
||||
func (s SatPerKWeight) String() string {
|
||||
return fmt.Sprintf("%v sat/kw", int64(s))
|
||||
|
||||
Reference in new issue
Block a user