Skip to content

Instantly share code, notes, and snippets.

View jstarry's full-sized avatar

Justin Starry jstarry

  • Anza Technology
  • Taipei City, Taiwan
View GitHub Profile
@jstarry
jstarry / README.md
Last active April 20, 2024 11:15
2024-04-19 Devnet restart instructions

Summary

For a very long time the devnet snapshot was slightly corrupted in a way that wouldn't cause an issue until crossing the epoch boundary between 678 and 679. In order to get the cluster running again, devnet nodes will need to patch the corrupted snapshot themselves or download a new one and then restart with updated validator args detailed below.

Step 1: Create a snapshot at slot 293327999

(Optional) Download new snapshot instead of creating it

Since it's devnet, it's not as critical to ensure ledger integrity (but it is good practice!). If you so wish, you can download the ledger from one of the

@jstarry
jstarry / transaction_changes.md
Created May 18, 2022 15:45
Wallet Roundtable 5/18/2022

Change 1: Transaction Prioritization

  • From v1.10.14 onwards, validators will try to consume transactions in order of priority which is based on the prioritization fee paid per compute unit.
  • In order to optimize priority / fee paid, transaction should set its compute unit limit as low as possible because leftover compute units are not refunded.

Runtime Features

tx_wide_compute_cap (Implemented in v1.9.7, v1.10.0) (Activated on Devnet & Testnet)

  • Updates compute unit limits to be transaction-wide rather than reset to 200k compute units per transaction instruction. Sets the maximum transaction compute unit limit to 1.4M compute units. The default compute unit limit is also set to 1.4M compute units to avoid breaking existing transactions which rely on consuming more than 200k compute units by spreading compute across multiple instructions.
  • Adds the ComputeBudget::RequestUnits instruction which has two parameters:
    • Compute unit limit
    • Prioritization fee (lamports)

Keybase proof

I hereby claim:

  • I am jstarry on github.
  • I am jstarry (https://keybase.io/jstarry) on keybase.
  • I have a public key ASBu6hY7bNOw07Hhxy4p2OKJMBL1-KBqgKmq_1AIsQ47zwo

To claim this, I am signing this object:

@jstarry
jstarry / yew_required_props.rs
Created June 28, 2019 13:19
Proof of concept for Yew required props
use std::marker::PhantomData;
use yew::Properties;
struct Alpha;
#[derive(Properties)]
struct Props {
#[props(required)]
alpha: Alpha,
beta: Option<bool>,
@jstarry
jstarry / convoy.service
Created January 26, 2019 07:23
Convoy Service Unit - EBS
[Unit]
Description=Convoy Daemon
Before=docker.service
After=network.target
[Service]
User=root
ExecStartPre=/bin/rm /run/docker/plugins/convoy.sock
ExecStart=/usr/local/bin/convoy --socket=/run/docker/plugins/convoy.sock daemon --drivers ebs
Type=simple
Verifying my Blockstack ID is secured with the address 1BUpDxTeksUFmwrgayU1VJsNtix9GPeFnG https://explorer.blockstack.org/address/1BUpDxTeksUFmwrgayU1VJsNtix9GPeFnG
@jstarry
jstarry / git-tree.py
Created August 13, 2014 05:05
Git Tree
#!/usr/bin/env python
# -*- coding: utf-8 -*-
####################################################################
# Check out more of my .dotfiles at github.com/jstarry/dotfiles
#
# Required: colorama -- Install using $ pip install colorama
#
# Pro Tip: alias git branch to "!python git-tree.py"
####################################################################