mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-07 07:33:12 +00:00
gen images in a loop to resolve id changes due to recursion
This commit is contained in:
parent
7fac50b5a1
commit
bf3331c40f
19
emmarin/cl/gen_risc0_images.sh
Executable file
19
emmarin/cl/gen_risc0_images.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# We generate in a *loop* because some risc0 proofs are recursive, so if a child
|
||||
# proof's id changes, then the parent proof will also change, but we don't see the
|
||||
# parent's id change until the next run.
|
||||
|
||||
cargo run --bin gen_risc0_images > risc0_images/src/lib.rs.new
|
||||
|
||||
while ! cmp -s risc0_images/src/lib.rs.new risc0_images/src/lib.rs
|
||||
do
|
||||
mv risc0_images/src/lib.rs.new risc0_images/src/lib.rs
|
||||
cargo run --bin gen_risc0_images > risc0_images/src/lib.rs.new
|
||||
echo "-------- FINISHED UPDATE ITERATION --------"
|
||||
done
|
||||
|
||||
rm risc0_images/src/lib.rs.new
|
||||
|
||||
cargo test -p risc0_images_police
|
||||
Loading…
x
Reference in New Issue
Block a user