Skip to content

Instantly share code, notes, and snippets.

View phm87's full-sized avatar

phm87

View GitHub Profile
@phm87
phm87 / CHIPS.md
Last active July 11, 2019 21:38
CHIPS, LN, Bet, Poker, PANGEA
@phm87
phm87 / Komodo_awesome_list.MD
Last active February 28, 2020 02:21
Komodo awesome list
@phm87
phm87 / KMD_NN_elections_questions.md
Created May 4, 2019 01:03
List of questions to ask after elections
  • Is it allowed or forbidden that a NN candidate sends some of his votes (received from voters) to another NN that he supports ? In case he have too much votes.
  • Is it also forbidden or allowed between nodes of different region candidated by the same person ?
  • Is it also forbidden in case when a candidate dismiss his proposal and stop to be candidate ?
  • If any of the above is forbidden, how to check and who will check ? (it can be a little bit hidden in many small incoming tx of votes) Bounty for community to hunt or 'centralized' control ?

As it seems that a proposal is not, in theory, mandatory (because address that will receive the most of votes coins will be elected). If it is true,

  • If the candidate that received most of votes have no proposal and no region and he arrived 1 day before end of votes, how to know/decide region ? He'd have an advantage to choose himself. An idea would be to choose the region with the most total votes in top 8

If it is true that votes can be traded from 2020 election,

@phm87
phm87 / zsendmany.sh
Created December 28, 2019 11:46 — forked from leto/zsendmany.sh
hush-zsendmany
#!/bin/bash
FROM=$1
TO=$2
AMOUNT=$3
FEE=$4 || 0.0000
hush-cli z_sendmany $FROM "[{\"address\":\"$TO\",\"amount\":$AMOUNT}]" 1 $FEE
@phm87
phm87 / anonset.md
Created January 5, 2020 22:44 — forked from leto/anonset.md
Hush Shielded Pool stats as of Jan 5th 2020

Hush Shielded Pool stats as of Jan 5th 2020

With zindex enabled, the getchaintxstats RPC returns an immense amount of information about zaddr usage. This RPC did not exist in Bitcoin when Zcash forked, so I ported it from latest BTC Core to Komodo and Hush. In the Hush version of this RPC, the -zindex functionality was added.

By default, the RPC gives stats for the last month. It can be given an arbitrary "block window" to calculate stats for any time period. Some statistics apply to the entire chain and are not specific to the block window, such as those below.

The "anonymity set" (anonset) or "shielded pool size" of Hush mainnet:

@phm87
phm87 / anonset.md
Created January 5, 2020 22:44 — forked from leto/anonset.md
Hush Shielded Pool stats as of Jan 5th 2020

Hush Shielded Pool stats as of Jan 5th 2020

With zindex enabled, the getchaintxstats RPC returns an immense amount of information about zaddr usage. This RPC did not exist in Bitcoin when Zcash forked, so I ported it from latest BTC Core to Komodo and Hush. In the Hush version of this RPC, the -zindex functionality was added.

By default, the RPC gives stats for the last month. It can be given an arbitrary "block window" to calculate stats for any time period. Some statistics apply to the entire chain and are not specific to the block window, such as those below.

The "anonymity set" (anonset) or "shielded pool size" of Hush mainnet: