This doc has been replaced by the official Ordinals Handbook - https://docs.ordinals.com/guides/collecting/sparrow-wallet.html
#!/usr/bin/env python3 | |
import argparse | |
from math import ceil, floor | |
sign = lambda amt: -1 if amt<0 else (1 if amt>0 else 0) | |
class dobj: |
#!/usr/bin/env python3 | |
import argparse | |
from math import ceil, floor | |
sign = lambda amt: -1 if amt<0 else (1 if amt>0 else 0) | |
class dobj: |
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.
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.
import hashlib | |
import hmac | |
import json | |
import time | |
import urllib.parse | |
from threading import Thread | |
from collections import deque | |
from requests import Request, Session | |
from requests.exceptions import HTTPError |
import numpy as np | |
# expects a numpy array with trades | |
# each trade is composed of: [time, price, quantity] | |
def generate_volumebars(trades, frequency=10): | |
times = trades[:,0] | |
prices = trades[:,1] | |
volumes = trades[:,2] | |
ans = np.zeros(shape=(len(prices), 6)) | |
candle_counter = 0 |
#!/bin/bash | |
# SET GPG KEY FOR ENCRYPTING WITH (COMPRESSES AS WELL) | |
GPG="" | |
# SET DROPBOX API KEY FOR UPLOADS | |
DROPBOX_APITOKEN="" | |
# OPTIONAL SET A DEVICE NAME TO BE USED FOR BACKUPS (DEFAULTS TO /etc/hostname) | |
DEVICE="" |
(This is still a work-in-progress)
As of 2019-04-02 the following PR is has been merged into master which implements channel backups
See also https://twitter.com/alexbosworth/status/1112857863393763329
SCB has been merged into the lnd master branch:
lightningnetwork/lnd#2313 …
It allows for a small backup file to be made to recover a
data-lost channel's funds with peer cooperation. The file