add detection of submitblock on init
make 5 attempts at block submission using detected value of submitblock or getblocktemplate
Merge branch 'master' into dev
update exception