Eric Lombrozo [ARCHIVE] on Nostr: 📅 Original date posted:2012-03-22 📝 Original message:Hey, guys. I've been ...
📅 Original date posted:2012-03-22
📝 Original message:Hey, guys.
I've been writing a number of apps that require realtime event
notifications, where the JSON-RPC API clearly doesn't suffice.
There are two approaches I've been taking to this end:
1) Writing my own library for dealing with raw bitcoin structures and
connecting to bitcoin nodes via the bitcoin protocol.
2) Making custom builds of the satoshi client putting callback hooks
in key points.
Neither of these two approaches is ideal. (1) involves a lot of code
duplication, (2) involves patching the satoshi client source
each time I grab a later version, with the everpresent risk of
something breaking and the need to continue maintaining these patches.
Moreover, unfortunately many of these key points happen to be in files
like main.cpp which see frequent changes.
I would like to propose adding these callback hooks to the main
branch. I am willing to help locate these key points, reorganize the
code
to place these methods in separate source files, define a callback
mechanism, and contribute source code.
-Eric Lombrozo
Published at
2023-06-07 03:13:44Event JSON
{
"id": "9191e764a98010782b51491e16cd2f6fcaa8506a9b3787c79085115e453df61a",
"pubkey": "e899768d254f3537af7e26455968583632d0ab0bd4c780445eacfa087ac80d8f",
"created_at": 1686107624,
"kind": 1,
"tags": [
[
"e",
"4112c232dc56486730d37a669a03463d60b347d712559d9410b1c32a5390087d",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📅 Original date posted:2012-03-22\n📝 Original message:Hey, guys.\n\nI've been writing a number of apps that require realtime event\nnotifications, where the JSON-RPC API clearly doesn't suffice.\n\nThere are two approaches I've been taking to this end:\n\n1) Writing my own library for dealing with raw bitcoin structures and\nconnecting to bitcoin nodes via the bitcoin protocol.\n2) Making custom builds of the satoshi client putting callback hooks\nin key points.\n\nNeither of these two approaches is ideal. (1) involves a lot of code\nduplication, (2) involves patching the satoshi client source\neach time I grab a later version, with the everpresent risk of\nsomething breaking and the need to continue maintaining these patches.\nMoreover, unfortunately many of these key points happen to be in files\nlike main.cpp which see frequent changes.\n\nI would like to propose adding these callback hooks to the main\nbranch. I am willing to help locate these key points, reorganize the\ncode\nto place these methods in separate source files, define a callback\nmechanism, and contribute source code.\n\n-Eric Lombrozo",
"sig": "bb4b6281760bd12ad42d8c58601653c71087c246d2129ead34637ceb390e3e4a7e1b532e96dafc928f2362b084db543051c68d18fdb190a742812910caba7e18"
}