You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to do some time-sensitive application.
I just noticed that when I created a transaction at let say 12:00:01,
it's block timestamp is showing at 11:59:XX
Correct me if i'm wrong.
I understand that blocks that started mining can contain new transactions that's why my tx falls to the last block.
My main question is, how can I assure that my transaction will fall into the earliest valid block, especially when the condition is block.timestamp >= someDeadline ?
I made some readings here: #24152
But I still got no idea on how to precisely do timers with this.
Thank you so much!
The text was updated successfully, but these errors were encountered:
The timestamp of block is assigned when the mining block is constructed. In the next ten seconds (because the average block time is around 12 seconds), miner will try to re-generate the mining block with latest pending transaction list every three seconds, with the origin timestamp, to increase the revenue. So it can explain why your transaction is included in a block with smaller timestamp.
My main question is, how can I assure that my transaction will fall into the earliest valid block, especially when the condition is block.timestamp >= someDeadline ?
I am trying to do some time-sensitive application.
I just noticed that when I created a transaction at let say
12:00:01
,it's block timestamp is showing at
11:59:XX
Correct me if i'm wrong.
I understand that blocks that started mining can contain new transactions that's why my tx falls to the last block.
My main question is, how can I assure that my transaction will fall into the earliest valid block, especially when the condition is
block.timestamp >= someDeadline
?I made some readings here: #24152
But I still got no idea on how to precisely do timers with this.
Thank you so much!
The text was updated successfully, but these errors were encountered: