mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-24 03:45:22 +08:00
Compare commits
2 Commits
v0.2.5
...
fix/runes-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
361a3acfa4 | ||
|
|
a663f909fa |
@@ -146,7 +146,7 @@ func (p *Processor) processTx(ctx context.Context, tx *types.Transaction, blockH
|
||||
// find all non-OP_RETURN outputs
|
||||
var destinations []int
|
||||
for i, txOut := range tx.TxOut {
|
||||
if txOut.IsOpReturn() {
|
||||
if !txOut.IsOpReturn() {
|
||||
destinations = append(destinations, i)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,11 +90,7 @@ func (h *Client) request(ctx context.Context, reqOptions RequestOptions) (*HttpR
|
||||
|
||||
parsedUrl := h.BaseURL()
|
||||
parsedUrl.Path = path.Join(parsedUrl.Path, reqOptions.path)
|
||||
baseQuery := parsedUrl.Query()
|
||||
for k, v := range reqOptions.Query {
|
||||
baseQuery[k] = v
|
||||
}
|
||||
parsedUrl.RawQuery = baseQuery.Encode()
|
||||
parsedUrl.RawQuery = reqOptions.Query.Encode() // TODO: merge query params if base url already have query params
|
||||
|
||||
// remove %20 from url (empty space)
|
||||
url := strings.TrimSuffix(parsedUrl.String(), "%20")
|
||||
|
||||
Reference in New Issue
Block a user