|
|
@@ -3,7 +3,7 @@ import { Connection } from "@solana/web3.js";
|
|
|
import { EPOCH_DURATION } from "../constants";
|
|
|
|
|
|
export const getCurrentSolanaTimestamp = async (connection: Connection) => {
|
|
|
- const slot = await connection.getSlot();
|
|
|
+ const slot = await connection.getSlot("finalized");
|
|
|
const blockTime = await connection.getBlockTime(slot);
|
|
|
if (blockTime === null) {
|
|
|
throw new Error("Block time is not available");
|