delegit-xyz / dashboard

The easiest way to delegate on Polkadot
https://delegit.xyz
Apache License 2.0
1 stars 2 forks source link

Handle the `ExhaustsResources` issue #105

Closed Tbaut closed 1 week ago

Tbaut commented 2 weeks ago

When doing a too big batch, we may get the error ExhaustsResources

The transaction would exhaust the resources of current block. The transaction might be valid, but there are not enough resources left in the current block.

I came acros this when

So I imagine this may happen on Polkadot or Kusama. We need to check.

To prevent this, we need to split in different Txs, I don't think there's another way... Pinging the papi team here: https://github.com/polkadot-api/polkadot-api/issues/695

edit: follow the link, there's an answer and some code even :heart:

wirednkod commented 1 week ago

I came to this issue, as well when I tried to make a simple delegation on Westend