Skip to content

Instantly share code, notes, and snippets.

View nholland94's full-sized avatar

Nathan Holland nholland94

  • San Francisco, CA, USA
View GitHub Profile
@nholland94
nholland94 / mem.py
Last active September 19, 2024 11:15
max_zkapp_account_updates = 6
max_zkapp_txns_per_block = 128
max_txns_per_block = 128
max_txn_pool_size = 3000
k = 290
est_blocks = 3*k # 2*k for best tip path, k for duplicate block producers
est_scan_states = 2*k # k for best tip path, k for duplicate block producers
payment_txn_size = 3072-1968
zkapp_txn_size_max_cost = 235312
func checkImageDiff(img image.Image) bool {
r, g, b, a := img.At(0, 0).RGBA()
baseColor := [4]uint32{r, g, b, a}
bounds := img.Bounds()
results := make(chan bool)
quit := make(chan bool)
isSameColor := func(r, g, b, a uint32) bool {
return baseColor[0] == r && baseColor[1] == g && baseColor[2] == b && baseColor[3] == a
}