Bitcoin Forum
March 29, 2024, 02:18:15 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generating your own orphan blocks for the testnet?  (Read 723 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?
1711721895
Hero Member
*
Offline Offline

Posts: 1711721895

View Profile Personal Message (Offline)

Ignore
1711721895
Reply with quote  #2

1711721895
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711721895
Hero Member
*
Offline Offline

Posts: 1711721895

View Profile Personal Message (Offline)

Ignore
1711721895
Reply with quote  #2

1711721895
Report to moderator
1711721895
Hero Member
*
Offline Offline

Posts: 1711721895

View Profile Personal Message (Offline)

Ignore
1711721895
Reply with quote  #2

1711721895
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3346
Merit: 6473


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: 265


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!