FWIW I dunno I really need to add that function to CTransaction itself; this seems like the only case where it would ever be used.