Added an exit statement in case we are on the apparently wrong fork. It is hardcoded to 4 blocks, which should probably be parameterized.
Added more debug info to posting of transactions