This commit is contained in:
Patrick O'Grady 2020-11-13 11:49:32 -08:00
parent d9fb294826
commit 0b061b9e27
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85
4 changed files with 5 additions and 6 deletions

View file

@ -267,7 +267,6 @@ func TestIndexer_Transactions(t *testing.T) {
} }
transactions := []*types.Transaction{} transactions := []*types.Transaction{}
status := bitcoin.SuccessStatus
for j := 0; j < 5; j++ { for j := 0; j < 5; j++ {
rawHash := fmt.Sprintf("block %d transaction %d", i, j) rawHash := fmt.Sprintf("block %d transaction %d", i, j)
hash := fmt.Sprintf("%x", sha256.Sum256([]byte(rawHash))) hash := fmt.Sprintf("%x", sha256.Sum256([]byte(rawHash)))
@ -287,7 +286,7 @@ func TestIndexer_Transactions(t *testing.T) {
Index: 0, Index: 0,
NetworkIndex: &index0, NetworkIndex: &index0,
}, },
Status: &status, Status: types.String(bitcoin.SuccessStatus),
Type: bitcoin.OutputOpType, Type: bitcoin.OutputOpType,
Account: &types.AccountIdentifier{ Account: &types.AccountIdentifier{
Address: rawHash, Address: rawHash,

View file

@ -157,7 +157,7 @@ func main() {
services.HistoricalBalanceLookup, services.HistoricalBalanceLookup,
[]*types.NetworkIdentifier{cfg.Network}, []*types.NetworkIdentifier{cfg.Network},
nil, nil,
services.IncludeMempoolCoins, services.MempoolCoins,
) )
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: IncludeMempoolCoins, MempoolCoins: MempoolCoins,
}, },
}, nil }, nil
} }

View file

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