Update project structure and build process

This commit is contained in:
Juan Pablo Civile
2025-05-13 11:10:08 -03:00
parent 124e9fa1bc
commit d9f3e925a4
277 changed files with 15321 additions and 930 deletions

View 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
}