vgas_limit error in vlayer SDK

Summary

On the vlayer server this announcement explains the vgas_limit 10000000 error and how to handle it. It clarifies that unused vgas is automatically refunded by the prover via the v_refundUnusedGas method so a high limit should not cause loss. To estimate a smaller limit before running on testnet or mainnet, run proofs locally and check vgas usage. Let the community know if problems arise.

happymirror-64 OP

I'm receiving error

Proof failed Error: Allocating gas failed with error: Your vgas balance is insufficient to allocate given vgas_limit of 10000000.

It seems there is a vgas_limit in vlayer sdk? Can I set this variable manually to make it less than 10000000?

happymirror-64 OP

Thank you!

happymirror-64 OP

The unused vgas is automatically refunded by the prover server, via the v_refundUnusedGas method, so if the limit is too high it shouldn't be a problem

But if you want to estimate a value before running on testnet/mainnet, then you can run the proofs locally and check the usage.

Let me know if you run into any issues!

The latest from vlayer

Badge Minting Discrepancy on vlayer

Member reports on-chain badges but only three show on the web; requests team review of verification and rewards.