This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |