The game
I found a game where each gambler needs to pay 0.02 ᴇᴛʜ to register a secret before the game before the games switch to status==reveal each day.
Then, during the status==reveal period no secret can be registered but each gambler who is revealing the secret behind the hash they registered is increasing a ++revealedcount counter. The person making revealedcount==5 is awarded the daily price (revealedcount is reset each day).
Currently, very few peoples are playing the game or at least, nobody seems to be playing it automatically.
How I’m thinking about winning each time
One way I’m thinking about is to pay 5 times 0.02 ᴇᴛʜ for 5 differents commitments and when status becomes reveal, then, post the reveal transactions in batch with a high fee and using an increasing gas price between each of them in order make sure I’ll get the transaction making revealedcount==5 (the price would offset the loss of the other 4 lost reveal tickets).
The problem
Nobody seems to be doing this currently and I think there’s might be a reason : The 5 transactions I will post may have the highest fee, but they will be far to fill the BLOCKGAS limit. This means there will be plenty of room for other transactions in the same block which will also include transactions from competitors on the same game.
While this the transactions paying the highest fee which are included inside a block first, is it the same inside a block ? I mean, does the transactions paying the highest fee are processed first inside the same block ?
Or rather what’s the behavior of the top mining pools ? Are transactions from the same Ethereum address grouped together regardless of their fees ?
statusglobal storage variable which as I explained makes it impossible to post the registration and the revealing at the same period of time. Thentx.orignmust be equal tomsg.senderinside theisHumanmodifier. – user2284570 Apr 18 '20 at 16:37