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

reduce start delay blocks (#559) #563

Merged
merged 3 commits into from
Mar 8, 2024
Merged

reduce start delay blocks (#559) #563

merged 3 commits into from
Mar 8, 2024

Conversation

loothero
Copy link
Contributor

@loothero loothero commented Mar 7, 2024

  • allow client to optimistically provide contract with the block hash for start_block + 1
  • contract will verify provided hash was correct as part of highscore check and prior to minting collectible beast
  • contract provides a public slay_invalid_adventurers that can be used to slay adventurers started with wrong hash
  • this change is backwards compatible with existing clients. Calling attack() after 11 blocks will work same as it did previously but now clients can call set_starting_entropy(adventurer_id, block_hash) when start_block + 1 hash is available and proceed to call attack() immediately after.

* allow client to optimistically provide contract with the block hash for start_block + 1
* contract will verify provided hash was correct as part of highscore check
* contract will also check hash prior to minting beasts
* contract also provides a public slay_invalid_adventurers that can be used to slay adventurers started with wrong hash
@loothero loothero added the enhancement New feature or request label Mar 7, 2024
@loothero loothero self-assigned this Mar 7, 2024
Copy link

vercel bot commented Mar 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
loot-survivor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 4:47am

@loothero loothero merged commit 8474dd9 into main Mar 8, 2024
10 checks passed
@loothero loothero deleted the optimistic-start2 branch March 8, 2024 17:24
@loothero loothero added the V1.1 label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request V1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant