Skip to content

Commit

Permalink
fix: right size and solana cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladinlight committed Oct 24, 2024
1 parent d08a662 commit e272771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ aliases:
service-image-3: shapeshiftdao/unchained-blockbook:base-32a3bc7
service-cpu-limit-3: "2"
service-cpu-request-3: "1"
service-memory-limit-3: 8Gi
service-memory-limit-3: 12Gi
service-storage-size-3: 100Gi

- &base-dev
Expand Down
2 changes: 1 addition & 1 deletion node/coinstacks/solana/api/src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class Solana implements BaseAPI, API {
} as Tx
})

const nextCursor = txs.length === pageSize ? txs[txs.length - 1].signature : undefined
const nextCursor = txs.length ? txs[txs.length - 1].signature : undefined

return { pubkey, cursor: nextCursor, txs: txs }
} catch (err) {
Expand Down

0 comments on commit e272771

Please sign in to comment.