Skip to content

Fix accounts isSmartContract filtering#1613

Merged
stefangutica merged 3 commits into
developmentfrom
fix-smart-contract-filtering
Jul 7, 2026
Merged

Fix accounts isSmartContract filtering#1613
stefangutica merged 3 commits into
developmentfrom
fix-smart-contract-filtering

Conversation

@stefangutica

@stefangutica stefangutica commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Reasoning

  • smart contract accounts are filtered by currentOwner field on indexer, which is not always present on a smart contract address

Proposed Changes

  • use prefix filtering insted of currentOwner field on indexer

How to test

  • an address like erd1qqqqqqqqqqqqqpgqg726qlw8xqtcndmu2g0m8a2veundvpe8usys6l5law without currentOwner field on indexer, should be returned when fetching /accounts?isSmartContract=true&size=1000 , all SCs count being < 9500

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

k6 load testing comparison.
Base Commit Hash: 496e7e9
Target Commit Hash: 25cc0e4

Metric Base Target Diff
AvgMax9095AvgMax9095AvgMax9095
Mex62.304744.02157.42193.7257.691572.0099.69211.28-7.40% ✅-66.86% ✅-36.67% ✅+9.06% 🔴
Tokens113.854962.73207.05240.9093.611484.74122.43136.29-17.78% ✅-70.08% ✅-40.87% ✅-43.42% ✅
Blocks90.624369.72214.90269.9773.081911.14158.49269.92-19.36% ✅-56.26% ✅-26.25% ✅-0.02% ✅
Transactions414.1341446.33228.99258.40336.4534647.3387.80107.75-18.76% ✅-16.40% ✅-61.66% ✅-58.30% ✅
Accounts63.864610.45167.64207.9559.461861.64105.25211.51-6.88% ✅-59.62% ✅-37.22% ✅+1.71% 🔴
Pool61.452971.06161.59195.0758.311931.46102.00211.41-5.11% ✅-34.99% ✅-36.87% ✅+8.38% 🔴
Nodes2855.4127988.7917123.8127987.32521.0217672.90149.49170.67-81.75% ✅-36.86% ✅-99.13% ✅-99.39% ✅
Test Run Duration60002.2760002.72

Legend: Avg - Average Response Time, Max - Maximum Response Time, 90 - 90th Percentile, 95 - 95th Percentile
All times are in milliseconds.

@stefangutica stefangutica merged commit 578a3c9 into development Jul 7, 2026
6 of 10 checks passed
@stefangutica stefangutica deleted the fix-smart-contract-filtering branch July 7, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants