diff --git a/nix/ci.nix b/nix/ci.nix index 6190865e..3a442ef3 100644 --- a/nix/ci.nix +++ b/nix/ci.nix @@ -4,5 +4,6 @@ { includedPaths = [ "apps.dockerApps.evaluation-test" + "apps.plutus-certification-test-plutus-certification-test" ]; -} \ No newline at end of file +} diff --git a/nix/docker-files/docker.nix b/nix/docker-files/docker.nix index 254df6c8..9fff8449 100644 --- a/nix/docker-files/docker.nix +++ b/nix/docker-files/docker.nix @@ -1,7 +1,7 @@ { inputs', pkgs, l, ... }: let imgAttributes = { name = "plutus-certification"; - tag = "12"; + tag = "13"; }; nixConfig = '' trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= @@ -31,6 +31,8 @@ ${addParameter "use-whitelist" "USE_WHITELIST"} ${addParameter "port" "PORT"} ${addParameter "db-path" "DB_PATH"} + ${addParameter "min-amount-for-address-reservation" "MIN_AMOUNT_FOR_ADDRESS_RESERVATION"} + if [ -n "$JWT_SECRET" ]; then args="$args --jwt-secret $JWT_SECRET" @@ -132,6 +134,7 @@ rec { ${addEnvVar "UNSAFE_PLAIN_ADDRESS_AUTH"} ${addEnvVar "PORT"} ${addEnvVar "DB_PATH"} + ${addEnvVar "MIN_AMOUNT_FOR_ADDRESS_RESERVATION"} if [[ -z "$PORT" ]]; then export PORT=9671 diff --git a/nix/docker-files/run.sh b/nix/docker-files/run.sh index ff590009..ca6d8f25 100755 --- a/nix/docker-files/run.sh +++ b/nix/docker-files/run.sh @@ -7,4 +7,5 @@ JWT_SECRET2=secret \ DB_PATH=./db/certification2.sqlite \ PORT=80 \ + MIN_AMOUNT_FOR_ADDRESS_RESERVATION=1000000 \ nix run .#dockerApps.runDockerImage diff --git a/server/Main.hs b/server/Main.hs index ee1c69da..cd015042 100644 --- a/server/Main.hs +++ b/server/Main.hs @@ -90,7 +90,7 @@ data Args = Args , github :: !GitHubArgs , bypassSubscriptionValidation :: !Bool , dbPath :: !FilePath - , minAmountForAddressAssessment :: !Word64 + , minAmountForAddressAssignment :: !Word64 } data GitHubArgs = GitHubArgs @@ -166,9 +166,11 @@ argsParser = Args <> Opts.value "./certification.sqlite" ) <*> option auto - ( long "min-amount-for-address-assessment" + ( long "min-amount-for-address-reservation" <> metavar "MIN_AMOUNT" - <> help "the minimum amount of Lovelace required to perform an address assessment" + <> help ( "the minimum amount of Lovelace required to perform an address reservation. " + <> "CAUTION: don't use different values once one was chosen, as this will affect the previously reserved addresses too" + ) <> showDefault <> Opts.value oneAda ) @@ -493,7 +495,7 @@ main = do ref <- newIORef Nothing _ <- forkIO $ startTransactionsMonitor (narrowEventBackend InjectSynchronizer eb) scheduleCrash - (args.wallet) ref 10 (args.minAmountForAddressAssessment) + (args.wallet) ref 10 (args.minAmountForAddressAssignment) (WithDBWrapper (withDb' (args.dbPath)) ) pure ref serverArgs args serverCaps r eb whitelist ref serverJWTConfig serverAddressRotation = ServerArgs