Use correct calls to tx.Sha() in RPC server.