pendulum-chain / pendulum-squids

The subsquid squids we use for Pendulum/Amplitude/Foucoco.
GNU General Public License v3.0
0 stars 0 forks source link

Add info about basic general blockchain components to indexer #33

Closed bogdanS98 closed 11 months ago

bogdanS98 commented 1 year ago

Closes #31

ebma commented 1 year ago

Any idea why some blocks will return more calls than extrinsic count? I thought each call was associated with one extrinsic.

I guess batching is a good explanation to this. If you batch two extrinsics (or rather 'calls') into the utility.batch or utility.batchAll extrinsic, then you have two calls but one extrinsic. For example, here I batched two calls to system.remark but as you can see on the side, it's contained in just one extrinsic.

image
gianfra-t commented 1 year ago

Any idea why some blocks will return more calls than extrinsic count? I thought each call was associated with one extrinsic.

I guess batching is a good explanation to this. If you batch two extrinsics (or rather 'calls') into the utility.batch or utility.batchAll extrinsic, then you have two calls but one extrinsic. For example, here I batched two calls to system.remark but as you can see on the side, it's contained in just one extrinsic. image

Ohh I see now, thanks for the explanation.