alloc_rsttbl_from_idx
tr = alloc_rsttbl_from_idx(&trtbl, transact_id);
oe = alloc_rsttbl_from_idx(&oatbl, t16);