Hello Guest

Nonce numbering

  • 2 Replies
  • 43 Views
*

Krypton

  • **
  • 19
  • +0/-0
    • View Profile
Nonce numbering
« on: November 25, 2018, 04:25:39 pm »
Hello Seuntjie,
Please check the screen shot ... I Had used "reset seed after 1 win" ... usually the nonce numbering starts from 1 after the resetseed ... but in the screen shot you can see the numbering problem immediately after win and also that nonce starts from 1 in middle of red streaks too.
May be the numbering is from dice site (Yolo) or may be really a bug too  ... Just bringing it to your attention ... :)
Regards and with Seasons Greetings
Krypton

*

Seuntjie

  • *****
  • 138
  • +0/-1
    • View Profile
Re: Nonce numbering
« Reply #1 on: November 25, 2018, 04:55:40 pm »
YoloDices API is a tcp socket, instead of a rest API like most other sites.

With a rest API, you start a request, and the request only finishes when the server has finished processing your request, and the result of your request is returned with the status of your request. For example:
Bet->Result
Bet -> Result
Reset Seed -> Result
Bet -> Result
Imagine you're calling someone, asking a question, they answer your question and you hang up.




With a TCP socket, it's not quite that straight forward.With a TCP socket, you send a request, the request finishes and the server sends a response once it's finished processing. DiceBot will continue the process once it's finished sending request. For instance
Bet -> wait for result
result
bet -> wait for result
result
reset seed -> wait for result
bet -> wait for result
result
bet -> wait for result
reset seed result
bet result
bet -> wait for response
Etc
Imagine connecting to a web chat and sending a message, every time you have a question and the person answers when they get around to it and you can ask multiple questions before they answer the first one.


The main cause for this is yolodices API responds to bets faster bets than it can to seed resets and dicebot being a bit hasty when it comes to restarting betting afterwards with socket based sites.
To be clear, sockets are usually much faster than REST APIs, you don't need to wait for the call to connect and the person to answer with every request. I will look into a way to prevent this from happening in the future without causing other issues.

*

Krypton

  • **
  • 19
  • +0/-0
    • View Profile
Re: Nonce numbering
« Reply #2 on: November 29, 2018, 08:25:18 am »
YoloDices API is a tcp socket, instead of a rest API like most other sites.
.
.
.
To be clear, sockets are usually much faster than REST APIs, you don't need to wait for the call to connect and the person to answer with every request. I will look into a way to prevent this from happening in the future without causing other issues.

Thank you so much for taking so much time in writing a detailed answer ... This adds to our knowledge too ...
Warm Regards