Skip to content

fix: declare MINIMERCH_ADDRESS and dbReady in service.js#21

Merged
eurobuddha merged 1 commit into
masterfrom
fix/service-undefined-minimerch-address
Mar 25, 2026
Merged

fix: declare MINIMERCH_ADDRESS and dbReady in service.js#21
eurobuddha merged 1 commit into
masterfrom
fix/service-undefined-minimerch-address

Conversation

@eurobuddha
Copy link
Copy Markdown
Owner

Summary

  • service.js runs in an isolated Minima ServiceJSRunner thread — it does not share scope with app.js
  • MINIMERCH_ADDRESS and dbReady were commented out with notes saying "declared in app.js", causing ReferenceError: MINIMERCH_ADDRESS is not defined on line 204 every 10 seconds (every MDS_TIMER_10SECONDS tick)
  • Fix: uncomment both declarations so they live in service.js's own scope

Test plan

  • Reinstall miniMerchInbox.mds.zip on the vendor node
  • Confirm SERVICEJS_POLL errors are gone from the node logs
  • Confirm orders still appear in the inbox as expected

🤖 Generated with Claude Code

service.js runs in an isolated ServiceJSRunner thread — it does not
share scope with app.js. Both variables were commented out with a note
saying they were declared in app.js, causing a ReferenceError every
10 seconds on MDS_TIMER_10SECONDS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eurobuddha eurobuddha merged commit eb6ba8c into master Mar 25, 2026
5 checks passed
@eurobuddha eurobuddha deleted the fix/service-undefined-minimerch-address branch March 25, 2026 08:52
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.

1 participant