Skip to content

Instantly share code, notes, and snippets.

View faddat's full-sized avatar

Jacob Gadikian faddat

View GitHub Profile
{
"genesis_time": "2021-05-08T11:59:37.083249Z",
"chain_id": "baby-1",
"initial_height": "43562969",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "1000"
},
@faddat
faddat / gist:b9370131477c8abd81d65ed8e22174f4
Last active March 30, 2021 23:20
Helder technique to get seeds and genesis
curl -s https://liquidity.app.beta.starport.cloud/genesis | jq -r .result.genesis > genesis.json
gaiad start --p2p.persistent_peers 9e4fdb70e611038c92b6875757d7cd48ea51bd3c@liquidity.app.beta.starport.cloud:26656
@faddat
faddat / 3hrmainnet.md
Last active March 29, 2021 08:55
Starport Demo 2.0

Three hours to mainnet

This is a game for three or more players.

Server

For servers I've really come to love:

  • Hetzner.de
  • Contabo (word of mouth tells me it's good, I am a hetzner man)
@faddat
faddat / config.ini
Created December 3, 2020 18:28
whaleshares full node
checkpoint = [20540000, 01396a60cb0e4540181a13e0bd0dea22e161371b]
seed-node = 51.15.253.50:2001 # baabeetaa
seed-node = 51.15.35.42:2001 # baabeetaa
seed-node = seed-wls.bushkill.rocks:2001 # bushkill
seed-node = wseed.kidw.space:2001 # kid-witness
shared-file-size = 10G
webserver-http-endpoint = 127.0.0.1:8090
webserver-thread-pool-size = 2
plugin = chain p2p json_rpc webserver witness account_by_key tags follow block_history myfeed podfeed blogfeed sharesfeed account_history notification podtags account_tags tips_sent tips_received account_by_key_api follo$
max-block-age = 200
cat /Library/LaunchDaemons/net.hns.hnsd.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>net.hns.hnsd</string>
<key>ProcessType</key>
@faddat
faddat / starportdemo
Last active November 6, 2020 16:48
Starport Functional Demonstration
**DO THE FOLLOWING**
If it takes more than 20 minutes, let me (https://twitter.com/@gadikian) know, it means that something is wrong.
The Raspberry Pi image may take 15-30 minutes to build.
ensure that you have node.js, go and the github cli installed.
```bash
# Clone Starport Repo
git clone https://github.com/tendermint/starport
@faddat
faddat / install.sh
Created September 19, 2020 15:19
zerotier installer
#!/bin/bash
<<ENDOFSIGSTART=
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
ENDOFSIGSTART=
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
#
@faddat
faddat / corporation.toml
Last active July 21, 2020 09:57
chaindao.toml
# This is a TOML document.
# It can be used to Generate a blockchain that controls a corporation.
# Name Your Chaindao
title = "Chaindao"
# Corporation is a combination of software and legal process that results in the creation of a blockchain-controlled Corporation.
# To create your own Corporation, simply fork this file into a new repository and do like: `starport serve your-corporation.toml`
# Corporation also may not be the perfect name for this, as indeed, this setup can be used for DAOs and communities, as well.
Dec 09 17:21:39.342 INFO This is Grin-Miner version 0.4.2 (git b143b64), built for x86_64-unknown-linux-gnu by rustc 1.30.1.
Dec 09 17:21:39.344 DEBG Built with profile "release", features "" on Sun, 09 Dec 2018 00:37:26 GMT.
Dec 09 17:21:39.344 DEBG Starting solvers
Dec 09 17:21:39.344 DEBG Loading miner plugin: /home/boot/grin-miner/target/release/plugins/cuckaroo_mean_cuda_29.cuckooplugin
Dec 09 17:21:39.346 DEBG Loading miner plugin: /home/boot/grin-miner/target/release/plugins/cuckaroo_mean_cuda_29.cuckooplugin
Dec 09 17:21:40.448 WARN Connection Status: Connected to Grin server at stratum.mwgrinpool.com:3333.
Dec 09 17:21:40.548 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"login","params":{"agent":"grin-miner","login":"http://70.16.37.148:13415","pass":""}}
Dec 09 17:21:40.548 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"getjobtemplate","params":null}
Dec 09 17:21:41.049 DEBG Received message: {"id":"37","jsonrpc":"2.0","method":"getjobtemplate","result":{"difficulty":1,"height
@faddat
faddat / gist:f3f0523d8d308fa4db3e75e3dc2ec385
Last active December 9, 2018 22:24
Grin Server Log File grep mining
cat grin-server.log | grep mining
20181205 10:25:46.694 INFO grin_servers::mining::stratumserver - (Server ID: StratumServer) Starting stratum server with edge_bits = 30, proof_size = 42
20181205 10:25:46.696 WARN grin_servers::mining::stratumserver - Stratum server started on 127.0.0.1:13416
20181205 10:27:05.632 WARN grin_servers::mining::stratumserver - (Server ID: StratumServer) New connection: 127.0.0.1:48290
20181205 10:32:05.584 DEBUG grin_servers::mining::mine_block - get_coinbase: BlockFees { fees: 0, height: 69264, key_id: Some(Identifier(0300000000000000000000000000000000)) }
20181205 10:32:05.590 DEBUG grin_servers::mining::mine_block - Built new block with 0 inputs and 1 outputs, network difficulty: 76257, cumulative difficulty 4653714906
20181205 10:32:05.590 DEBUG grin_servers::mining::stratumserver - (Server ID: StratumServer) sending block 69264 with id 0 to stratum clients
20181205 10:32:20.145 DEBUG grin_servers::mining::mine_block - get_coinbase: BlockFees { fees: 8000000, height: 69264,