]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Ensure we sanitize rustc random values for all lightning crates 2021-06-fix-nondeterminism
authorMatt Corallo <git@bluematt.me>
Wed, 9 Jun 2021 19:41:23 +0000 (19:41 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 9 Jun 2021 19:45:16 +0000 (19:45 +0000)
deterministic-build-wrappers/rustc

index 2f356770fa0bf90512667c0fd2a02a2f94ba02a9..eba9cdad3940e73621325d33bb750144b62c842f 100755 (executable)
@@ -10,7 +10,7 @@ IS_LIGHTNING=false
 for ((i=0; i<"${#args[@]}"; ++i)); do
     case ${args[i]} in
         --crate-name)
-                       if [ "${args[i+1]}" = "lightning" ]; then
+                       if [ "${args[i+1]}" = "lightning" -o "${args[i+1]}" = "lightning_background_processor" -o "${args[i+1]}" = "lightning_invoice" -o "${args[i+1]}" = "lightning_persister" ]; then
                                IS_LIGHTNING=true
                        fi
                        ;;