Skip to content

Instantly share code, notes, and snippets.

View ceoooooo's full-sized avatar
🌴
On vacation

Vlad Ignatov ceoooooo

🌴
On vacation
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ceo-ooo-ooo on github.
  • I am kid_clique (https://keybase.io/kid_clique) on keybase.
  • I have a public key ASBtaVZmov3R9b7yPBEYZTde2PWn6mOSBUojet7QW__U8Ao

To claim this, I am signing this object:

@ceoooooo
ceoooooo / gist:ec3d871cd48f6aa0b2381ddb4e11c6eb
Created August 13, 2018 22:07
фФАст электрум
https://gist.github.com/fishbullet/5583e09a17a22447efdc29bee495e322
➜ curl --data '{"jsonrpc": "2.0", "method": "list_accounts", "params": ["gm",200], "id": 1}' http://213.133.103.178:14557/rpc
{"id":1,"error":{"code":1,"message":"10 assert_exception: Assert Exception\n!ec: websocket send failed: invalid state\n {\"msg\":\"invalid state\"}\n th_a websocket.cpp:164 send_message\n\n {\"call.method\":\"list_accounts\",\"call.params\":[\"gm\",200]}\n th_a http_api.cpp:107 on_request","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"websocket.cpp","line":164,"method":"send_message","hostname":"","thread_name":"th_a","timestamp":"2018-08-02T12:06:21"},"format":"!ec: websocket send failed: ${msg}","data":{"msg":"invalid state"}},{"context":{"level":"warn","file":"http_api.cpp","line":107,"method":"on_request","hostname":"","thread_name":"th_a","timestamp":"2018-08-02T12:06:21"},"format":"","data":{"call.method":"list_accounts","call.params":["gm",200]}}]}}}%
14:06:22 in ~
➜ curl --data '{"jsonrpc": "2
{
"chain_id": "6a6301813079a2fd9827c7b85e33c9ec8febf75643f4ce4aeb1e25badb186183",
"my_accounts": [{
"id": "1.2.17",
"membership_expiration_date": "1969-12-31T23:59:59",
"registrar": "1.2.17",
"referrer": "1.2.17",
"lifetime_referrer": "1.2.17",
"network_fee_percentage": 2000,
"lifetime_referrer_fee_percentage": 8000,
0xf7fc9f1c17002977a04b6a92c343567df8aa6d11

Keybase proof

I hereby claim:

  • I am narikatel on github.
  • I am kid_clique (https://keybase.io/kid_clique) on keybase.
  • I have a public key ASA97A8wGi703lRBMM8XOqAw-Sw61EExGtGw4X4sjvwvqgo

To claim this, I am signing this object:

@ceoooooo
ceoooooo / get_object.js
Created April 25, 2018 16:23
birshares
function objectType(id) {
var name;
var color;
var parts = id.split(".");
var object_type = "";
if (parts[0] == "1" && parts[1] == "1")
object_type = "BASE";
else if (parts[0] == "1" && parts[1] == "2")
object_type = "ACCOUNT";
else if (parts[0] == "1" && parts[1] == "3")
@ceoooooo
ceoooooo / gist:cdf9c5a8f0b46c434392a56018110873
Last active February 17, 2018 01:42
ERROR! bitshares /local/include/boost/coroutine/detail/config.hpp:17:4
ПРоблема с инициализацией bitshares
Траблы по EOS и Bitshares OPENSSL !!!
https://golos.io/eos/@gbir/instrukciya-dlya-sborki-eos
добавить нада версию
cmake -DBOOST_ROOT="$BOOST_ROOT"
BOOST_ROOT=$HOME/opt/boost160
cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib
Для работы нужно запустить один экземпляр bitcoind в качестве демона, чтобы он работал в качестве полноценного узла сети и отдавать ему команды с помощью еще одной копии bitcoind. Взаимодействие между ними происходит по JSON-RPC через 8332й tcp порт. Для того чтобы они узнавали и доверяли друг другу нужно задать rpcpassword, который прописывается в файле ~/.bitcoin/bitcoin.conf как rpcpassword=blah-blah-blah. Если у вас нет такого файла то его нужно создать. Туда же можно прописать и другие параметры из тех, что указываются при запуске демона.
Полный список параметров можно получить запустив bitcoind с ключем --help или -?, вот пример того, что мы увидим в ответ:
Bitcoin version 0.5.2-beta
Usage:
bitcoind [options]
0xd6f700697e5ab26dc580a5b7766c89e01009b98d