Skip to content

Instantly share code, notes, and snippets.

@lrhel
lrhel / Solo-Mining.md
Last active December 5, 2021 07:54
Solo-mining Sugarchain with multiple computer

First of all, make sure you have a full node running and fully synced All machines need to be connected to the same local network (e.g same wi-fi)

Node configuration

On the computer with the full node, find the local IP address: On MacOS/Linux you can use

ifconfig
@achow101
achow101 / validate_macho_sig.py
Last active December 14, 2020 11:48 — forked from laanwj/validate_macho_sig.py
Validate cryptographic signature on macos macho binary
#!/usr/bin/env python3
import io
import hashlib
import os
import struct
import sys
import pprint
import macholib.MachO
from macholib.mach_o import LC_CODE_SIGNATURE
@decryp2kanon
decryp2kanon / gitian_ubuntu1804_btc0201.md
Last active December 15, 2023 21:56
Gitian on Ubuntu 18.04 (Bionic) for BTC v0.20.1

Gitian on Ubuntu 18.04 (Bionic) for BTC v0.20.1

VM

echo "3756b3201007a88da35ee0957fbe6666c495fb3d8ef2e851ed2bd1115dc36446 *ubuntu-18.04.5-live-server-amd64.iso" | sha256sum -c | grep OK
# (must return OK)
  • Installing VM

Keybase proof

I hereby claim:

  • I am decryp2kanon on github.
  • I am decryp2kanon (https://keybase.io/decryp2kanon) on keybase.
  • I have a public key ASBHNr8m0bNGOjcbX0RIFpqJe3BBs2YrYdUkWdP1RA5VYAo

To claim this, I am signing this object:

@fjahr
fjahr / bitcoin_debugging.md
Last active March 6, 2024 11:43
Debugging Bitcoin Core

Moved to https://github.com/fjahr/debugging_bitcoin to allow for better collaboration.

This document is currently optimized for MacOS. If you would like to help me add Linux equivalent commands, please let me know.

Debugging Bitcoin Core

This guide is designed to give beginners of C++ development and/or people new to the bitcoin core code base an overview of the tools available for debugging issues as well as giving hints where issues may trip you up.

Signet

This is a description of how to get started with Signet. This document assumes you are capable of using git, and that you are able to compile Bitcoin. (If you have not yet done so, you should begin by doing that now.)

Fetch and compile signet

$ git clone https://github.com/kallewoof/bitcoin.git signet
$ cd signet
$ git checkout 2003-signet-consensus
@hebasto
hebasto / gitian-build.py
Last active September 22, 2020 22:37
bitcoin/contrib/gitian-build.py mod
#!/usr/bin/env python3
#
# bitcoin/contrib/gitian-build.py
#
# Mods:
# * no package management
# * default --jobs 4
# * always --detach-sign
# * always --no-commit
@laanwj
laanwj / gitian.md
Last active September 23, 2020 15:35
gitian buildling on debian 9.5

Some changes are needed to build on debian because of the switch of the guest OS to bionic.

lxc that comes with debian is not high enough version to support bionic (the minimum is 2.1.1), so need to build from scratch.

debootstrap that comes with debian will give the following error:

    $ bin/make-base-vm --lxc --suite bionic --arch amd64                                                                                              
 E: No such script: /usr/share/debootstrap/scripts/bionic
Block time: 1.5 minutes(90 seconds)
Total coins: 105120000
Genesis Hash: ff9f1c0116d19de7c9963845e129f9ed1bfc0b376eb54fd7afa42e0d418c8bb6
P2PKH header: 50(0x32)
P2SH header: 55(0x37)
P2SH header2: 5(0x05)
WIF Prefix: 176(0xB0)
WIF Prefix2: 178(0xB2)
magic bytes: 0xdbb6c0fb
RPC port: 9402
@quagliero
quagliero / README.md
Last active February 23, 2023 06:07
Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

This assumes you have brew installed and are comfortable using a terminal.

Following the guide on https://github.com/tpruvot/cpuminer-multi will likely lead to errors about invalid paths to OpenSSL, and neoscrypt errors to the tune of Undefined symbols for architecture x86_64 during the build. I managed to piece together different fixes into an installation that has worked for me. So I hope it works for you.

Requirements

Ensure a c compiler is installed. Type g++ in the terminal and continue with the xcode installation if necessary. If it prints clang: error: no input files, then you can proceed.