Bitcoin Forum
June 27, 2024, 08:50:23 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generating your own orphan blocks for the testnet?  (Read 732 times)
Uptrenda (OP)
Member
**
Offline Offline

Activity: 114
Merit: 16


View Profile
August 08, 2015, 05:24:48 AM
 #1

I have some transaction critical code that needs to be able to adapt to every possible circumstance and I was wondering what the simplest way to generate your own orphan blocks would be? Is there a way to configure bitcoind to do this or ... what would the custom setup look like (using RPC commands if possible + simple scripts)

I'll be coding this if it needs custom parts but can anyone suggest what the design would look like?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
August 09, 2015, 03:03:16 AM
 #2

I suppose you could mine a block, wait for a block with the next block height, and broadcast the one you mined. That would guarantee that the block is orphaned.

fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 275


View Profile
August 10, 2015, 03:50:16 AM
 #3

Couldn't you emulate this with regtest mode?

Bitwasp Developer.
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!