You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raw queries are much cheaper than smart queries, as they access the storage directly. Every time a query returns an umodified value from the store, it could in principle be done through a raw query.
Since raw queries have their own problems (no encapsulation, become part of the public API, requires care, migrations, etc.) let's use them only when / if convenient. By example, when querying something regularly at each block, like is the case with:
BTC header info. Queried from the btc-staking contracts to the babylon-contract.
Finality Provider voting power. Queried from finality-provider to the btc-staking contract.
FP existence / data. Queried from the finality contract to the staking contract.
...
The text was updated successfully, but these errors were encountered:
Raw queries are much cheaper than smart queries, as they access the storage directly. Every time a query returns an umodified value from the store, it could in principle be done through a raw query.
Since raw queries have their own problems (no encapsulation, become part of the public API, requires care, migrations, etc.) let's use them only when / if convenient. By example, when querying something regularly at each block, like is the case with:
btc-staking
contracts to thebabylon-contract
.finality-provider
to thebtc-staking
contract.The text was updated successfully, but these errors were encountered: