Skip to content

Instantly share code, notes, and snippets.

View vivekteega's full-sized avatar
💭
Booyakasha

Vivek Teega vivekteega

💭
Booyakasha
View GitHub Profile
@vivekteega
vivekteega / 12-Jan-11-23-pm.log
Last active January 12, 2023 17:54
Description and logs to solve https://flosight.ranchimall.net 's crashes
[2023-01-12T17:41:30.156Z] info: ::ffff:127.0.0.1 "GET /api/block/1f397cdfe1049a4acb22945ba629a52a342f7354cb973173044dc9cab1c12266" 200 581 10.386 "python-requests/2.25.0"
[2023-01-12T17:41:30.182Z] info: ::ffff:127.0.0.1 "GET /api/block/1f397cdfe1049a4acb22945ba629a52a342f7354cb973173044dc9cab1c12266" 200 581 12.923 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/109.0"
[2023-01-12T17:41:30.183Z] info: ::ffff:127.0.0.1 "GET /api/block/1f397cdfe1049a4acb22945ba629a52a342f7354cb973173044dc9cab1c12266" 200 581 14.313 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/109.0"
[2023-01-12T17:41:30.245Z] info: ::ffff:127.0.0.1 "GET /api/tx/ffd71078a88c0640736b70db0639721ff41c36522710ad5b65b48f57bc6f5699" 200 847 35.310 "python-requests/2.25.0"
[2023-01-12T17:41:30.245Z] info: ::ffff:127.0.0.1 "GET /api/tx/ffd71078a88c0640736b70db0639721ff41c36522710ad5b65b48f57bc6f5699" 200 847 35.737 "python-requests/2.25.0"
[2023-01-12T17:41:30.248Z] info: ::ffff:127.0.
@vivekteega
vivekteega / install_flo_core.sh
Created December 30, 2022 09:48
Install script to FLO core wallet
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install -y libboost-all-dev
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev
sudo apt-get install -y libminiupnpc-dev
sudo apt-get install -y libzmq3-dev
sudo apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install -y libqrencode-dev
@vivekteega
vivekteega / crash.log
Created December 12, 2022 07:21
Flosight crash logs
sudo docker logs d98d5952bc75 --tail 4000
[sudo] password for production:
[2022-12-12T06:54:44.789Z] info: ::ffff:127.0.0.1 "GET /api/tx/ada0c79a926e4b2bec36a06b564b8bc0f06431bf754e0fec608858fce7a07e33" 200 3767 2.007 "-"
[2022-12-12T06:54:44.921Z] info: ::ffff:127.0.0.1 "GET /api/addr/F9nrmBVGExjLciUT4M3FnMpd7AfFdzSMwL/balance" 200 6 21.655 "-"
[2022-12-12T06:54:44.941Z] info: ::ffff:127.0.0.1 "GET /api/tx/bf091b8fe1ff7c9cbcd0239fc2082244a462ef53b4cf574333873c219a444793" 200 3360 1.202 "-"
[2022-12-12T06:54:45.006Z] info: ::ffff:127.0.0.1 "GET /api/tx/b45f534c32e422946d9209d5425f9454a5b816c6b1866f7c630e14beaef050e8" 200 3570 1.729 "-"
[2022-12-12T06:54:45.079Z] info: ::ffff:127.0.0.1 "GET /api/addr/FQZx7HW1ZeSBfEbuJLeUs2wRH7FqzLVnc9/balance" 200 6 40.575 "-"
[2022-12-12T06:54:45.274Z] info: ::ffff:127.0.0.1 "GET /api/addr/FDAezJBP2Rm3eKoYgMaaCvJ5tjF1F1EreS/balance" 200 6 53.796 "-"
[2022-12-12T06:54:45.421Z] info: ::ffff:127.0.0.1 "GET /api/addr/FDAezJBP2Rm3eKoYgMaaCvJ5tjF1F1EreS/balance" 200 6 39.794 "-"
[2
@vivekteega
vivekteega / flosight-crash.log
Last active November 17, 2022 09:29
Flosight crash logs
sudo docker logs d98d5952bc75 --follow --tail 500
[2022-11-17T08:29:46.889Z] info: ::ffff:127.0.0.1 "GET /api/tx/f85250bb8d602f34bf491af9965990535230c3d589fbeece14b0ff24c040ec13" 200 2268 2.229 "-"
[2022-11-17T08:29:47.302Z] info: ::ffff:127.0.0.1 "GET /api/tx/31d8a134ac43ff7a8abf0059f9b4e1bb0411628f7e75a25a7f9bff522691f09d" 200 4093 1.793 "-"
[2022-11-17T08:29:47.405Z] info: ::ffff:127.0.0.1 "GET /api/tx/db63c5e521488bb678fe3761f57e1a44f29e4c41d936967a5f7070c0e67e09b3" 200 2991 1.562 "-"
[2022-11-17T08:29:48.173Z] info: ::ffff:127.0.0.1 "GET /api/tx/30f17de91b391235b8623a79377f790168df784e518adffad67b514f81744a06" 200 2636 1.748 "-"
[2022-11-17T08:29:48.275Z] info: ::ffff:127.0.0.1 "GET /api/tx/0c0afcb7a352e4a145104bdf96aa00e15e7178608707e6d1d51b39976bcd9919" 200 2317 1.251 "-"
[2022-11-17T08:29:48.465Z] info: ::ffff:127.0.0.1 "GET /api/tx/31d8a134ac43ff7a8abf0059f9b4e1bb0411628f7e75a25a7f9bff522691f09d" 200 4093 1.581 "-"
[2022-11-17T08:29:48.566Z] info: ::ffff:127.0.0.1 "GET /api/tx/db63c5e521488bb678fe376
@vivekteega
vivekteega / install_supervisor.yml
Created November 6, 2022 12:19
Ansible Playbook to install supervisord on Ubuntu/Debian based systems
---
- hosts: ssdnodes
become: true
remote_user: production
tasks:
- name: Update apt & Install Supervisor
apt:
name: supervisor
state: present
update_cache: true
@vivekteega
vivekteega / Logs
Created November 5, 2022 09:45
TigerVNC crash logs
Process: TigerVNC Viewer [23236]
Path: /Applications/TigerVNC Viewer 1.12.0.app/Contents/MacOS/TigerVNC Viewer
Identifier: com.tigervnc.tigervnc
Version: 1.12.0 (1.12.0f)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: TigerVNC Viewer [23236]
User ID: 501
Date/Time: 2022-11-05 15:12:03.153 +0530
@vivekteega
vivekteega / ftt-testnet-new-code-rescan.log
Created September 1, 2022 05:44
Token tracker testnet , new code rescan
Processing stateF
2022-08-31 16:32:14,583:__main__:Processing block 2194836
2022-08-31 16:32:14,599 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2022-08-31 16:32:14,599 INFO sqlalchemy.engine.base.Engine ()
2022-08-31 16:32:14,599 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2022-08-31 16:32:14,600 INFO sqlalchemy.engine.base.Engine ()
2022-08-31 16:32:14,600 INFO sqlalchemy.engine.base.Engine select attribute, value from contractstructure where attribute != 'contractName' and attribute != 'flodata' and attribute != 'contractAddress'
2022-08-31 16:32:14,600 INFO sqlalchemy.engine.base.Engine ()
2022-08-31 16:32:14,605:__main__:Before tx loop
2022-08-31 16:32:14,615:__main__:Transaction 1 8ea880eedc46c5777f583b36b0ea223d07c96cafcf0e8500894a61d3b8686c4f
@vivekteega
vivekteega / statef_processing.py
Created August 19, 2022 22:22
StateF integration into smart contracts
import requests
from operator import attrgetter
import json
import pdb
'''
USD-INR
https://api.exchangerate-api.com/v4/latest/usd
Parsed stateF
@vivekteega
vivekteega / flosight-crash.txt
Created April 16, 2022 08:09
Flosight crash - 16th April 2022
[2022-04-16T06:45:18.485Z] info: ::ffff:127.0.0.1 "GET /api/addr/FCzABavZJspxT7XyTf74qm2fotN7DLAYhw/balance" 200 6 13.661 "-"
[2022-04-16T06:45:18.724Z] info: ::ffff:127.0.0.1 "GET /api/addr/FLiVadkZZiXc632FSpUJge7eSjKDR8TzLH/balance" 200 6 6.030 "-"
[2022-04-16T06:45:18.967Z] info: ::ffff:127.0.0.1 "GET /api/addr/FLiVadkZZiXc632FSpUJge7eSjKDR8TzLH/balance" 200 6 7.602 "-"
[2022-04-16T06:45:19.209Z] info: ::ffff:127.0.0.1 "GET /api/addr/FLiVadkZZiXc632FSpUJge7eSjKDR8TzLH/balance" 200 6 6.891 "-"
[2022-04-16T06:45:19.463Z] info: ::ffff:127.0.0.1 "GET /api/addr/FDAezJBP2Rm3eKoYgMaaCvJ5tjF1F1EreS/balance" 200 6 19.410 "-"
[2022-04-16T06:45:19.735Z] info: ::ffff:127.0.0.1 "GET /api/addr/FDAezJBP2Rm3eKoYgMaaCvJ5tjF1F1EreS/balance" 200 6 38.495 "-"
[2022-04-16T06:45:19.972Z] info: ::ffff:127.0.0.1 "GET /api/addr/FQm3kxLoonAGPyQQkDL1VJ6EebKeDpZaK3/balance" 200 6 3.348 "-"
[2022-04-16T06:45:20.227Z] info: ::ffff:127.0.0.1 "GET /api/addr/FDAezJBP2Rm3eKoYgMaaCvJ5tjF1F1EreS/balance" 200 6 19.439 "-"
[2022-04-16T06:45:20
@vivekteega
vivekteega / flosight.logs
Created March 17, 2022 15:54
Flosight reorg error | new code + scratch rebuild
[2022-03-17T15:43:16.952Z] info: Block Service: checking the saved tip...
[2022-03-17T15:43:16.952Z] info: Block Service: saved tip is good to go.
[2022-03-17T15:43:16.952Z] info: Block Service: Gathering: 0 block(s) from the peer-to-peer network.
[2022-03-17T15:43:16.952Z] info: Block Service: download progress: 0/0 (0%)
[2022-03-17T15:43:16.952Z] info: Block Service: starting p2p block subscription.
[2022-03-17T15:43:16.953Z] info: localhost-block subscribe: p2p/block total: 2
[2022-03-17T15:43:16.953Z] info: Mempool Service: Mempool enabled.
[2022-03-17T15:43:16.954Z] info: Block Service: The best block hash is: 09c7781c9df90708e278c35d38ea5c9041d7ecfcdd1c56ba67274b7cff3e1cea at height: 0. Time between the last 2 blocks (adjusted): invalid number of ms.
[2022-03-17T15:43:20.383Z] info: ::ffff:127.0.0.1 "GET /api/sync" 200 110 0.641 "curl/7.52.1"
[2022-03-17T15:43:50.497Z] info: ::ffff:127.0.0.1 "GET /api/sync" 200 110 0.550 "curl/7.52.1"