Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Xenland on May 22, 2013, 05:42:19 AM



Title: Does list transsaction store the lists of transactions or the other way?
Post by: Xenland on May 22, 2013, 05:42:19 AM
Does listtransactions command store a precomputed list or will it rescan the block chain after i import a bitcoin pub/pri key and output the updated list? how does that work so I can accurately build up my BIK library.


Title: Re: Does list transsaction store the lists of transactions or the other way?
Post by: Pieter Wuille on May 23, 2013, 03:49:24 AM
Neither.

It queries the wallet, not the blockchain. The wallet contains a list of transactions, which is on-the-fly processed to produce the listtransactions output.


Title: Re: Does list transsaction store the lists of transactions or the other way?
Post by: Xenland on May 23, 2013, 04:43:28 PM
Neither.

It queries the wallet, not the blockchain. The wallet contains a list of transactions, which is on-the-fly processed to produce the listtransactions output.

Okay thats what i thought to an extent;


So its safe to assume if i import a key and call listtransactions it will on the fly proccess to produce the list with that key in it as well?


Title: Re: Does list transsaction store the lists of transactions or the other way?
Post by: grue on May 23, 2013, 04:52:45 PM
only if you imported with rescan = true (which is true by default)