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

View file

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

View file

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

View file

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