Skip to content

Instantly share code, notes, and snippets.

View dev7ba's full-sized avatar

dev7ba dev7ba

View GitHub Profile
@dev7ba
dev7ba / tx_cycling_script.md
Last active March 5, 2024 16:44
Tx cycling attack contrib script

Tx cycling attack contrib script

I would like to expand the assignment expressed in this document just to be sure we are on the same track:

https://docs.google.com/document/d/1qqz7vs49jbqzt3DDqrvmuSxMU9n4trNYaA4QPsrDcRk/edit

What is asked is a Phyton script that analyzes the txs from a bitcoin node with "unlimited" mempool size, calculating the feerate of all "chains of transactions" as in CPFP.

(I assume a "chain of transactions" as is expressed in the document, is the list of unconfirmed transactions that form the full ancestry of one transaction, forming a "transaction package".)

@dev7ba
dev7ba / MempoolDependencyGraph2.json
Created November 15, 2021 10:36
Mempool dependency graph 2
{
"lastModTime": 1636642000555,
"weightInLast10minutes": 4209540,
"fblTxSatVByte": 8,
"blockSelected": 3,
"satVByteSelected": 2,
"txIndexSelected": 1359,
"txIdSelected": "1fddd883ddfadba0bf1383db2f791638b788c0c1694e5391fe8d7ad85c1d8866",
"txDependenciesInfo": {
"nodes": [
@dev7ba
dev7ba / MempoolDependencyGraph1.json
Created November 15, 2021 10:35
Mempool dependency graph 1
{
"lastModTime": 1636385327364,
"weightInLast10minutes": 3299338,
"fblTxSatVByte": 9,
"blockSelected": 3,
"satVByteSelected": 5,
"txIndexSelected": 1674,
"txIdSelected": "68382e1b3f5aace234ddec58709b48e730247d0e30af76a8b9bba832ef4a54b5",
"txDependenciesInfo": {
"nodes": [

Keybase proof

I hereby claim:

  • I am dev7ba on github.
  • I am dev7ba (https://keybase.io/dev7ba) on keybase.
  • I have a public key ASDhbL9sUcHXorwQTk8tTtCPdC5AZvz6mFxAlxtVie6Vdwo

To claim this, I am signing this object: