Bitcoin Forum
September 27, 2018, 11:08:35 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Transactions returned by getdata  (Read 598 times)
TierNolan
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


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
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
bitpop
Legendary
*
Offline Offline

Activity: 2366
Merit: 1043


https://keybase.io/bitpop


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

Reputation  |  PGP  |  DigitalOcean  |  TorGuard  |  Ethereum Classic
Bitcoin: 3DSh6AnmvBpDJFUz2mnLirMLmTMcFs9nDm
Bitmessage: BM-2cXN9j8NFT2n1FxDVQ6HQq4D4MZuuaBFyb
TierNolan
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


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: 2366
Merit: 1043


https://keybase.io/bitpop


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

Reputation  |  PGP  |  DigitalOcean  |  TorGuard  |  Ethereum Classic
Bitcoin: 3DSh6AnmvBpDJFUz2mnLirMLmTMcFs9nDm
Bitmessage: BM-2cXN9j8NFT2n1FxDVQ6HQq4D4MZuuaBFyb
TierNolan
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


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: 2366
Merit: 1043


https://keybase.io/bitpop


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

Reputation  |  PGP  |  DigitalOcean  |  TorGuard  |  Ethereum Classic
Bitcoin: 3DSh6AnmvBpDJFUz2mnLirMLmTMcFs9nDm
Bitmessage: BM-2cXN9j8NFT2n1FxDVQ6HQq4D4MZuuaBFyb
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!