New msgtx generation

I just realized there's not really anything about change outputs in this function, and it doesn't need to be passed the whole decoratedTx. How about we make it something like "func getTxOutIndex(txOut TxOut, msgtx MsgTx)"?