Skip to content

Instantly share code, notes, and snippets.

View AshwinSekar's full-sized avatar

Ashwin Sekar AshwinSekar

View GitHub Profile
if migration_status.is_ready_to_enable() && bank_forks.read().unwrap().is_bank_frozen(migration_status.genesis_block()) {
let genesis_bank = bank_forks.read().unwrap().get(migration_status.genesis_slot());
// Reset poh to the genesis block. This has to be done first before we can clear banks to
// avoid any inflight issues with transaction recording.
Self::reset_poh_recorder(
my_pubkey,
blockstore,
genesis_bank,
poh_controller,
@AshwinSekar
AshwinSekar / check-tvc-votes.sh
Last active September 28, 2024 09:37
Check the current status of the TVC proposal on mainnet
#!/bin/bash
export LC_NUMERIC="en_US.UTF-8"
RPC_URL="https://api.mainnet-beta.solana.com"
MINT="tvcUX2gkQWsPYK2Uq7DeuX9ZJTFF9V3BGJ2isfLMgrg"
YES_ACCT="5ByopEuFqdd1AvXc6czKu6JQkCXdbWJwFMc4Bxe2dgYQ"
NO_ACCT="AhaUueUXYWEuksQdAJMjvjPGAbjnXhYdk2ZrBVtNA9YT"
ABSTAIN_ACCT="AYHPwv8WSNBKYStSQJ7NfgtWxMPz5WSw3MeDtc2Pww5r"
function fetch_vote_token_balance() {