Pieter Wuille [ARCHIVE] on Nostr: 📅 Original date posted:2013-07-23 📝 Original message:On Tue, Jul 23, 2013 at ...
📅 Original date posted:2013-07-23
📝 Original message:On Tue, Jul 23, 2013 at 10:30:13AM +0100, Andy Parkins wrote:
> One additional URL makes this pretty much perfect:
>
> GET /rest/block-with-tx/TX-HASH
>
> Construction of the transaction-hash-to-block database is something the full
> client's have to do anyway, so this query is no harder than the others for
> them to supply; but suddenly makes it possible for an SPV client to trace the
> providence of any transaction without needing to maintain the entire chain.
There is actually no such index being maintained by default, and doing so is an
unnecessary burden IMHO (you need to enable -txindex since 0.8 to get this).
Of course, if enabled, it can be exposed.
--
Pieter
Published at
2023-06-07 15:04:57Event JSON
{
"id": "6201a06a91e99a75fcce49974f225525d959b800972495939f851568c25e99a3",
"pubkey": "5cb21bf5d7f25a9d46879713cbd32433bbc10e40ef813a3c28fe7355f49854d6",
"created_at": 1686150297,
"kind": 1,
"tags": [
[
"e",
"2548e3bbd5806f0a91f1440e5be19b1893f723d052860cba20b98f557d042316",
"",
"root"
],
[
"e",
"8333398a2f609eed8a87bce3e30d9d1b3a20da90a3d0ad3bd694f3c268ef4b73",
"",
"reply"
],
[
"p",
"99bec497728c848e65549d1a5257d08de97621edcb4b77073269a45dac708d59"
]
],
"content": "📅 Original date posted:2013-07-23\n📝 Original message:On Tue, Jul 23, 2013 at 10:30:13AM +0100, Andy Parkins wrote:\n\u003e One additional URL makes this pretty much perfect:\n\u003e \n\u003e GET /rest/block-with-tx/TX-HASH\n\u003e \n\u003e Construction of the transaction-hash-to-block database is something the full \n\u003e client's have to do anyway, so this query is no harder than the others for \n\u003e them to supply; but suddenly makes it possible for an SPV client to trace the \n\u003e providence of any transaction without needing to maintain the entire chain.\n\nThere is actually no such index being maintained by default, and doing so is an\nunnecessary burden IMHO (you need to enable -txindex since 0.8 to get this).\nOf course, if enabled, it can be exposed.\n\n-- \nPieter",
"sig": "5497e0e5e0dbe49c36f8922f40f08e46dbdd055ceb801a6bdeede813c40a03c1df8e83fff1950b1694a32fa0e80c78a394b1c2e5409a1451ef4d695c2e388af4"
}