solana: note lack of clock reliability

This commit is contained in:
Leo 2020-08-04 19:08:02 +02:00
parent d81d916b5e
commit 71c0e29dcf
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ contract Wormhole {
uint32 timestamp = vaa.toUint32(77);
// Verify that the VAA is still valid
// TODO: the clock on Solana can't be trusted
require(timestamp + vaa_expiry < block.timestamp, "VAA has expired");
// Hash the body