Bitcoin Forum
May 05, 2024, 05:26:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: When exactly can a txout be respent?  (Read 1089 times)
rippledj (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 20, 2015, 06: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
1714929993
Hero Member
*
Offline Offline

Posts: 1714929993

View Profile Personal Message (Offline)

Ignore
1714929993
Reply with quote  #2

1714929993
Report to moderator
1714929993
Hero Member
*
Offline Offline

Posts: 1714929993

View Profile Personal Message (Offline)

Ignore
1714929993
Reply with quote  #2

1714929993
Report to moderator
1714929993
Hero Member
*
Offline Offline

Posts: 1714929993

View Profile Personal Message (Offline)

Ignore
1714929993
Reply with quote  #2

1714929993
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714929993
Hero Member
*
Offline Offline

Posts: 1714929993

View Profile Personal Message (Offline)

Ignore
1714929993
Reply with quote  #2

1714929993
Report to moderator
1714929993
Hero Member
*
Offline Offline

Posts: 1714929993

View Profile Personal Message (Offline)

Ignore
1714929993
Reply with quote  #2

1714929993
Report to moderator
1714929993
Hero Member
*
Offline Offline

Posts: 1714929993

View Profile Personal Message (Offline)

Ignore
1714929993
Reply with quote  #2

1714929993
Report to moderator
TimS
Sr. Member
****
Offline Offline

Activity: 250
Merit: 253


View Profile WWW
January 20, 2015, 07: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.
rippledj (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 20, 2015, 07: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?

   
samson
Legendary
*
Offline Offline

Activity: 2097
Merit: 1068


View Profile
January 27, 2015, 11:56:29 PM
 #4

Isn't this how the dice services operate ?
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!