Replies: 3 comments 3 replies
-
|
for service |
Beta Was this translation helpful? Give feedback.
-
|
@clearloop Thank you! I’m seeing a single delta in the serialized accumulation operands returned by My reading of (C.32) is that the second hash should be In Could you share how you derived the following value for your field: Here is an exerpt from "report": {
"package_spec": {
"hash": "0xe6f55a15c04c6c807a13e453a5e7be058448a4ad38daa07476f23e0b14aa890b",
"length": 393,
"erasure_root": "0x2b8b2b2bbd4ea8c1ee710065a04786a86cb10dcb6b0edb4412e58de2bdde9998",
"exports_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
"exports_count": 0
},
"context": {
"anchor": "0x4445ec22a59c4a5fb31cd60489426b95a6fd8465c3dca2839bc96119e9b0224b",
"state_root": "0x0fd50b306b691b05af3702542564b9870bb17aea04bc404a45688bea7edfc357",
"beefy_root": "0x581f10ddd774befd80936ba02cd8521c6f16e1478e4a25c4d34421470f8f91c3",
"lookup_anchor": "0x4445ec22a59c4a5fb31cd60489426b95a6fd8465c3dca2839bc96119e9b0224b",
"lookup_anchor_slot": 10,
"prerequisites": []
},
"core_index": 1,
"authorizer_hash": "0xa33fd62c73aa99798665aacb88b9aad62c82389e49b06838e6fbc2dd04fbd78c",
"auth_gas_used": 7021,
"auth_output": "0x417574683d3c3e",
"segment_root_lookup": [],
"results": [
{
"service_id": 0,
"code_hash": "0x3f72b36f023e0a26ba5e3bb25dccd8bc38055b9561f7ca61fecb0c957de7e577",
"payload_hash": "0xf0787096a4812da5ffabe467eb19b6d291fbc28da123bbe5cca4424b32ea2446",
"accumulate_gas": 10000000,
"result": {
"ok": "0x011600050b53eec90039290096fa08f2b29f79e87a25642af1e5754a7b44f199fc71b2c7333adc619129bd8cdae03b04e7072c5560ab519beba06397e8f62890fae2083d5251fc63d6ad1a0cd5d52734c02ba70f317dfcb2d63614c12835d07aa8f15f4013717d587c3a156efb6892b22c32efe6569032143bf8456744734672d84df15f7cec52460716ad13c562e01721f90b1dfd924367b268dce62a093c640eca1c53"
},
"refine_load": {
"gas_used": 51987,
"imports": 0,
"extrinsic_count": 0,
"extrinsic_size": 0,
"exports": 0
}
}
]
} |
Beta Was this translation helpful? Give feedback.
-
|
I’ve found the root cause. In this trace, accumulation terminates due to out-of-gas. I misapplied the transformation from (A.44): as: Per (A.1), out-of-gas occurs when ϱ′ < 0. Here ϱ′ = −1, so the correct computation is: Whereas my code did: —which inflates u by 1 and explains the one-unit gas discrepancy from the expected value. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In this trace, I am observing a
1-unit discrepancyinaccumulate_gas_used:Only one service is being accumulated in this trace, and its code performs just three host calls (besides
log):fetch 0,info, andfetch 14. Because of this, I suspect one of these calls is returning a non-conformant result. However, a code review againstGP 0.7.0did not reveal the cause.Could anyone share the results of these host calls from your implementation for comparison?
Here are the results from mine:
fetch 0result (134 bytes):inforesult (96 bytes):fetch 14result (434 bytes):PVM initialization argument (436 bytes):
Beta Was this translation helpful? Give feedback.
All reactions