Skip to content

Commit 7892adf

Browse files
committed
sync quote-gen proving time with default
1 parent 8a31113 commit 7892adf

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

crates/l2/tee/quote-gen/service.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
let
2+
pkgs = import <nixpkgs> { };
3+
in
4+
let quoteGen = pkgs.rustPlatform.buildRustPackage rec {
5+
pname = "quote-gen";
6+
version = "0.1";
7+
8+
src = pkgs.lib.cleanSource ./../../../../.;
9+
sourceRoot = "${src.name}/crates/l2/tee/quote-gen";
10+
11+
cargoDeps = pkgs.rustPlatform.importCargoLock {
12+
lockFile = ./Cargo.lock;
13+
outputHashes = {
14+
"bls12_381-0.8.0" = "sha256-8/pXRA7hVAPeMKCZ+PRPfQfxqstw5Ob4MJNp85pv5WQ=";
15+
};
16+
};
17+
crateOverrides = defaultCrateOverrides // {
18+
openssl-sys = attrs: { buildInputs = [ openssl ]; };
19+
};
20+
21+
buildInputs = [ pkgs.openssl ];
22+
nativeBuildInputs = [ pkgs.pkg-config pkgs.rustPlatform.cargoSetupHook ];
23+
env.OPENSSL_NO_VENDOR = 1;
24+
};
25+
in {
26+
systemd.services.quote-gen = {
27+
description = "Ethrex TDX Quote Generator";
28+
wantedBy = [ "multi-user.target" ];
29+
30+
serviceConfig = {
31+
ExecStart = "${quoteGen}/bin/quote-gen";
32+
};
33+
};
34+
}

crates/l2/tee/quote-gen/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use sender::{get_batch, submit_proof, submit_quote};
2727

2828
use ethrex_l2::utils::prover::proving_systems::{ProofCalldata, ProverType};
2929

30-
const POLL_INTERVAL_MS: u64 = 1000;
30+
const POLL_INTERVAL_MS: u64 = 5000;
3131

3232
fn sign_eip191(msg: &[u8], private_key: &SecretKey) -> Vec<u8> {
3333
let payload = [

0 commit comments

Comments
 (0)