// Now with four block producers active and two identical chains (for now),
// we can test out the case that would trigger the bug in the old fork db code:
fork_block_num=c.control->head_block_num();
wlog("cam and dan go off on their own fork on c1 while sam and pam go off on their own fork on c2");
wlog("c1 blocks:");
c.produce_blocks(12);// dan produces 12 blocks
c.produce_block(fc::milliseconds(config::block_interval_ms*25));// cam skips over sam and pam's blocks
c.produce_blocks(23);// cam finishes the remaining 11 blocks then dan produces his 12 blocks
wlog("c2 blocks:");
c2.produce_block(fc::milliseconds(config::block_interval_ms*25));// pam skips over dan and sam's blocks
c2.produce_blocks(11);// pam finishes the remaining 11 blocks
c2.produce_block(fc::milliseconds(config::block_interval_ms*25));// sam skips over cam and dan's blocks
c2.produce_blocks(11);// sam finishes the remaining 11 blocks
wlog("now cam and dan rejoin sam and pam on c2");
c2.produce_block(fc::milliseconds(config::block_interval_ms*13));// cam skips over pam's blocks (this block triggers a block on this branch to become irreversible)
c2.produce_blocks(11);// cam produces the remaining 11 blocks
b=c2.produce_block();// dan produces a block
// a node on chain 1 now gets all but the last block from chain 2 which should cause a fork switch
wlog("push c2 blocks (except for the last block by dan) to c1");