From b34f37b5e7332dbd5afdcbaa20c5e5c1c779674d Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Fri, 13 Nov 2020 11:24:06 -0800 Subject: [PATCH] Cleanup IncludeMempoolCoins --- main.go | 2 +- services/network_service.go | 2 +- services/types.go | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) 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.