Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update loggings to make sure builders are run correctly #1867

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/genesis/demo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fee_contract = '0xa15bb66138824a1c7167f5e85b957d04dd34e468'
timestamp = "1970-01-01T00:00:00Z"

[[upgrade]]
version = "0.2"
version = "0.3"
start_proposing_view = 5
stop_proposing_view = 15

Expand Down
13 changes: 8 additions & 5 deletions marketplace-builder/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,26 +206,29 @@ impl BuilderConfig {
let res =
run_non_permissioned_standalone_builder_service(hooks, senders, events_url)
.await;
tracing::error!(?res, "builder service exited");
tracing::error!(?res, "Reserve builder service exited");
if res.is_err() {
panic!("Builder should restart.");
panic!("Reserve builder should restart.");
}
});

tracing::info!("Reserve builder init finished");
} else {
let hooks = hooks::EspressoFallbackHooks { solver_api_url };

async_spawn(async move {
let res =
run_non_permissioned_standalone_builder_service(hooks, senders, events_url)
.await;
tracing::error!(?res, "builder service exited");
tracing::error!(?res, "Fallback builder service exited");
if res.is_err() {
panic!("Builder should restart.");
panic!("Fallback builder should restart.");
}
});

tracing::info!("Fallback builder init finished");
}

tracing::info!("Builder init finished");
Ok(Self {
global_state,
hotshot_events_api_url,
Expand Down
8 changes: 4 additions & 4 deletions process-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,7 @@ processes:
path: /healthcheck
failure_threshold: 100


# We use KeyDB (a Redis variant) to maintain consistency between
# We use KeyDB (a Redis variant) to maintain consistency between
# different parts of the CDN
# Cheating a bit here too, but KeyDB is not available as a Nix package.
# Could do local (SQLite) discovery, but removes some of the spirit
Expand Down Expand Up @@ -491,7 +490,7 @@ processes:
failure_threshold: 100

marketplace-reserve-builder:
disabled: true
# disabled: true
command: marketplace-builder
ports:
- "$ESPRESSO_BUILDER_SERVER_PORT:$ESPRESSO_BUILDER_SERVER_PORT"
Expand All @@ -516,7 +515,7 @@ processes:
failure_threshold: 100

marketplace-fallback-builder:
disabled: true
# disabled: true
command: marketplace-builder
ports:
- "$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT:$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT"
Expand All @@ -542,6 +541,7 @@ processes:
failure_threshold: 100

permissionless-builder:
disabled: true
command: permissionless-builder
ports:
- "$ESPRESSO_BUILDER_SERVER_PORT:$ESPRESSO_BUILDER_SERVER_PORT"
Expand Down
2 changes: 1 addition & 1 deletion types/src/v0/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl NodeType for SeqTypes {
type Membership = GeneralStaticCommittee<Self, PubKey>;
type BuilderSignatureKey = FeeAccount;
type Base = StaticVersion<0, 1>;
type Upgrade = StaticVersion<0, 2>;
type Upgrade = StaticVersion<0, 3>;
type AuctionResult = SolverAuctionResults;
const UPGRADE_HASH: [u8; 32] = [
1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
Expand Down
Loading