Bitcoin Forum
November 14, 2024, 09:27:16 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transactions returned by getdata  (Read 700 times)
TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1104


View Profile
January 10, 2014, 01:43:14 PM
 #1

When pruning was added, random requests for transactions are no longer supported.

The wiki says that transactions must be in the "memory pool or relay set".

What transactions does that cover?

The memory pool contains all transactions that could be included in the next block.  I assume the relay set is the subset of those transactions that would be relayed?

Are transactions with unspent outputs included too?  They should be available, even with pruning.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 11, 2014, 03:51:22 AM
 #2

From a remote node? You'd ask for the whole block. But which one? Locally you can use txindex=1

TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1104


View Profile
January 11, 2014, 05:37:45 PM
 #3

From a remote node? You'd ask for the whole block. But which one? Locally you can use txindex=1

Ok, so a connection from localhost bypasses the flood protection?  If txindex=1, then you can ask for any transaction?

I assume even without txindex=1, the UTXO set is indexed.

I looked it up from the code code (should have done that before).

From what I can see, there is no localhost exception.  I guess RPC is the only way to do it.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 11, 2014, 08:27:02 PM
 #4

By local I meant rpc yes

Armory is also able to find transactions somehow, look into their code

TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1104


View Profile
January 11, 2014, 08:34:01 PM
 #5

Armory is also able to find transactions somehow, look into their code

I think they just trust the node they connect to.  When a new block arrives, they download the entire block (I assume).

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 11, 2014, 08:37:20 PM
 #6

Oh true they parse it all

You can also look into blockchain.info code or Bitcoin abe

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!