Skip to content

Instantly share code, notes, and snippets.

@jsign
jsign / Makefile
Created July 29, 2019 01:04
Eval in receipt doesn't executed unexpectedly
DEFAULT:
@echo "DEFAULT EXECUTED"
TEST:
$(eval $(shell mkdir BADBADFOLDER))
@echo "TEST EXECUTED"
package main
import (
"fmt"
"log"
"os"
"runtime"
"runtime/pprof"
"strings"
powergate [master~3●] % git rev-parse HEAD
e47b2857ee9a7365679e38fd5a16656bd4a25fea
powergate [master~3●] % pow ffs create
> Instance created with id efa2fcea-860a-4e95-9356-530eb7e89ed2 and token 9f901053-9d4b-4201-b069-fb8fffa591b7
powergate [master~3●] % pow ffs -t 9f901053-9d4b-4201-b069-fb8fffa591b7 stage new10
> Success! Staged asset in FFS hot storage with cid: QmQEdPhE8sggVG3Noss4A79KdG1eRS6uAw4Qu16Mr2zayV
powergate [master~3●] % pow ffs -t 9f901053-9d4b-4201-b069-fb8fffa591b7 config push QmQEdPhE8sggVG3Noss4A79KdG1eRS6uAw4Qu16Mr2zayV
> Success! Pushed cid storage config for QmQEdPhE8sggVG3Noss4A79KdG1eRS6uAw4Qu16Mr2zayV to FFS with job id: a9d80294-0b8c-4797-9c25-73f1a85668c1
powergate [master~3●] % pow ffs -t 9f901053-9d4b-4201-b069-fb8fffa591b7 log QmQEdPhE8sggVG3Noss4A79KdG1eRS6uAw4Qu16Mr2zayV
> 2020-08-18T17:53:33 - Pushing new configuration...
Sending Channels
ID Status Sending To Root Cid Initiated? Transferred Voucher
0 Completed ...RLfZcNJZ ...jyby35hm Y 28.62MiB ...nv4kcsln5yy7rvhnb44vvllsn6zcv2ngqq"}}
1 Completed ...xxpY2EyW ...jyby35hm Y 28.62MiB ...qw56yo6bcop4hgininqfhuqxix7cgc4hqm"}}
2 Completed ...2DHJwfRy ...jyby35hm Y 28.62MiB ...74rbtas4zl5widjvuyaoes7zic3cgowvje"}}
3 Completed ...EBBaQyEk ...jyby35hm Y 28.62MiB ...jol5nvqwdybgs42muvcnnhwbdrpcin4td4"}}
4 Completed ...NNnfVRgR ...jyby35hm Y 28.62MiB ...n6osjncvvzyfqqmyyugsw2vxvjzxgettg4"}}
5 Completed ...RLfZcNJZ ...gvzouvxi Y 11.45MiB ...3afe6jpapvtmgcrphwjeily53gaepzxqh4"}}
6 Completed ...xxpY2EyW ...gvzouvxi Y 11.45MiB ...lw2cyjvlmeasi6iow24pbylioxvj3yuwkm"}}
Sending Channels
ID Status Sending To Root Cid Initiated? Transferred Voucher
52 TransferFinished ...HP9KdAQV ...p6sib5nm Y 1.116GiB ...d5kaid5p2i2qyqesmjuagbmalrfzstw5u4"}}
75 Failed ...HP9KdAQV ...p6sib5nm Y 0B ...d5kaid5p2i2qyqesmjuagbmalrfzstw5u4"}}
Message: Response Rejected
372 Ongoing ...EBBaQyEk ...nspis5ce Y 3.192GiB ...3lvb3q4l4truybsbinhm36lys6qvp2s6hi"}}
380 Ongoing ...RLfZcNJZ ...6kfkjf3m Y 492.2MiB ...fiaofyndahembx6g3kkbvnmz4df5vvstga"}}
381 Ongoing ...xxpY2EyW ...6kfkjf3m Y 74.65MiB ...2miq76lxharskfnrhivmgskd6hcgv4vruy"}}
382 Ongoing ...xxpY2EyW ...ccenbyuq Y 76.79MiB ...yxqglhy77qgrzxpryh5bcithi56defdm2a"}}
@jsign
jsign / miners.json
Last active November 5, 2020 21:10
{
"buckets": [
{
"name": "PL",
"amount": 1,
"minerAddresses": [
"f02665"
]
}
]
#!/bin/bash
### Configs
LOTUS_TAG=v1.2.1
EXTERNAL_DISK_SIZE=1T
GOLANG_TAR=go1.15.5.linux-amd64.tar.gz
IPFS_DOWNLOAD=https://dist.ipfs.io/go-ipfs/v0.7.0/go-ipfs_v0.7.0_linux-amd64.tar.gz
SWAP_SIZE=100G
####
#!/bin/bash
### Configs
LOTUS_TAG=v1.2.1
EXTERNAL_DISK_SIZE=1T
GOLANG_TAR=go1.15.5.linux-amd64.tar.gz
IPFS_DOWNLOAD=https://dist.ipfs.io/go-ipfs/v0.7.0/go-ipfs_v0.7.0_linux-amd64.tar.gz
SWAP_SIZE=100G
####
INFO [04-06|12:56:58.348] Maximum peer count ETH=50 LES=0 total=50
INFO [04-06|12:56:58.357] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [04-06|12:56:58.358] Set global gas cap cap=50,000,000
INFO [04-06|12:56:58.359] Allocated cache and file handles database=/data/ef2/.ethereum/geth/chaindata cache=512.00MiB handles=524,288
INFO [04-06|12:56:58.492] Opened ancient database database=/data/ef2/.ethereum/geth/chaindata/ancient/chain readonly=false
INFO [04-06|12:56:58.494] Reading file name=00.bin
INFO [04-06|12:56:58.494] Building tree name=00.bin
INFO [04-06|12:56:58.494] Serializing tree
INFO [04-06|12:56:58.817] Processing file name=00.bin
INFO [04-06|12:56:58.856] Sorting file name=00.bin
mkdir kaustinen
cd kaustinen
git clone https://github.com/ethpandaops/verkle-testnet.git
git clone https://github.com/gballet/go-ethereum.git
cd go-ethereum
git checkout electra-proof-format
make
cd ..
git clone https://github.com/macladson/lighthouse.git
cd lighthouse