Author

Topic: Generating your own orphan blocks for the testnet? (Read 732 times)

sr. member
Activity: 412
Merit: 275
Couldn't you emulate this with regtest mode?
staff
Activity: 3374
Merit: 6530
Just writing some code
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.
member
Activity: 114
Merit: 16
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?
Jump to: