#Question: 'setTiming ' doesnot work on my case:

11 messages · Page 1 of 1 (latest)

lone echo
#

'setTiming' works on LocalBlockchain on my device, but I am meeting issues on Berkeley.

Description:

Originally, there are 3e9 Mina on the account: https://berkeley.minaexplorer.com/wallet/B62qnbZrRj5d8W5Yy7dxSuwU2zWWB2wtz3HAN7NPSykd3KHsijiU2yZ

then trigger one @method to timing-lock it by 2e9 Mina, and release it periodically:
https://berkeley.minaexplorer.com/transaction/5JtwtZQZRqKFfy668MRwPhxrzHWetoSo2aSREVVA28rdpBi4Kdpw
tips: this tx is confirmed on Block#9102

However, before 'cliffTime', I could still transfer 2e9 Mina away by triggering another @method :
https://berkeley.minaexplorer.com/transaction/5JuuVz2i7gxsh1L85knBZhtAyV7QJGifzWEBiZFPsK4Ph4a62ibG
tips: this tx is confirmed on Block#9103

code as below attached pic.

Could any body pls help take a review the issues? appreciate!

near elm
#

Just quickly looking but from the screenshot the cliff time is slot 5 which is well past, was this the account you expected to be locked? The vesting increment is every slot and Berkeley is on slot 16350 so this would be fully unlocked wouldn't it?

lone echo
#

yes, the account is which I expected to be locked.

According to explorer, Block#9102 is at Slot 15974, and Block#9103 is 15976, just 2 slots increments, about 6mins. But cliffTime is 5 slots from Block#9102.

near elm
#

Cliff time is the absolute slot time it’s not relative to the transaction.

#

As per this post #1088775610022764616 message you could calculate the time or slot number based on the Genesis timestamp of Berkeley. Locally, you are always starting from a fresh state which is why it works there.

little loom
#

If that's true then our docs are wrong 😅

#

I thought cliffTime is relative

near elm
#

It certainly isn't for MINA, so I assume that's the same as with a custom token? And seems to actually be confirmed by this test? 🙂

#

I suppose it is relative in MINA but everything was in the Genesis ledger...

#

Maybe if @lone echo can modify the test to use slot time on Berkeley it would be easy enough to confirm this.