Skip to content

Instantly share code, notes, and snippets.

cc32d9 / eos_stats.txt
Last active Feb 5, 2021
EOS stats 2020-11-12
View eos_stats.txt
MariaDB [eosio_activity]> select sum(counter) S, count(distinct authorizer) A, action, contract from eos20210116_DAILY_COUNTS where xday='2021-02-03' group by contract, action order by S desc limit 50;
| S | A | action | contract |
| 192012703 | 4878 | transfer | eosio.token |
| 93927965 | 76 | transfer | eidosonecoin |
| 1972506 | 24 | transfer | eosiopowcoin |
| 762427 | 26 | mine | gravyhftdefi |
| 482590 | 4 | stamp | wordproofcom |
| 416986 | 1 | quietransfer | gravyhftdefi |
cc32d9 /
Created Oct 31, 2020
Aarin Hagerty on history of DPOS governance

Aarin Hagerty, [30.10.20 14:48] [In reply to Luka Perrrcic] I would like to provide some historical context regarding this discussion of DPoS voting mechanisms.

BitShares ended up with an approval voting system (which one can think of as 1 token infinity votes) for voting for BP (block producer) candidates which then ranked them by approval vote and selected the top N as the set of active block producers. I don't remember the exact series of events and reasoning that led to that decision, but I am sure most of it can be found on the old BitSharesTalk forum (e.g.

There are some advantages of an approval voting system over cumulative voting (, which one can basically think of as 1 token 1 divisible vote, particularly in the case of single winner elections. For example it passes the favorite betrayal criterion ( whereas cu

cc32d9 /
Last active Dec 10, 2020
EOS public node DOS protectrion
apt install iptables-persistent
iptables -N eosio-api
iptables -N api-abuser
iptables -F INPUT
iptables -F eosio-api
iptables -F api-abuser
iptables -F eosio-p2p
cc32d9 /
Last active Mar 25, 2021
How nodeos writes snapshots

How EOSIO nodeos writes snapshots

EOSIO commit c6a7ec0dd816f98a6840f59dca9fed04efd9f7a5 (v2.0.6).

plugins/producer_plugin/producer_plugin.cpp line 1156: producer_plugin::create_snapshot is called by HTTP API call.

plugins/producer_plugin/producer_plugin.cpp line 1187: opens the output stream,

cc32d9 / eosio_newaccount_example.js
Created Mar 14, 2020
Example for building a newaccount transaction in eosjs
View eosio_newaccount_example.js
// here MYACC is the account sending the transaction
// NEWACC is the name of account being created
await (async () => {
try {'Creating account');
const result = await api.transact(

Keybase proof

I hereby claim:

  • I am cc32d9 on github.
  • I am cc32d9 ( on keybase.
  • I have a public key ASB62UjQutf9851px3PcEu9pC1N2YcvkP3UvOc9ImK7RJAo

To claim this, I am signing this object:

cc32d9 /
Last active Aug 23, 2019
Repurposing of Telos WP#25

Repurposing of Telos WP#25

The Telos work proposal #25 was opened with the target of implementing portable snapshots for Chronicle, so that Chronicle data can be easily moved between servers of different OS versions.

As of August 22nd, I added a new feature to Chronicle that allows starting it from a nodeos portable snapshot. So, there's no need to re-scan the whole history in order to get up to date Chronicle data. Now it's enough to point it to a node that just started from a snapshot. This eliminates the need for portable snapshots in Chronicle, so the initial purpose of the WP is obsoleted.

The work proposal asks for 50000 TLOS, which is approximately USD 2500 in current prices.

I propose to re-purpose the WP#25 and set the following deliverables:

cc32d9 /
Last active Apr 15, 2020
Fuzzy's ideas on a new BP pay model

@SirFuzzalot presented an idea for a new PB pay model for an EOSIO network in

Fuzzy, [12.05.19 04:56]
Here is my thought on fixing dpos away from pageantry though. 
Let me find the discussion (should prob post it on whaleshares first but oh well)

Fuzzy, [12.05.19 05:03]
Ok ill just type it here since i am no longer in the group i posted it in initially.
View cc32dninewp1_release
mcleos multisig propose cc32dninewp1 '[{"actor": "atticlabeosb", "permission": "active"},{"actor": "dublinsocial", "permission": "active"},{"actor": "eosasia11111", "permission": "active"},{"actor": "eosauthority", "permission": "active"},{"actor": "eoscafeblock", "permission": "active"},{"actor": "eosgenblockp", "permission": "active"},{"actor": "eosmetaliobp", "permission": "active"},{"actor": "eosnationdon", "permission": "active"},{"actor": "eosnewyorkio", "permission": "active"},{"actor": "eosriobrazil", "permission": "active"},{"actor": "eostribefund", "permission": "active"},{"actor": "goodblockio1", "permission": "active"},{"actor": "lynxlynxlynx", "permission": "active"},{"actor": "teamgreymass", "permission": "active"},{"actor": "worblieosbp1", "permission": "active"}]' '[{"actor": "cc32dninewp1", "permission": "owner"}]' eosio updateauth '{"account": "cc32dninewp1","permission": "owner","parent": "","auth": {"threshold": 1,"keys": [],"accounts": [{"permission": {"actor": "cc32dninexxx","permission"
cc32d9 / nodeos_full_node_setup.txt
Last active Nov 9, 2020
nodeos installation with ZFS
View nodeos_full_node_setup.txt
apt-get update && apt-get install -y aptitude git lxc-utils zfsutils-linux netfilter-persistent sysstat
# find the partition ID that is linked to the storage serial number.
# This will prevent from losing the partition if disk mapping changes
ls -l /dev/disk/by-id/ | grep sda6
zpool create -f zdata /dev/disk/by-id/wwn-0x600507604092b628236df4851535cef5-part6
## Fixate internal IP address of the container
systemctl stop lxc-net
sed -i -e 's,^.*LXC_DHCP_CONFILE,LXC_DHCP_CONFILE,' /etc/default/lxc-net