- Create file named
config_custom.txtin your Bismuth folder - Enter the following lines:
debug=True
terminal_output=True
debug_level=WARNING
- Restart your node
| from Cryptodome.Cipher import AES, PKCS1_OAEP | |
| from Cryptodome.PublicKey import RSA | |
| from Cryptodome.Random import get_random_bytes | |
| import base64 | |
| import ast | |
| from bisbasic import essentials | |
| from bisbasic.simplecrypt import decrypt | |
| import getpass | |
| key, public_key_readable, private_key_readable, encrypted, unlocked, _, myaddress, keyfile = essentials.keys_load_new("wallet.der") |
| def peersync(self, subdata: str) -> int: | |
| """Got a peers list from a peer, process. From worker(). | |
| returns the number of added peers, -1 if it was locked or not accepting new peers | |
| subdata is a dict, { 'ip': 'port'}""" | |
| with self.peersync_lock: | |
| try: | |
| total_added = 0 | |
| subdata = self.dict_validate(subdata) | |
| data_dict = json.loads(subdata) |
config_custom.txt in your Bismuth folderdebug=True
terminal_output=True
debug_level=WARNING
| sudo apt-get remove libssl-dev | |
| sudo add-apt-repository ppa:bitcoin/bitcoin | |
| sudo apt-get update | |
| sudo apt-get install -y git unzip build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default | |
| sudo ldconfig |
| import hashlib | |
| import os | |
| import sys | |
| import essentials | |
| import mempool as mp | |
| import mining | |
| import mining_heavy3 | |
| import staking | |
| from difficulty import * |
| import hashlib | |
| import os | |
| import sys | |
| import essentials | |
| import mempool as mp | |
| import mining | |
| import mining_heavy3 | |
| import staking | |
| from difficulty import * |
| #calculates kilowatthour production in a month based on pannel wattage and solar radiation | |
| solar_radiation = 4.9 | |
| panel_wattage = 330 | |
| wh = solar_radiation * panel_wattage | |
| kwh = wh / 1000 | |
| kwd_month = kwd * 28 | |
| print (f"watt_hour {wh}") |
| del /f /s /q dist 1>nul | |
| rmdir /s /q dist | |
| mkdir dist | |
| python -m nuitka --follow-imports wallet.py --windows-icon=graphics\icon.ico --standalone --show-progress -j 8 --recurse-all --include-package=coincurve --plugin-enable=tk-inter | |
| robocopy wallet.dist dist\files /MOVE /E | |
| robocopy "C:\Program Files\Python37\Lib\site-packages\Cryptodome" "dist\files\Cryptodome" /MIR | |
| robocopy "C:\Program Files\Python37\Lib\site-packages\coincurve" "dist\files\coincurve" /MIR |
| import json | |
| import tornado.ioloop | |
| import tornado.web | |
| import dator | |
| import threading | |
| import time | |
| class MainHandler(tornado.web.RequestHandler): | |
| def initialize(self, updater): | |
| self.updater = updater |
| from blockchain import blockexplorer | |
| from difflib import SequenceMatcher | |
| def similar(a, b): | |
| return SequenceMatcher(None, a, b).ratio() | |
| def compare (forked_shitcoin_hashes): | |
| winner = None | |
| shitcoin_race_winner = 0 |