Nicholas Rodrigues Lordello

Results 121 comments of Nicholas Rodrigues Lordello

Should have a release https://crates.io/crates/ethabi/14.1.0

I did a little more digging, using `cargo +nightly rustc --profile=check -- -Zunpretty=expanded` to check out the generated `Deserialize` implementation. It looks like flattened structs generate a "field visitor" type...

The default output location on Windows with MSVC for `wabt.lib` is `%CMAKE_BINARY_DIR%\%CMAKE_BUILD_TYPE%`. In a typical debug build of `wabt-sys`, this will be `%OUT_DIR%\build\Debug` but depending on optimizations it can be...

> Fiber bundles A "fiber" is [lightweight thread of execution](https://en.wikipedia.org/wiki/Fiber_(computer_science)) made up of promises. This is different than a background thread which would require a `Worker` and is more heavy-weight.

> Do we know how long the deep copy actually takes (e.g. compared to fetching the events since the last confirmed block)? I imagine it is a very small amount...

**update**: Ran an unscientific benchmark like so: ``` const start = require("perf_hooks").performance.now() for (let i = 0; i < 1000; i++) { (orderbook as any).confirmedState.copy() } console.log(require("perf_hooks").performance.now() - start) ```...

> We can keep track of the latest solution submitter and granted reward. When we notice any TradeReversion we know the solution must have been reverted and deduct the reward...

Turns out its a little more complicated - there are some type dependencies that need to be setup correctly.

> I still don't understand why not query from the block immediately before the first one published since the batch closed. I believe that has some issues with how the...

This might cause problems though, since retrieving "full" pages (i.e. pages with many orders that are considered valid) is considerably more expensive than "empty" pages (i.e. pages with few orders...