This file contains 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
/* | |
* Generated by dtrace(1M). | |
*/ | |
#ifndef _PROBES_H | |
#define _PROBES_H | |
#include <unistd.h> | |
#ifdef __cplusplus |
This file contains 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
''' | |
To make this file available to your gdb process: | |
2. (gdb) source attach_helper.py | |
To use the custom command: | |
1. `attach_bitcoind` to make the debugger wait for a bitcoind process to attach on | |
2. Start bitcoind (e.g a functional test from another terminal) | |
3. Debug | |
''' |
This file contains 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/bash | |
# This script generates flame graphs by using DTrace to sample the active stack frames of the | |
# specified process and then https://github.com/brendangregg/FlameGraph to convert the | |
# stack traces into the flame graph. | |
# Note: On all current MacOS versions System Integrity Protection (SIP) is enabled by default and | |
# prevents most uses of dtrace. The usual way to make dtrace work on MacOS is to boot into | |
# recovery mode and disable some of the SIP protections with `csrutil enable --without dtrace` | |
# Usage: |
This file contains 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
/* | |
* Generated by dtrace(1M). | |
*/ | |
#ifndef _PROBES_H | |
#define _PROBES_H | |
#if !defined(DTRACE_PROBES_DISABLED) || !DTRACE_PROBES_DISABLED | |
#include <unistd.h> |
This file contains 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
import fetch from "node-fetch"; | |
const START_BLOCK = 1247561; // 2021-03-25 21:00 | |
const END_BLOCK = 1761444; // 2022-03-25 21:00 | |
const calculateBlockFees = async (blockHash) => { | |
const response = await fetch( | |
`https://liquid.network/api/block/${blockHash}/txs` | |
); | |
const txs = await response.json(); |