gold_snapshot is written on every PLAYER_ENTERING_WORLD, so reloads add a row each
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read addon/modules/gold.lua around writeSnapshot(true) and inspect repeat_events_contract.py for the skipped gold_snapshot assertion. Reproduce the repeated PLAYER_ENTERING_WORLD events with unchanged balance, then check that the one-minute limit prevents duplicate rows while a changed balance still forces a snapshot. Done when the assertion is enabled and passes.
Written by the indexing model from the issue text.
Description
Found by the repeat-events contract (#797): writeSnapshot(true) in addon/modules/gold.lua runs on every PLAYER_ENTERING_WORLD, skipping the one-minute limit, so three reloads in a minute write three gold_snapshot rows with the same balance. Observed 3 rows for 3 events with unchanged data.
Fix: apply the one-minute limit to the login snapshot too (keep the forced write only when the balance changed since the last snapshot), and un-skip the gold_snapshot assertion in repeat_events_contract.py. Size S.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CDVolvik/everloot
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in CDVolvik/everloot
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/langchainjs#12157 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
activescott/home-infra-k8s-flux#511 ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 72/100
lingdojo/kana-dojo#33753 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
android:player
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
follow-up needs-triage S3: minor
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
manaflow-ai/cmux#38032 · 1 comment ·
Maintainers usually reply within 1 day