Skip to content

Instantly share code, notes, and snippets.

--- 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;
@Retropex
Retropex / Dockerfile
Created November 9, 2023 14:10
Statoshi docker
FROM debian:latest
RUN apt update
RUN apt-get install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 && apt-get install -y libevent-dev libboost-dev && apt install -y libsqlite3-dev && apt install -y libminiupnpc-dev libnatpmp-dev && apt-get install -y libzmq3-dev && apt install -y systemtap-sdt-dev && apt install -y git
RUN git clone https://github.com/Retropex/Bitcoin.git
RUN ls
@Retropex
Retropex / Ordisrespector.patch
Created November 14, 2023 11:14
Ordisrespector V2
From e2b535915a9c4e04daf6909ab10e68258d43df1d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A9o=20Haf?= <[email protected]>
Date: Tue, 14 Nov 2023 12:06:32 +0100
Subject: [PATCH] Update Ordisrespector to V2
---
src/policy/policy.cpp | 63 +++++++
src/policy/policy.h | 5 +
src/script/interpreter.cpp | 8 -
src/script/script.cpp | 50 ++++++
@Retropex
Retropex / useragent.patch
Created December 9, 2023 18:40
hide user agent
From fe3d04c5f4a47f64700983e787df755fac275471 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A9o=20Haf?= <[email protected]>
Date: Sat, 9 Dec 2023 18:23:48 +0000
Subject: [PATCH] Rename user agent
---
src/clientversion.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/clientversion.cpp b/src/clientversion.cpp
@Retropex
Retropex / BIP-🥜.mediawiki
Last active May 15, 2024 13:17
Squirrel-Resistant Bitcoin Protocol

BIP: 🥜
Title: Squirrel-Resistant Bitcoin Protocol
Author: ChatGPT
Status: Draft
Type: Standards Track
Created: 2024-05-15

Abstract