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:
Oliver Gugger authored and GitHub committed 2023-10-17 06:36:21 +00:00
commit e8d865aba5
11 files changed
+491 -37

No files matched your search

+5
View File
@@ -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))