kwilteam / kwil-db

Kwil DB, the database for web3
https://www.kwil.com/
Other
36 stars 12 forks source link

make @block_timestamp available in action call #1084

Open Yaiba opened 4 days ago

Yaiba commented 4 days ago

Right now @block_timestamp is only available in TX, but action/procedure call.

Since we've already save the timestamp in block header, we can set the timestamp from the latest block when action/procedure call.

This is realated to #903. I'm not sure if there is a reason we didn't make it available in action/procedure call