Discussions
Correct working wasm not being validated
Hey there, as you might have known, I'm working on https://github.com/9oelM/hooks-rs which is a Rust project that compiles Rust code into hook-compatible wasm. And I was working on some XFL support for one of my pull requests at https://github.com/9oelM/hooks-rs/pull/11 with an integration test containing the problematic hook.
While testing, I came across a very strange behavior of XRPL node when it validates hooks. Basically, if I add a bit more code that is supposed to be functional and working like any other code, it will suddenly stop the node from validating the hook.
The preliminary observation (could be totally wrong) is that if I add too many block statements in the wasm file... the node will not validate my hook? The issue contains all the payloads and the details so please check it out. I've been wrestling with this for a while but couldn't really find meaningful solutions.
I know it sounds like a rough summary and it is, so please do have a thorough read of the code and the Github issue: https://github.com/9oelM/hooks-rs/issues/12