Refactor getOutcomeTx, removed gotos and split repTx and coinTx into their own functions
Refactor getOutcomeTx, removed gotos and split repTx and coinTx into their own functions

bitcoin-hivemind/hivemind,bitjson/hivemind,bitjson/hivemind,bitjson/hivemind,bitjson/hivemind,bitcoin-hivemind/hivemind,bitjson/hivemind,bitcoin-hivemind/hivemind,bitcoin-hivemind/hivemind,bitcoin-hivemind/hivemind,bitcoin-hivemind/hivemind,bitcoin-hivemind/hivemind,bitjson/hivemind,bitjson/hivemind