Jesse on Nostr: I have an application that needs to get certain data from the chain, so it syncs ...
I have an application that needs to get certain data from the chain, so it syncs blocks off the bitcoind rpc. Parses the blocks, checks if there's relevant data and moves to the next block. I want that application to start at genesis (or some birthday block) and sync the chain from there.
Right now I'm getting the headers first, backwards, from tip to birthday. Then sync the blocks forwards, from birthday to tip. I was wondering whether I could skip the headers part and sync directly from birthday to the tip, forwards.
Published at
2024-10-07 21:51:11Event JSON
{
"id": "b9ec42bd222572082aed472b487f5e6b952e3679b2e36a4d8cd7c92108662164",
"pubkey": "3ddc1b50190c42b9ec5d5814a0adc32ed77f6303b729a1b66b704d237ec920d4",
"created_at": 1728337871,
"kind": 1,
"tags": [
[
"p",
"8685ebef665338dd6931e2ccdf3c19d9f0e5a1067c918f22e7081c2558f8faf8"
],
[
"e",
"821130f787e1a2215de1889943bfa19d322274bb086e9313d8bd5091627f34e6",
"",
"reply"
]
],
"content": "I have an application that needs to get certain data from the chain, so it syncs blocks off the bitcoind rpc. Parses the blocks, checks if there's relevant data and moves to the next block. I want that application to start at genesis (or some birthday block) and sync the chain from there. \nRight now I'm getting the headers first, backwards, from tip to birthday. Then sync the blocks forwards, from birthday to tip. I was wondering whether I could skip the headers part and sync directly from birthday to the tip, forwards.",
"sig": "260d8fb6a85d8b9a43c326cfe436ab4d5f30dfb6dfbf710faddd7144f8fd7178179c8feadd552957e2900c960484be303b9e52c012298fa49bf0f6dd8b7e1779"
}