Updated Dice/Card Oracle

avatar
(Edited)

Hey everyone,

I'm back with another update, this time focusing on some performance issues with our Discord bot.

image.png

The ever-vigilant @ecoinstant pointed out that the bot wasn't responding to games like it used to. I immediately looked into it and found that the core problem was the API calls to the Hive nodes were sometimes not "quick enough." When the node response lagged, it caused the games to fail or time out, leading to a frustrating experience.

After spending a bit of time adjusting timeouts and tweaking error handling, which provided only marginal improvements, I decided it was time for a more fundamental change. I needed to change the oracle for the deterministic results.

The New Oracle: Faster, Simpler, Stronger

The solution involved a shift away from the previous, more complex method. The new system is far simpler: it now uses the getStatus API call on Hive-Engine nodes and relies on a single API call for its result.

This new approach made a world of difference. Since we are using the status of the Hive Engine side, which includes the last processed block, and the game roll itself is not a transaction, I don't need to include the previous block hash in the request.

However, to ensure truly unique and deterministic results, especially if multiple people roll at the exact same time, I still add a small salt value to the user's request. This ensures that even in simultaneous events, the final random seed remains distinct.

Here is a look at it in use:

Damn! That's an Amazing Poker Hand!

This makes the oracle faster, more reliable, and still entirely transparent and verifiable.

barkeep.png

ledger.png

seer.png

Come Join the Conversation!

Want to see the new oracle in action, suggest a feature, or just hang out?

As always,
Michael Garcia a.k.a. TheCrazyGM



0
0
0.000
5 comments
avatar

I used to create all sorts of complex system interactions. Over time, I came to really appreciate simplicity, so that's my modus operandi now, to keep things as simple as possible. Nice job on getting your Discord bot working correctly again! 😁🙏💚✨🤙

0
0
0.000
avatar

You make the rule's to break the rules 😂😂😂😂😂😂😂😂

Everyone please read

kgakakillerg evidence

Hello everyone good morning good afternoon good evening where ever you are around the world 🌎 🌍 🌍 🌍 🌍

As many of you know I was downvoted on Hive by the biggest farmers on Hive 😂 😂 😂 😂 😂

They think I care about rep on Hive when it means nothing in the real world 😂😂😂😂😂

It's mad how the ones doing the downvoting are farming Hive with armies of alt accounts 😂 😂

They selfvote there own shit post's and projects 😂😂😂

They like to talk a whole lot of shit 💩

But they can't Face the truth so in this post you can find the truth

This is part 3 Hive is done please do check out the previous parts

I make one big post soon I think I need to do a few more parts first

The thing is I've been called a spammer and all sorts of things but words mean nothing 😂😂😂😂

Especially when they are coming from scammers farmers downvoting racist people 😂😂😂😂

It's still so hard to believe that blocktrades is behind buildawhale usainvote and other accounts that are actively destroying Hive 😂 😂

Hive has the tech but not the brain's at the top

It's crazy that acidyo tells people about selfvoting whilst selfvoting his shit projects 💩 everyday 😂😂😂😂😂😂😂

Themarkymark is running the buildawhale comment farm for his master Blocktrades 😂 😂 😂

It's so funny how themarkymark account has a free pass the same as acidyo 😂😂😂😂😂😂

It's not hard to tell who is running Hive 😂😂😂😂😂

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

kgakakillerg evidence

Thank you so much for reading and viewing this post

Now I got a question for you all do you think I'm a scammer or spammer 😂😂😂😂😂

Please be honest it won't offend me 😎👍🏾

I would highly recommend you checking out the previous parts

Hive is done

Hive is Done part 2

0
0
0.000