pyquarkchain icon indicating copy to clipboard operation
pyquarkchain copied to clipboard

Optimize getting balances for multi native tokens

Open ninjaahhh opened this issue 5 years ago • 0 comments

current impl on #785 for getting balance map can be expensive if having many non-zero native token balances (iterating a trie). this operation is needed in JSONRPC

since clusters support mining often need to turn on JSONRPC, to avoid future DDoS, we need to optimize the approach of getting balances (e.g. pagination)

ninjaahhh avatar Nov 15 '19 01:11 ninjaahhh