I hereby claim:
- I am pillagr on github.
- I am pillagr (https://keybase.io/pillagr) on keybase.
- I have a public key ASAQMyPrOW4yJoT1ac7GVnbFIvZUAyy1V2xGEZEr2BErqAo
To claim this, I am signing this object:
func assertAmountRouted(amt btcutil.Amount, router, sndr, rcvr *lntest.HarnessNode) func() error { | |
return func() error { | |
listReq := &lnrpc.ListChannelsRequest{} | |
ctxb := context.Background() | |
ctxt, _ := context.WithTimeout(ctxb, defaultTimeout) | |
sndrListChannels, err := sndr.ListChannels(ctxt, listReq) | |
if err != nil { | |
return fmt.Errorf("unable to query for %s's channel "+ | |
"list: %v", sndr.Name(), err) |
import requests | |
BASE_URL = 'https://example.com/api/' | |
def post_api(endpoint, data): | |
url = BASE_URL + endpoint | |
try: | |
response = requests.post(url, data) | |
except Exception as e: | |
response = e |
import requests | |
from io import BytesIO | |
import time | |
import asyncio | |
# --------------- API UTIL ----------------- | |
MAIN_URL = 'https://blockstream.info/' | |
TEST_URL = 'https://blockstream.info/testnet/' | |
def post_api(endpoint, data, testnet=False): |
#!/bin/bash | |
num=$1 | |
shift | |
for ((i=1; i<=num; i++)) | |
do | |
$@ | |
done | |
# Example: `run 5 go test pkg/main/*.go` | |
# Example: `run 10 echo redrum` |
import requests | |
import re | |
BASE_URL = "https://www.treasury.gov/ofac/downloads/sdnlist.txt" | |
def get_ofac_page(): | |
url = BASE_URL | |
try: | |
response = requests.get(url) | |
return response.text |
#!/bin/bash | |
TARGET=$1 | |
TXN=$2 | |
echo $TARGET | |
echo $TXN | |
while true; do | |
# BLOCK_HEIGHT=$(curl https://blockstream.info/api/blocks/tip/height) |
I hereby claim:
To claim this, I am signing this object: