nanocurrency / nano-node

Nano is digital currency. Its ticker is: XNO and its currency symbol is: Ӿ
https://nano.org
BSD 3-Clause "New" or "Revised" License
3.49k stars 787 forks source link

add a "threshold" and "head" parameter to the "delegators" rpc call #3537

Closed ghost closed 3 years ago

ghost commented 3 years ago

Summary

RPC call: https://docs.nano.org/commands/rpc-protocol/#delegators

the delegators call doesn't have a threshold, so if there's many delegators, the node runs out of ram when processing the call.

the accounts_pending call has a "threshold", so I'd like delegators to behave like accounts_pending, and omit any delegator below a given threshold.

What problem would be solved by this feature?

the node runs out of ram when processing the call if there are a lot of low weight delegators.

Are there any previous requests for this feature?

no

Do you have a suggested solution?

no

If this feature is approved, would you be willing to submit a pull request with the solution?

I am willing to collaborate

Possible solution

No response

Supporting files

No response

shryder commented 3 years ago

It's going to be available on v23: https://github.com/nanocurrency/nano-node/pull/3333