diff --git a/main.go b/main.go index e8f110e..282cd3e 100644 --- a/main.go +++ b/main.go @@ -157,7 +157,7 @@ func main() { services.HistoricalBalanceLookup, []*types.NetworkIdentifier{cfg.Network}, nil, - false, + services.IncludeMempoolCoins, ) if err != nil { logger.Fatalw("unable to create new server asserter", "error", err) diff --git a/services/network_service.go b/services/network_service.go index 04dcb02..ce9f879 100644 --- a/services/network_service.go +++ b/services/network_service.go @@ -99,7 +99,7 @@ func (s *NetworkAPIService) NetworkOptions( OperationTypes: bitcoin.OperationTypes, Errors: Errors, HistoricalBalanceLookup: HistoricalBalanceLookup, - MempoolCoins: MempoolCoins, + MempoolCoins: IncludeMempoolCoins, }, }, nil } diff --git a/services/types.go b/services/types.go index 21edf0e..9dce8ab 100644 --- a/services/types.go +++ b/services/types.go @@ -31,8 +31,10 @@ const ( // that historical balance lookup is supported. HistoricalBalanceLookup = true - //Include mempool coins when fetching account coints - MempoolCoins = false + // IncludeMempoolCoins indicates that + // including mempool coins in the /account/coins + // response is not supported. + IncludeMempoolCoins = false // inlineFetchLimit is the maximum number // of transactions to fetch inline.