It appears that geth waits for 5 blocks to confirm a block. Is there any way to change the number of blocks to wait for confirmation?
This is hard-coded, so the only way to change it would be to edit the source yourself, and rebuild.
unconfirmed: newUnconfirmedBlocks(eth.BlockChain(), 5),
If any further blocks are mined, the older, still-unconfirmed blocks are removed from the local chain.
The value of
5 seems to be arbitrarily set and...
It is used by the miner to provide logs to the user when a previously mined block has a high enough guarantee to not be reorganised out of the canonical chain.
I don't know what effect changing it would have. Presumably in a live public network it'd be unlikely that more than 5 consecutive blocks would be mined by the same miner.