Mike Hearn [ARCHIVE] on Nostr: 📅 Original date posted:2015-09-18 📝 Original message:> > What one needs for ...
📅 Original date posted:2015-09-18
📝 Original message:>
> What one needs for that, I think, is a library that communicate with the
> node, and which offers functionality abstractly be similar to 'git pull':
> give me the tree path from my current known tip to the best tip, and supply
> the block hashes (and block data) along the way.
>
This is exactly what SPV libraries like bitcoinj do: they know how to build
a block locator, request the blocks forward from the common branch point,
and handle re-orgs onto whatever the current best chain are by downloading
data from a full node.
If your official position is people should all use bitcoinj to do things
like build extra indexes, then great. Send them our way. It already knows
how to calculate a UTXO set indexed by address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150918/af7e248f/attachment.html>
Published at
2023-06-07 17:40:19Event JSON
{
"id": "6b246430542dadfc04e4599466e7e3a2c7b2ff64aa98da6796de29de2e1c2e7d",
"pubkey": "f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2",
"created_at": 1686159619,
"kind": 1,
"tags": [
[
"e",
"5693970ede8357f5aa1e378a2f22e843f3a5f1b8b35bba794e5ea1856edc9c5d",
"",
"root"
],
[
"e",
"f64c59a7bcf7152310bbbc3007d6164748bed3b5c26f1ea521801c39f38296fa",
"",
"reply"
],
[
"p",
"e899768d254f3537af7e26455968583632d0ab0bd4c780445eacfa087ac80d8f"
]
],
"content": "📅 Original date posted:2015-09-18\n📝 Original message:\u003e\n\u003e What one needs for that, I think, is a library that communicate with the\n\u003e node, and which offers functionality abstractly be similar to 'git pull':\n\u003e give me the tree path from my current known tip to the best tip, and supply\n\u003e the block hashes (and block data) along the way.\n\u003e\n\nThis is exactly what SPV libraries like bitcoinj do: they know how to build\na block locator, request the blocks forward from the common branch point,\nand handle re-orgs onto whatever the current best chain are by downloading\ndata from a full node.\n\nIf your official position is people should all use bitcoinj to do things\nlike build extra indexes, then great. Send them our way. It already knows\nhow to calculate a UTXO set indexed by address.\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150918/af7e248f/attachment.html\u003e",
"sig": "b35ada10cc7b76697dc08dd961868734ee163fefb674a1bc53f29e975a5ffee57411e993cedeabb861cad0c0d740b2e4568cc7bcbd3e8569cefe2a32be8024da"
}