Bitcoin Forum
November 02, 2024, 06:10:59 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to check an txid input coin has been spend or not ?  (Read 2125 times)
bit_kevin (OP)
Member
**
Offline Offline

Activity: 64
Merit: 10


btc.com


View Profile WWW
May 23, 2013, 09:14:35 AM
 #1

Somebody send me 1 BTC to address with txid(t01). Than I spend this 1 BTC to somebody else with txid(t02), this address's amount should be empty.

Now I create raw transaction with txid(t01), than I broadcast it. How does other bitcoind node found it has already spend out? Review all transactions after t01 to check?
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
May 23, 2013, 09:59:38 AM
 #2

I didn't check the source code about that part but I think so...
I'm interested too btw

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
*
Offline Offline

Activity: 1316
Merit: 1043

👻


View Profile
May 23, 2013, 10:16:30 AM
 #3

There is a pool of unspent outputs.
bit_kevin (OP)
Member
**
Offline Offline

Activity: 64
Merit: 10


btc.com


View Profile WWW
May 23, 2013, 12:02:14 PM
 #4

There is a pool of unspent outputs.
a pool of ALL unspent outputs ?
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
*
Offline Offline

Activity: 1316
Merit: 1043

👻


View Profile
May 23, 2013, 12:10:13 PM
 #5

There is a pool of unspent outputs.
a pool of ALL unspent outputs ?
Yeah. ALL unspent outputs. I'm not sure how to query it.
Zeilap
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
May 23, 2013, 12:29:58 PM
 #6

There is a pool of unspent outputs.
a pool of ALL unspent outputs ?

Yes, you can see its size with the command 'gettxoutsetinfo'.

Yeah. ALL unspent outputs. I'm not sure how to query it.

You don't, at least not without modifying the client to add a new RPC command.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1280


May Bitcoin be touched by his Noodly Appendage


View Profile
May 23, 2013, 12:35:57 PM
 #7

Where is that pool? Disk? Not RAM I suppose...

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Zeilap
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
May 23, 2013, 01:16:18 PM
 #8

Where is that pool? Disk? Not RAM I suppose...

LevelDB (it's what the chainstate directory is for). It's partially cached in RAM though.
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!