Skip to content

fix: clean-build failures on ip_local_network#71

Open
MoonBoi9001 wants to merge 3 commits intoip_local_networkfrom
mb9/local-network-clean-build-fixes
Open

fix: clean-build failures on ip_local_network#71
MoonBoi9001 wants to merge 3 commits intoip_local_networkfrom
mb9/local-network-clean-build-fixes

Conversation

@MoonBoi9001
Copy link
Copy Markdown
Member

@MoonBoi9001 MoonBoi9001 commented May 2, 2026

TL;DR

A clean ip_local_network build currently fails in the contract-deploy phase, blocking the network subgraph and seven downstream services. This PR re-adds the legacy address placeholders and replaces the issuance nonce-race exit 1 with a sleep-and-retry. Touches only the two *.run.sh files plus shellcheck cleanup.

Motivation

The network subgraph manifest references two pre-Horizon contracts (LegacyServiceRegistry, LegacyDisputeManager) that hardhat does not deploy. Earlier local-network builds wrote zero-address placeholders for them; commit 66cf07d (the gateway pin bump) removed that step. Without the placeholders, subgraph-deploy rejects the manifest and the seven services that depend on the network subgraph never come up.

Separately, graph-contracts-issuance and graph-contracts-tap run in parallel, sign from the same Ethereum account, and race for the same nonce; the loser's exit 1 takes the issuance container down on roughly half of cold starts. Together these mean anyone trying the clean-build path you documented gets a stack that looks healthy at the docker level but is silently missing the subgraph layer.

Summary

  • Re-add zero-address placeholders for the two missing legacy contracts after protocol deploy
  • Replace the issuance exit-1 on no-pending-TXs with sleep-and-retry so nonce races recover
  • Silence shellcheck warnings in both *.run.sh files (SC1091 / SC2010 / SC2034)

MoonBoi9001 and others added 3 commits May 1, 2026 21:58
Both contract-deploy run.sh files trip shellcheck on a fresh lint pass.
Suppress SC1091 above the source lines (the paths only exist at
container runtime), rewrite the SC2010 ls|grep patterns as find -name
-quit, and rename the unused for-loop counter to `_` for SC2034.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The network subgraph still references two pre-Horizon contracts that
don't exist on hardhat. Earlier local-network builds wrote zero-address
placeholders to keep the manifest valid; 66cf07d removed them. Restore
the placeholders so subgraph-deploy succeeds again on a fresh stack.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
graph-contracts-issuance and graph-contracts-tap run in parallel and
sign from the same Ethereum account; when their transactions race for
the same nonce the loser fails with NonceTooLowError, leaving no
pending TXs. Replace the activation-goals exit-1 with sleep-and-retry.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MoonBoi9001 MoonBoi9001 changed the title fix: clean-build failures on ip_local_network (legacy stubs + nonce race) fix: clean-build failures on ip_local_network (stubs + nonce race) May 2, 2026
@MoonBoi9001 MoonBoi9001 changed the title fix: clean-build failures on ip_local_network (stubs + nonce race) fix: clean-build failures on ip_local_network May 2, 2026
@MoonBoi9001 MoonBoi9001 requested a review from RembrandtK May 2, 2026 06:46
@RembrandtK
Copy link
Copy Markdown
Member

Fine to merge this.

FYI in the process of replacing this branch with a rebased clean version gip-88 and also progressively merging more of it into main (the divergence has been significantly reduced already). The fixes here has two aspects, one which has now been merged to main (where the zero address issue was introduced in 642978b, fixed in 5c2eded), and the nonce issue, which is not in new gip-88 branch that does not have split deployment containers.

Some clean-up pending on gip-88.

Copy link
Copy Markdown
Member

@RembrandtK RembrandtK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine to merge this.

FYI in the process of replacing this branch with a rebased clean version gip-88 and also progressively merging more of it into main (the divergence has been significantly reduced already). The fixes here has two aspects, one which has now been merged to main (where the zero address issue was introduced in 642978b, fixed in 5c2eded), and the nonce issue, which is not in new gip-88 branch that does not have split deployment containers.

Some clean-up pending on gip-88.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants