Skip to content

Instantly share code, notes, and snippets.

@jamesob
jamesob / rangediff.diff
Created November 18, 2021 21:55
git range-diff --color=never upstream/master jonasschnelli/2020/12/filterblocks_rpc HEAD
-: ---------- > 1: 608d8b4a62 rpc: move-only: consolidate blockchain scan args
1: 6a69dd267e ! 2: d836ce3f2f Add scanblocks RPC call - scan for relevant blocks with descriptors
@@ Metadata
Author: Jonas Schnelli <[email protected]>
## Commit message ##
- Add scanblocks RPC call - scan for relevant blocks with descriptors
+ rpc: add scanblocks - scan for relevant blocks with descriptors
+
+ Co-authored-by: James O'Beirne <[email protected]>
/usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')
util/syscall_sandbox.cpp:116:6: error: use of undeclared identifier '__NR_copy_file_range'
{__NR_copy_file_range, "copy_file_range"},
^
util/syscall_sandbox.cpp:271:6: error: use of undeclared identifier '__NR_pkey_alloc'
{__NR_pkey_alloc, "pkey_alloc"},
^
util/syscall_sandbox.cpp:272:6: error: use of undeclared identifier '__NR_pkey_free'
{__NR_pkey_free, "pkey_free"},
^
@jamesob
jamesob / utxo-dumpload.61.62.diff
Created May 27, 2021 20:50
utxo-dumpload.61 -> .62
$ git range-diff master utxo-dumpload.61 utxo-dumpload.62
1: a5d6f365c < -: --------- validation: fix up LoadBlockIndex and RewindBlockIndex for multiple chainstates
2: 356ad5d86 < -: --------- validation: parameterize VerifyDB by chainstate
-: --------- > 1: 24df1d6af validation: change UpdateTip for multiple chainstates
-: --------- > 2: f1c2115cf validation: fix CheckBlockIndex for multiple chainstates
-: --------- > 3: a1b9a476f move-only: unittest: add test/util/chainstate.h
-: --------- > 4: c42dc9aa9 test: refactor: separate CreateBlock in TestChain100Setup
-: --------- > 5: e70c94715 refactor: remove assertions preventing multiple chainstates
-: --------- > 6: 0e06cd361 test: validation: add unittest for UpdateTip behavior
@jamesob
jamesob / inflation.ipynb
Created September 24, 2020 21:01
crackpot inflation calculations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/_posts/2020-01-29-#17487.md b/_posts/2020-01-29-#17487.md
index b59763d..17fafb8 100644
--- a/_posts/2020-01-29-#17487.md
+++ b/_posts/2020-01-29-#17487.md
@@ -13,16 +13,13 @@ status: upcoming
The UTXO cache is a critical datastructure in Bitcoin for both correctness and
performance. It's responsible for maintaining a view of the spendable coins
-based upon the transactions in blocks. The UTXO cache is just a denormalization
-(i.e. a copy of) of the information found in blocks, but it is often consulted

bench-ssd-5 (characteristic of bench-ssd-*)

key value
hostname bench-ssd-5
cpu_model_name Intel(R) Xeon(R) CPU E3-1220 v5 @ 3.00GHz
ram_gb 7.712375640869141
os ['Debian GNU/Linux', '9', 'stretch']
arch x86_64
kernel 4.9.0-8-amd64
@jamesob
jamesob / sdaftuar-15759-4-to-5.diff
Created August 15, 2019 15:34
diff ~/.ackr/15759.sdaftuar.p2p_add_2_outbound_bloc/4.aff2a19/base.diff ~/.ackr/15759.sdaftuar.p2p_add_2_outbound_bloc/5.6962113/base.diff
2c2
< index f9723196b0..716350d853 100644
---
> index 25c964205a..338c271b40 100644
5c5
< @@ -1777,7 +1777,8 @@ bool AppInitMain(InitInterfaces& interfaces)
---
> @@ -1753,7 +1753,8 @@ bool AppInitMain(InitInterfaces& interfaces)
16c16
< index 3c6f5a05f3..9d788a6bca 100644
@jamesob
jamesob / patch.diff
Created July 9, 2019 19:04
Add blocksonly to getpeerinfo
diff --git a/src/net.cpp b/src/net.cpp
index d4bca2ab4e..0d78206662 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -500,6 +500,9 @@ void CNode::copyStats(CNodeStats &stats)
if (m_tx_relay != nullptr) {
LOCK(m_tx_relay->cs_filter);
stats.fRelayTxes = m_tx_relay->fRelayTxes;
+ stats.m_is_blocks_only = false;
+ } else {
@jamesob
jamesob / 9-to-10.diff
Created June 28, 2019 17:32
$ interdiff pr/mergeset.9 pr/mergeset.10
Interdiff between pr/mergeset.9 and pr/mergeset.10
diff <(git diff --no-color pr/mergeset.9~3..pr/mergeset.9) <(git diff --no-color pr/mergeset.10~3..pr/mergeset.10)
513c513
< index fca29a9f31..8aca1a7168 100644
---
> index 87ff6e62ba..bf61808235 100644
872c872
< @@ -844,13 +735,14 @@ bool ArgsManager::ReadConfigStream(std::istream& stream, const std::string& file
---
> @@ -838,13 +729,14 @@ bool ArgsManager::ReadConfigStream(std::istream& stream, const std::string& file
@jamesob
jamesob / 8-to-9.diff
Created June 27, 2019 21:24
interdiff pr/mergeset.8 pr/mergeset.9
Interdiff between pr/mergeset.8 and pr/mergeset.9
`diff <(git diff --no-color pr/mergeset.8~3..pr/mergeset.8) <(git diff --no-color pr/mergeset.9~3..pr/mergeset.9)`
2c2
< index ec3d81b76f..27fd14dea3 100644
---
> index 39e8d3d689..f4dcc52c31 100644
5c5
< @@ -209,6 +209,7 @@ BITCOIN_CORE_H = \
---