nits
This commit is contained in:
parent
d9fb294826
commit
0b061b9e27
4 changed files with 5 additions and 6 deletions
|
@ -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,
|
||||
|
|
2
main.go
2
main.go
|
@ -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)
|
||||
|
|
|
@ -99,7 +99,7 @@ func (s *NetworkAPIService) NetworkOptions(
|
|||
OperationTypes: bitcoin.OperationTypes,
|
||||
Errors: Errors,
|
||||
HistoricalBalanceLookup: HistoricalBalanceLookup,
|
||||
MempoolCoins: IncludeMempoolCoins,
|
||||
MempoolCoins: MempoolCoins,
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue