Author

Topic: When exactly can a txout be respent? (Read 1102 times)

legendary
Activity: 2097
Merit: 1070
January 27, 2015, 07:56:29 PM
#4
Isn't this how the dice services operate ?
newbie
Activity: 5
Merit: 0
January 20, 2015, 03:41:11 PM
#3
Thanks for the concise reply.  Is that fact mentioned anywhere in the existing documentation?  If not, where would the most convenient and appropriate place to add that fact?

   
sr. member
Activity: 250
Merit: 253
January 20, 2015, 03:30:31 PM
#2
My question is simply, can those txouts be spent and included in the same block.
Yes, unconfirmed txouts can be spent. With the understanding that complications like double spends and transaction malleability mean that those two transactions may not end up in the blockchain as you expect.
newbie
Activity: 5
Merit: 0
January 20, 2015, 02:19:22 PM
#1
Dear all,

I have a question about the fundamental inner workings of bitcoin-core.  I have searched for the answer, but so far have come up with nothing.  If you know the answer, thanks for saving me time.

So, when you use getrawmempool, you get  a list of transactions that are waiting to be put into the next block.  My question is simply, can those txouts be spent and included in the same block. 

I'm using bitcoin-abe to collect unspent transactions and then build tx from that. 
However, if I'm using getrawmempool to add transactions to the bitcoin-abe database essentially before the block is fully written and accepted to the ledger, can those tx's be indexed and spent within that block?

Thanks
Jump to: