mirror of
https://github.com/muun/recovery.git
synced 2025-11-12 14:51:37 -05:00
Update project structure and build process
This commit is contained in:
26
libwallet/newop/fee_state.go
Normal file
26
libwallet/newop/fee_state.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package newop
|
||||
|
||||
const (
|
||||
FeeStateFinalFee string = "FinalFee"
|
||||
FeeStateNeedsChange string = "NeedsChange"
|
||||
FeeStateNoPossibleFee string = "NoPossibleFee"
|
||||
)
|
||||
|
||||
type FeeState struct {
|
||||
State string
|
||||
Amount *BitcoinAmount
|
||||
RateInSatsPerVByte float64
|
||||
TargetBlocks int64 // 0 if target not found
|
||||
}
|
||||
|
||||
func (f *FeeState) IsFinal() bool {
|
||||
return f.State == FeeStateFinalFee
|
||||
}
|
||||
|
||||
func (f *FeeState) NeedsChange() bool {
|
||||
return f.State == FeeStateNeedsChange
|
||||
}
|
||||
|
||||
func (f *FeeState) IsNoPossibleFee() bool {
|
||||
return f.State == FeeStateNoPossibleFee
|
||||
}
|
||||
Reference in New Issue
Block a user