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
In Mina.LocalBlockchain, two methods currentSlot() and Mina.getNetworkState().globalSlotSinceGenesis gives different values than each other. Because while currentSlot() calculating current slot on each call it does not update local network state thus it needs to be updated manually by dev which is confusing.
The text was updated successfully, but these errors were encountered:
One is calculated using Date.now, and the other you can set manually on local, and on Zeko, you do not have slots. I use the following code to get and set slot in tests:
I agree that it is quite confusing for developers, as all blockchains have different behaviours, and you cannot use local blockchain to test for devnet or Zeko.
In
Mina.LocalBlockchain
, two methodscurrentSlot()
andMina.getNetworkState().globalSlotSinceGenesis
gives different values than each other. Because whilecurrentSlot()
calculating current slot on each call it does not update local network state thus it needs to be updated manually by dev which is confusing.The text was updated successfully, but these errors were encountered: