Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am johnny9 on github.
  • I am johnny9dev (https://keybase.io/johnny9dev) on keybase.
  • I have a public key ASB0V9QKFJknQzur4Nnaw98-Etn4u5iJm4CZ2eAshgn-Mwo

To claim this, I am signing this object:

@johnny9
johnny9 / guix_hashes.sh
Created February 14, 2023 13:26
Print out hashes from guix builds
find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
@johnny9
johnny9 / example_test.py.patch
Created December 10, 2022 19:18
Node 1 mines and sends to node 2
diff --git a/test/functional/example_test.py b/test/functional/example_test.py
index 3ea761466..93f5c01d7 100755
--- a/test/functional/example_test.py
+++ b/test/functional/example_test.py
@@ -223,6 +223,25 @@ class ExampleTest(BitcoinTestFramework):
for block in peer_receiving.block_receive_map.values():
assert_equal(block, 1)
+ self.disconnect_nodes(1,2)
+
diff --git a/src/qml/bitcoin.cpp b/src/qml/bitcoin.cpp
index 8391161b3..837bf0c68 100644
--- a/src/qml/bitcoin.cpp
+++ b/src/qml/bitcoin.cpp
@@ -187,7 +187,7 @@ int QmlGuiMain(int argc, char* argv[])
engine.rootContext()->setContextProperty("nodeModel", &node_model);
OptionsQmlModel options_model{*node};
- engine.rootContext()->setContextProperty("options", &options_model);
+ qmlRegisterSingletonInstance<OptionsQmlModel>("org.bitcoincore.qt", 1, 0, "OptionsModel", &options_model);