Does LOCK(cs_main) pause and branach the program in order to do some necessary job before going on?
I'm trying to publish blocks reactively (as a selfish miner) upon receipt of inventory message from pfrom and react to it after *pfrom* catches up with the height of my secret block.
Following lines didn't help/there was no reaction on selfish node's side:
added following lines in main.cpp: after l. 3662
...
{
LOCK(cs_main);
pfrom->PushMessage("inv", pfrom->vPrivateInv);
}
...