Skip to content

Instantly share code, notes, and snippets.

View single_hop_throughput_test.py
from concurrent import futures
from fixtures import * # noqa: F401,F403
from time import time, sleep
from tqdm import tqdm
from pyln.testing.utils import sync_blockheight, wait_for
from pytest_benchmark.stats import Metadata
from contextlib import contextmanager
import itertools
import logging
View pgp-words-improved.py
#!/usr/bin/env python
# pgp-words.py
# Copyright (C) 2015 Joe Ruether jrruethe@gmail.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
View pgp-words.py
#!/usr/bin/env python
# pgp-words.py
# Copyright (C) 2015 Joe Ruether jrruethe@gmail.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
View satnode_twitter.py
# run in satellite/api/examples directory
# note 0bin.net pasting requires zerobinpaste tool
# https://github.com/sametmax/0bin/blob/master/docs/.build/html/_sources/en/zerobinpaste_tool.txt
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import tweepy
import glob
import os
import subprocess
View mnemonic.py
#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 thomasv@gitorious
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
View clnd_liquid
$ ./cli/lightning-cli listpeers
{
"peers" : [
{ [35/1969]
"id" : "0322d8d3fb7e77a88f373fa369a3e91cb63a24f1313c480ae09c5ffc56dbef7ead",
"connected" : true,
"netaddr" : [
"192.168.1.230:9735"
View liquid_lightning_listpeers
$ ./cli/lightning-cli listpeers
{
"peers" : [
{
"id" : "02954a618a5684fbb7454d0c1bc87579d5164c35829fccc54d9f4df1a369356b48",
"connected" : true,
"netaddr" : [
"192.168.1.166:9735"
View clnd_dependencies
sudo apt-get install -y \
autoconf automake build-essential git libtool libgmp-dev \
libsqlite3-dev python python3 net-tools zlib1g-dev libsodium-dev
View clnd_output
$ ./lightningd/lightningd --network liquid
2019-06-29T23:14:40.599Z lightning_gossipd(29574): We seem to be missing gossip messages
2019-06-29T23:14:40.689Z lightningd(29562): --------------------------------------------------
2019-06-29T23:14:40.689Z lightningd(29562): Server started with public key 02954a618a5684fbb7454d0c1bc87579d5164c35829fccc54d9f4df1a369356b48, alias $
OUDFIRE (color #02954a) and lightningd v0.6rc1-1998-g6d4c40f
2019-06-29T23:22:46.297Z lightningd(29562): JSON-RPC shutdown
grubles@thinky:~/builds/lightning$ ./lightningd/lightningd --network liquid --log-level debug
2019-06-29T23:22:55.640Z lightningd(29963): testing /home/grubles/builds/lightning/lightningd/lightning_channeld
2019-06-29T23:22:55.641Z lightningd(29963): testing /home/grubles/builds/lightning/lightningd/lightning_closingd
2019-06-29T23:22:55.642Z lightningd(29963): testing /home/grubles/
View lightningd_output
$ ./lightningd/lightningd --network liquid
2019-06-29T23:14:40.599Z lightning_gossipd(29574): We seem to be missing gossip messages
2019-06-29T23:14:40.689Z lightningd(29562): --------------------------------------------------
2019-06-29T23:14:40.689Z lightningd(29562): Server started with public key 02954a618a5684fbb7454d0c1bc87579d5164c35829fccc54d9f4df1a369356b48, alias LOUDFIRE (color #02954a) and lightningd v0.6rc1-1998-g6d4c40f