Cleanup IncludeMempoolCoins

This commit is contained in:
Patrick O'Grady 2020-11-13 11:24:06 -08:00
parent dca1a597ed
commit b34f37b5e7
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85
3 changed files with 6 additions and 4 deletions

View file

@ -157,7 +157,7 @@ func main() {
services.HistoricalBalanceLookup, services.HistoricalBalanceLookup,
[]*types.NetworkIdentifier{cfg.Network}, []*types.NetworkIdentifier{cfg.Network},
nil, nil,
false, services.IncludeMempoolCoins,
) )
if err != nil { if err != nil {
logger.Fatalw("unable to create new server asserter", "error", err) logger.Fatalw("unable to create new server asserter", "error", err)

View file

@ -99,7 +99,7 @@ func (s *NetworkAPIService) NetworkOptions(
OperationTypes: bitcoin.OperationTypes, OperationTypes: bitcoin.OperationTypes,
Errors: Errors, Errors: Errors,
HistoricalBalanceLookup: HistoricalBalanceLookup, HistoricalBalanceLookup: HistoricalBalanceLookup,
MempoolCoins: MempoolCoins, MempoolCoins: IncludeMempoolCoins,
}, },
}, nil }, nil
} }

View file

@ -31,8 +31,10 @@ const (
// that historical balance lookup is supported. // that historical balance lookup is supported.
HistoricalBalanceLookup = true HistoricalBalanceLookup = true
//Include mempool coins when fetching account coints // IncludeMempoolCoins indicates that
MempoolCoins = false // including mempool coins in the /account/coins
// response is not supported.
IncludeMempoolCoins = false
// inlineFetchLimit is the maximum number // inlineFetchLimit is the maximum number
// of transactions to fetch inline. // of transactions to fetch inline.