Set historical balance lookup to true in services
This commit is contained in:
parent
58b468c901
commit
5e9343a662
4 changed files with 13 additions and 7 deletions
2
main.go
2
main.go
|
@ -154,7 +154,7 @@ func main() {
|
||||||
// requests.
|
// requests.
|
||||||
asserter, err := asserter.NewServer(
|
asserter, err := asserter.NewServer(
|
||||||
bitcoin.OperationTypes,
|
bitcoin.OperationTypes,
|
||||||
true,
|
services.HistoricalBalanceLookup,
|
||||||
[]*types.NetworkIdentifier{cfg.Network},
|
[]*types.NetworkIdentifier{cfg.Network},
|
||||||
nil,
|
nil,
|
||||||
)
|
)
|
||||||
|
|
|
@ -98,6 +98,7 @@ func (s *NetworkAPIService) NetworkOptions(
|
||||||
OperationStatuses: bitcoin.OperationStatuses,
|
OperationStatuses: bitcoin.OperationStatuses,
|
||||||
OperationTypes: bitcoin.OperationTypes,
|
OperationTypes: bitcoin.OperationTypes,
|
||||||
Errors: Errors,
|
Errors: Errors,
|
||||||
|
HistoricalBalanceLookup: HistoricalBalanceLookup,
|
||||||
},
|
},
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ var (
|
||||||
OperationStatuses: bitcoin.OperationStatuses,
|
OperationStatuses: bitcoin.OperationStatuses,
|
||||||
OperationTypes: bitcoin.OperationTypes,
|
OperationTypes: bitcoin.OperationTypes,
|
||||||
Errors: Errors,
|
Errors: Errors,
|
||||||
|
HistoricalBalanceLookup: HistoricalBalanceLookup,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,10 @@ const (
|
||||||
// NodeVersion is the version of
|
// NodeVersion is the version of
|
||||||
// bitcoin core we are using.
|
// bitcoin core we are using.
|
||||||
NodeVersion = "0.20.1"
|
NodeVersion = "0.20.1"
|
||||||
|
|
||||||
|
// HistoricalBalanceLookup indicates
|
||||||
|
// that historical balance lookup is supported.
|
||||||
|
HistoricalBalanceLookup = true
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in a new issue