This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
l = !"git lshort --graph" | |
lg = !"git lg1" | |
lg1 = !"git lg1-specific --all" | |
lg2 = !"git lg2-specific --all" | |
lg3 = !"git lg3-specific --all" | |
cp = cherry-pick | |
cpc = cherry-pick --continue | |
st = status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"sync" | |
) | |
func Highway(asyncProcessor EventProcessor, numWorkers int, inputC chan Event) chan HydratedEvent { | |
outputC := make(chan HydratedEvent, 0) | |
type worker struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import sys | |
import subprocess | |
from os import path | |
from functools import reduce | |
class bcolors: | |
RED = '\033[31m' | |
BLUE = '\033[34m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Somewhat adapted from the same hook and from | |
# https://gist.github.com/kotnik/ef3a62316aa5e8e788a6e4365cb41878 | |
# | |
# Uses my git lshort alias on error. | |
remote="$1" | |
url="$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Props to Pierre-Marie Padiou via https://github.com/lightningnetwork/lightning-rfc/issues/553#issuecomment-455641943 | |
+------------+ | |
| funding tx | | |
+------------+ | |
| | |
| +-------------+ | |
\--------| commit tx B | | |
+-------------+ | |
| | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Tmux setup for running an spv wallet. This creates two wallets (connected to | |
# the same master node): one using regular RPC mode with the ticketbuyer and | |
# voting enabled and a second one with SPV enabled. It receives some coins | |
# after block 32. | |
# | |
# The spv wallet is created in the "spv" dir. | |
set -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./dcrctl.sh getblockchaininfo | |
{ | |
"chain": "mainnet", | |
"blocks": 279436, | |
"headers": 279436, | |
"bestblockhash": "00000000000000004d1ca3ac7aab36e4857f97e78876fc405a1986e99bc87b5a", | |
"difficulty": 419481279, | |
"verificationprogress": 0.9962138767477843, | |
"chainwork": "0x8836d4f2be1b9cdeff59", | |
"initialblockdownload": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Script to setup parallel dcrd nodes with separate wallets. | |
# Useful for testing reorgs by disconnecting nodes, mining individually, then | |
# reconnecting them. | |
# | |
# alpha <------> beta | |
# listen 19100 19200 | |
# rpclisten 19101 <. .> 19201 | |
# w-alpha | | w-beta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1| 2| 3| 4| 5| 6| 7| 8| 9| 10| 11| 12| 13| 14| 15| 16| 17| 18| 19| 20| 21| 22| 23| 24| 25| 26| 27| 28| 29| 30| 31| +Inf | |
0.00010000| 0.00000000 0.0| 0.00010000 0.1| 0.00010000 0.1| 0.00010000 0.1| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 0.9| 0.00010000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Tmux script to create 4 dcrd nodes connected in series. Useful for testing | |
# message relaying | |
# Network layout: | |
# master <-> 1 <-> 2 <-> 3 | |
# 19555 19665 19675 19685 | |
set -e |
NewerOlder