Skip to content

Instantly share code, notes, and snippets.

View GlenCooper's full-sized avatar
🧡
Hodling BTC

Glen Cooper GlenCooper

🧡
Hodling BTC
View GitHub Profile
npub15n94rarp3n7dz6edx9cugeshn0kcuxtugwu9nzprkpx7yekw7ygqplqru4
--- a/src/script/interpreter.cpp
+++ b/src/script/interpreter.cpp
@@ -504,6 +504,14 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
return set_error(serror, SCRIPT_ERR_MINIMALDATA);
}
stack.push_back(vchPushValue);
+ if ((flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS) && opcode == OP_FALSE) {
+ auto pc_tmp = pc;
+ opcodetype next_opcode;
+ valtype dummy_data;
Twitter ID Screen name Followers Removal observed Before After
17461978 SHAQ 15612791 2022-02-26T22:24:52Z SHAQ.ETH SHAQ.SOL
21910850 jakeowen 2119904 2022-02-26T15:45:18Z jakeowen.eth Jake Owen
7846 ijustine 1811449 2022-03-09T14:43:37Z iJustine.eth iJustineUltra
1666038950 BoredElonMusk 1752290 2022-02-17T08:05:47Z bored.eth Bored
381051960 ethRuby 1267133 2022-03-19T08:08:11Z CryptoSolis.eth Ruby
1282418324228337665 wsbmod 832406 2022-02-24T06:52:07Z wsbmod.eth wsbmod
20882981 EclecticMethod 495235 2022-02-18T04:39:30Z eclecticm.eth Eclectic Method
811350 alexisohanian 479340 2022-02-08T06:31:55Z AlexisOhanian.eth 7️⃣7️⃣6️⃣ Alexis Ohanian 7️⃣7️⃣6️⃣
22784458 Fwiz 410813 2022-03-22T08:54:42Z Ryan Wyatt - fwiz.eth 💜 Ryan Wyatt - @ GDC
@metasikander
metasikander / NIP-05_Simple_Guide.md
Last active February 13, 2024 20:09
A small minimal guide on setting up NIP-05 identifier on branle/nostr

This is a very basic guide, just to understand what's needed to set it up.
If you have any questions you can find me at https://nostr.com/8355095016fddbe31fcf1453b26f613553e9758cf2263e190eac8fd96a3d3de9

Prerequisite

Setup static file on server

Create a file that resolves to <domain>/.well-known/nostr.json, and fill it out like this (enter the name you want to use, and input your own public key, make sure its the HEX-key):

{
@manosv
manosv / .bashrc
Created April 29, 2020 14:48 — forked from 21isenough/.bashrc
Broadcast raw hex transaction over blockstreams TOR API
TorThisTx() {
# Rename "TorThisTx() to whatever you want the command to be
# Broadcast raw hex transaction over blockstreams TOR API with curl
curl --socks5-hostname localhost:9050 -d $1 -X POST http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/tx
}
@21isenough
21isenough / .bashrc
Last active April 14, 2022 18:58
Broadcast raw hex transaction over blockstreams TOR API
For context: https://twitter.com/21isenough/status/1255182788686462983?s=20
TorThisTx() {
# Rename "TorThisTx() to whatever you want the command to be
# Broadcast raw hex transaction over blockstreams TOR API with curl
curl --socks5-hostname localhost:9050 -d $1 -X POST http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion/api/tx
}
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFw8N4EBEADDv38WWb4+IDku5NxpDGyhX9Of0/KfSCATdNVnjsa8yriNBB5B
V3U3Nu+zZQF/Yd54h2GfO+JgeMP2XIqJ26+OaWvhVCpJ6oZbHPCl1FutebSFOc+x
I2d3Ki1BYoiLtWCkdfyKQUH3+7JTV2uCQZQZ+of6l35i71sj5T59HolpmUp8ZYx/
ztNQOxJH02GEvyoK8yUDu0gPGECJ/UtCdysy+V36h/Np5XNIKdd62hh/YAeopvCg
Mf+0dr6Es72sBXWMTzyOLE/L8KJUaIjupq4TkD1sbtLHW+7ocuJ+JUZ/12ouNrNf
lVuEA8z9udkm5p0GMv+Gu24YBLCNESjIHPd2uRrNnAz5qUG8lWK1rXDqFOMimhKS
rtdoPEmIxZxLj2TN64cFCk2e7HNJRjFOTxoDgPyrdW/CRBiCWcTQ8e92ukrLVep0
6m+/U2p+HIDwZyy63t6U2m01GoF97qEaRpXOM6vUSlund3i5M6DdAAyd/AaiP3Nt
@Belial-public
Belial-public / BitcoinVersioning.md
Created February 7, 2020 06:39 — forked from gavinandresen/BitcoinVersioning.md
Suggestions on more smoothly rolling out blockchain validation rule changes

Blockchain Rule Update Process

We recently rolled out two changes to the Bitcoin block acceptance rules (BIP16 and BIP30); this document records the lessons learned and makes recommendations for handling future blockchain rule changes.

Note: there are "soft" rule changes and "hard" rule changes. "Soft" changes tighten up the rules-- old software will accept all the blocks and transactions created by new software, but the opposite may not be true. "Soft" changes do not require the entire network of miners and merchants and users to upgrade or be left behind.

"Hard" changes modify the rules in a way that old, un-upgraded software consider illegal. At this point it is much, much more difficult (some might say impossible) to roll out "hard" changes, because they require every miner and merchant and user to upgrade.

Lessons Learned

@jeffrade
jeffrade / bitcoind-start.sh
Last active April 13, 2024 21:08
bitcoind systemd service and start script.
#!/bin/bash
# Just a simple wrapper to start bitcoind.
#
# If using systemd, simply create a file (e.g. /etc/systemd/system/bitcoind.service)
# from example file below and add this script in ExecStart.
# https://raw.githubusercontent.com-/bitcoin/bitcoin/76deb30550b2492f9c8d9f0302da32025166e0c5/contrib/init/bitcoind.service
#
# Then run following to always start:
# systemctl enable bitcoind
@alexbosworth
alexbosworth / inotify-channel-backup.md
Last active March 29, 2024 01:33
Backup channel.backup file using systemd and inotify

LND backup script for channel.backup using inotify

Install inotify

sudo apt install inotify-tools

Create script to watch for changes and copy on change