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 11:52 AM, Andy Parkins <andyparkins at gmail.com> wrote:
>> 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.
>
> Wow. I'm surprised at that. How does a newly received transaction have its
> inputs verified then? Multiple linear brute force searches of the block chain
> for every new transaction? Or is it that transactions are only recorded if
> they were in a block, and just their presence indicates they're valid?
The block chain is not involved at all to verify transactions, it's
just a historical
record to serve to other nodes, and to do wallet rescans with.
For validation, a separate database with just unspent transaction
outputs is used (around 230 MB now).
--
Pieter
Published at
2023-06-07 15:04:58Event JSON
{
"id": "36df6c6d8fc9e9da8a5b4e0ad93121ed384099e6a88efe32ccc567d51ce7c951",
"pubkey": "5cb21bf5d7f25a9d46879713cbd32433bbc10e40ef813a3c28fe7355f49854d6",
"created_at": 1686150298,
"kind": 1,
"tags": [
[
"e",
"2548e3bbd5806f0a91f1440e5be19b1893f723d052860cba20b98f557d042316",
"",
"root"
],
[
"e",
"890bf7ea3e79e6a22f62c3a0166893606e0a849fd3bc4e87537f48e535b0aa7e",
"",
"reply"
],
[
"p",
"99bec497728c848e65549d1a5257d08de97621edcb4b77073269a45dac708d59"
]
],
"content": "📅 Original date posted:2013-07-23\n📝 Original message:On Tue, Jul 23, 2013 at 11:52 AM, Andy Parkins \u003candyparkins at gmail.com\u003e wrote:\n\u003e\u003e There is actually no such index being maintained by default, and doing so\n\u003e\u003e is an unnecessary burden IMHO (you need to enable -txindex since 0.8 to\n\u003e\u003e get this). Of course, if enabled, it can be exposed.\n\u003e\n\u003e Wow. I'm surprised at that. How does a newly received transaction have its\n\u003e inputs verified then? Multiple linear brute force searches of the block chain\n\u003e for every new transaction? Or is it that transactions are only recorded if\n\u003e they were in a block, and just their presence indicates they're valid?\n\nThe block chain is not involved at all to verify transactions, it's\njust a historical\nrecord to serve to other nodes, and to do wallet rescans with.\n\nFor validation, a separate database with just unspent transaction\noutputs is used (around 230 MB now).\n\n-- \nPieter",
"sig": "855869fd1285809b4d32c9c8f561d04e73a7d37d604473c466e4667605cbab7e3e88f7bd8349a7d0428d0d0b4b6ef6ace8e4084766c634f9fa1740ebe64be794"
}