Set historical balance lookup to true in services

This commit is contained in:
Patrick O'Grady 2020-10-27 10:44:57 -07:00
parent 58b468c901
commit 5e9343a662
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85
4 changed files with 13 additions and 7 deletions

View file

@ -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,
) )

View file

@ -95,9 +95,10 @@ func (s *NetworkAPIService) NetworkOptions(
MiddlewareVersion: &MiddlewareVersion, MiddlewareVersion: &MiddlewareVersion,
}, },
Allow: &types.Allow{ Allow: &types.Allow{
OperationStatuses: bitcoin.OperationStatuses, OperationStatuses: bitcoin.OperationStatuses,
OperationTypes: bitcoin.OperationTypes, OperationTypes: bitcoin.OperationTypes,
Errors: Errors, Errors: Errors,
HistoricalBalanceLookup: HistoricalBalanceLookup,
}, },
}, nil }, nil
} }

View file

@ -35,9 +35,10 @@ var (
MiddlewareVersion: &middlewareVersion, MiddlewareVersion: &middlewareVersion,
}, },
Allow: &types.Allow{ Allow: &types.Allow{
OperationStatuses: bitcoin.OperationStatuses, OperationStatuses: bitcoin.OperationStatuses,
OperationTypes: bitcoin.OperationTypes, OperationTypes: bitcoin.OperationTypes,
Errors: Errors, Errors: Errors,
HistoricalBalanceLookup: HistoricalBalanceLookup,
}, },
} }

View file

@ -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 (